我正在使用带有 FDB 1.4 驱动程序的 windows 2003 + Python 2.7 + firebird 2.1。
在 windows XP 中工作正常,但在 windows 2003 中,我的脚本出现错误。
我刚刚在网上发现 1 波兰语有同样的错误。
有任何想法吗?
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