我试图为我的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+'')
答案 0 :(得分:0)
我解决了这个问题。我重新安装了我的每个pygtk + python + sqlalchemy环境,在我的应用程序的py2exe的setup.py中进行了更改。 非常感谢...