py2exe 0.69 + pymssql1.0.2+ python2.54 编译exe的错误

wxpythondk 发布于 2011/08/10 21:25
阅读 550
收藏 0

import pymssql,dict4ini,os,sys,time,string,decimal
readini=dict4ini.DictIni(os.path.join(workpath,'db_connect.ini'), secretSections='Database1')
main_host,main_user=readini.Database1.host,readini.Database1.loginuser
main_password,main_database=readini.Database1.loginpassword,readini.Database1.database
connection = pymssql.connect(host=main_host,user=main_user,password=main_password, database=main_database)
单独运行py文件一切正常。编译后就报错。郁闷着。

 

Traceback (most recent call last):
  File "MyDlg.pyo", line 41, in bt3c_VwXEvOnLeftDown
  File "zipextimporter.pyo", line 82, in load_module
  File "xhybinsert.pyo", line 25, in <module>
  File "pymssql.pyo", line 603, in connect
TypeError: connect() argument 1 must be string, not DictNode

加载中
0
轻舞凋零
轻舞凋零

TypeError: connect() argument 1 must be string, not DictNode 

check it

0
wxpythondk
wxpythondk

不兼容win7 64位

 

返回顶部
顶部