未找到功能'fb_interpret'的FDB驱动程序Firebird

时间:2013-11-30 12:08:52

标签: python-2.7 firebird fdb

我正在使用带有FDB 1.4驱动程序的Windows 2003 + Python 2.7 + firebird 2.1。

在Windows XP中工作正常,但在Windows 2003中我的脚本出错了。

我刚刚在网上找到了同样的错误。

http://forum.4programmers.net/Inne/221792-python_27firebird156_jaki_sterownik_do_takiego_zestawienia_w_windows7_x86

有什么想法吗?

Traceback (most recent call last):
File "exporter.py", line 379, in <module>
dicionario_com_produtos =  getProdutosFb()
File "exporter.py", line 111, in getProdutosFb
con = fdb.connect(dsn=db_fonte, user=db_usuario, password=db_senha)
File "c:\Python27\lib\site-packages\fdb-1.4-py2.7.egg\fdb\fbcore.py", line 645
, in connect
load_api()
File "c:\Python27\lib\site-packages\fdb-1.4-py2.7.egg\fdb\fbcore.py", line 176
, in load_api
setattr(sys.modules[__name__],'api',fbclient_API())
File "c:\Python27\lib\site-packages\fdb-1.4-py2.7.egg\fdb\ibase.py", line 1437
, in __init__
self.fb_interpret = fb_library.fb_interpret
File "c:\Python27\lib\ctypes\__init__.py", line 378, in __getattr__
func = self.__getitem__(name)
File "c:\Python27\lib\ctypes\__init__.py", line 383, in __getitem__
func = self._FuncPtr((name_or_ordinal, self))

AttributeError: function 'fb_interpret' not found

1 个答案:

答案 0 :(得分:2)

由于您的评论表明已安装Firebird 1.5:Firebird 2中添加了fb_interpret功能,您需要安装较新的Firebird版本的客户端库(例如Firebird 2.5.2)。