我遇到了与此处讨论的类似问题:
\n\n\n\n我正在通过连接到 firebird 数据库的 ubuntu (16.04.4 LTS) 运行 python(3.5.2) 脚本。为了安装 firebird,我按照此处提供的说明进行操作:
\n\nhttps://firebirdsql.org/manual/ubusetup.html
\n\n现在,当我运行 python 代码时,会显示以下错误:
\n\nSoft limit starts as :-1\nSoft limit changed to :1024\nTraceback (most recent call last):\n File "clustering_setup.py", line 30, in <module>\n graph, posi_knoten, kanten_bewertung, auslassliste = build_netzwerk.create_graph()\n File "/home/ubuntu/Documents/Code/build_netzwerk.py", line 113, in create_graph\n datenbank_custom.start(config.idbf_file)\n File "/home/ubuntu/Documents/Code/datenbank_custom.py", line 19, in start\n con = fdb.connect(database=idbf_file, user=\'sysdba\', password=\'pass\')\n File "/home/ubuntu/.local/lib/python3.5/site-packages/fdb/fbcore.py", line 682, in connect\n load_api(fb_library_name)\n File "/home/ubuntu/.local/lib/python3.5/site-packages/fdb/fbcore.py", line 181, in load_api\n setattr(sys.modules[__name__],\'api\',fbclient_API(fb_library_name))\n File "/home/ubuntu/.local/lib/python3.5/site-packages/fdb/ibase.py", …Run Code Online (Sandbox Code Playgroud)