You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "test_fb.py", line 4, in <module>
import fdb
File "D:\Python33\lib\site-packages\fdb-1.0-py3.3.egg\fdb\__init__.py", line 23, in <module>
from fdb.fbcore import *
File "D:\Python33\lib\site-packages\fdb-1.0-py3.3.egg\fdb\http://fbcore.py", line 26, in <module>
from . import ibase
File "D:\Python33\lib\site-packages\fdb-1.0-py3.3.egg\fdb\http://ibase.py", line 41, in <module>
fb_library = WinDLL(fb_library_name)
File "D:\Python33\lib\ctypes\__init__.py", line 353, in __init__
self._handle = _dlopen(self._name, mode)
TypeError: bad argument type for built-in operation
I fixed it for myselt by adding:
elif sys.platform in ['win32']:
fb_library_name = find_library('fbclient.dll')
into http://ibase.py. But i don't know, if it's needed for every Python versions/Windows version. I don't have 64 bit python installed, so I don't know, if it is issue there do. In that case probably 64 bit Windows should probably have special behavior also.
This is a bug in ctypes find_library, see http://bugs.python.org/issue16283
As only stars know when it would be fixed, I'll apply your patch as it appears as good enough workaround that doesn't have any unwanted side effects on other platforms nor Windows in general.
Submitted by: Virgo Pärna (virgo)
fbclient.dll is not found by _dlopen.
Traceback (most recent call last):
File "test_fb.py", line 4, in <module>
import fdb
File "D:\Python33\lib\site-packages\fdb-1.0-py3.3.egg\fdb\__init__.py", line 23, in <module>
from fdb.fbcore import *
File "D:\Python33\lib\site-packages\fdb-1.0-py3.3.egg\fdb\http://fbcore.py", line 26, in <module>
from . import ibase
File "D:\Python33\lib\site-packages\fdb-1.0-py3.3.egg\fdb\http://ibase.py", line 41, in <module>
fb_library = WinDLL(fb_library_name)
File "D:\Python33\lib\ctypes\__init__.py", line 353, in __init__
self._handle = _dlopen(self._name, mode)
TypeError: bad argument type for built-in operation
I fixed it for myselt by adding:
elif sys.platform in ['win32']:
fb_library_name = find_library('fbclient.dll')
into http://ibase.py. But i don't know, if it's needed for every Python versions/Windows version. I don't have 64 bit python installed, so I don't know, if it is issue there do. In that case probably 64 bit Windows should probably have special behavior also.
Commits: 2335712
The text was updated successfully, but these errors were encountered: