Subject | Re: Again: can't install fdb |
---|---|
Author | skoczian |
Post date | 2013-01-08T11:34:15Z |
--- In firebird-python@yahoogroups.com, Philippe Makowski wrote:
File " ", line 1, in
File "C:\Python33\lib\ctypes\__init__.py", line 353, in __init__
self._handle = _dlopen(self._name, mode)
TypeError: bad argument type for built-in operation
Thank you,
Sibylle
>Yes, but why? The Firebird bin directory is in the path (and it's the first entry there), _and_ the dll is in \windows\system32. Instclient.exe puts it there with the name all uppercase ("FBCLIENT.DLL"), but that shouldn't matter with Windows, should it?
> skoczian [2013-01-06 12:26] :
> > So what could be wrong this time?
> >
> obviously firebird.dll is not found
>
> what is the result of :at this point fb_library_name is None:
>
> from ctypes import *
> from ctypes.util import find_library
>
> fb_library_name = find_library('fbclient')
>>> from ctypes import *None
>>> from ctypes.util import find_library
>>> fb_library_name = find_library('fbclient')
>>> fb_library_name
>>> print(fb_library_name)
> fb_library = WinDLL(fb_library_name)Same error message as in my first post:
>
>>> fb_library = WinDLL(fb_library_name)Traceback (most recent call last):
File " ", line 1, in
File "C:\Python33\lib\ctypes\__init__.py", line 353, in __init__
self._handle = _dlopen(self._name, mode)
TypeError: bad argument type for built-in operation
> as a bad hack , you can after line 41 in ibase.py put something to loadAs a last resort I'll try that. Or use py-firebirdsql which doesn't need fbclient. But that won't work with SQLAlchemy, will it?
> fbclient with the full path like you did in your tests
>
Thank you,
Sibylle