在Windows上安装firebird RDBMS绑定包时出错

时间:2013-04-26 13:53:05

标签: python firebird

我在windows上安装fdb包

此套餐

https://pypi.python.org/pypi/fdb

我收到此错误

C:\fdb>python setup.py install
Traceback (most recent call last):
  File "setup.py", line 7, in <module>
    from fdb import __version__
  File "C:\fdb\fdb\__init__.py", line 23, in <module>
    from fdb.fbcore import *
  File "C:\fdb\fdb\fbcore.py", line 26, in <module>
    from . import ibase
  File "C:\fdb\fdb\ibase.py", line 43, in <module>
    fb_library = WinDLL(fb_library_name)
  File "C:\Python27\lib\ctypes\__init__.py", line 365, in __init__
    self._handle = _dlopen(self._name, mode)
TypeError: expected string or Unicode object, NoneType found

之前有没有遇到过这个错误?。我安装了firebird的python驱动程序以及python驱动程序。

1 个答案:

答案 0 :(得分:3)

我解决了它。安装firebird超级服务器后,复制fbclient.dll(您将在C:\ Program Files \ Firebird \ Firebird_2_5 \ bin下找到它)并将其粘贴到C:\ WINDOWS下

如果你的问题仍然存在,我在雅虎的firebird邮件列表上找到了hack http://tech.groups.yahoo.com/group/firebird-python/message/638