我正在尝试为我的 pygtk 应用程序制作一个 .exe。我正在使用 pygtk+glade、gtkbuilder、sqlalchemy、sqlsever、pyodbc 连接器...但是当我尝试运行使用 py2exe 创建的 .exe 时,为 py2exe 创建的日志文件有这个错误:
\modConfiguracion\main_config.py", line 30, in __init__
File "sqlalchemy\ext\sqlsoup.pyc", line 546, in __init__
File "sqlalchemy\schema.pyc", line 2355, in __init__
File "sqlalchemy\schema.pyc", line 2428, in _bind_to
File "sqlalchemy\engine\__init__.pyc", line 338, in create_engine
File "sqlalchemy\engine\strategies.pyc", line 69, in create
File "sqlalchemy\dialects\mssql\pyodbc.pyc", line 246, in __init__
File "sqlalchemy\connectors\pyodbc.pyc", line 41, in __init__
File "sqlalchemy\dialects\mssql\base.pyc", line 1151, in __init__
File "sqlalchemy\engine\default.pyc", line 129, in __init__
AttributeError: 'module' object has no attribute 'paramstyle'
我的代码的第 30 行是:
self.db = sqlalchemy.ext.sqlsoup.SqlSoup('mssql://'+var_globales.user+':'+var_globales.passwd+'@'+var_globales.server+'/'+var_globales.base+'')