alternative driver for firebird (fdb)

Issue #2504 resolved
Former user created an issue

fdb.py supports firebird under python2/3

There are only minor changes to the existing kinterbasdb driver.

A patch is attached.

It works for me using python2 and firebird-2.5.2

Comments (9)

  1. Mike Bayer repo owner
    • changed component to firebird
    • changed milestone to 0.7.8
    • assigned issue to

    are you suggesting the removal of the kinterbasbd driver entirely ? We definitely need to keep existing kinterbasdb support as is, with fdb as an additional option.

    While we can put an fdb.py in as is, it would be nice if kinterbasdb and fdb.py could build off the same base, or perhaps fdb can extend from kinterbasdb's classes, so we aren't duplicating code.

  2. Mike Bayer repo owner

    I can get this going if you can help me get the library to build on OSX:

    classics-MacBook-Pro:fdb-0.8.5 classic$ export CFLAGS=-I/Library/Frameworks/Firebird.framework/Headers;  export LFLAGS=-L/Library/Frameworks/Firebird.framework/Libraries; python setup.py  build_ext   Traceback (most recent call last):
      File "setup.py", line 7, in <module>
        from fdb import __version__
      File "/usr/local/src/fdb-0.8.5/fdb/__init__.py", line 23, in <module>
        from fdb.fbcore import *
      File "/usr/local/src/fdb-0.8.5/fdb/fbcore.py", line 26, in <module>
        from . import ibase
      File "/usr/local/src/fdb-0.8.5/fdb/ibase.py", line 1789, in <module>
        BLOB_open = fb_library.BLOB_open
      File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ctypes/__init__.py", line 366, in __getattr__
        func = self.__getitem__(name)
      File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ctypes/__init__.py", line 371, in __getitem__
        func = self._FuncPtr((name_or_ordinal, self))
    AttributeError: dlsym(0x1003ad890, BLOB_open): symbol not found
    
  3. Log in to comment