Search code examples
pythonfirebird

Error installing firebird RDBMS bindings package on windows


I am installing the fdb package on windows

This package

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

and i get this error

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

Has anyone encountered this error before?.I have the python driver for firebird installed and also the python driver.


Solution

  • I solved it. After installing the Firebird super server, copy fbclient.dll (you will find it under C:\Program Files\Firebird\Firebird_2_5\bin) and paste it under C:\WINDOWS

    If your problem persists, there is a hack I found on the firebird-python mailing list on Yahoo here: Re: Again: can't install fdb