Hi !
I compile an application (that working good in native python) to exe
with py2exe.
In native mode (python.exe ReportApp.py) it is working, the reports are
created good.
But when I try to create a report from the compiled exe, it is show an
error:
Traceback (most recent call last):
File "Report01.p yc", line 164, in OnButton1Button
File "report_01.pyc" , line 12, in OpenDBForReport
File "report_db.pyc" , line 11, in OpenDB
File "kinterbasdb\__ init__.pyc", line 472, in connect
File "kinterbasdb\__ init__.pyc", line 558, in __init__
File "kinterbasdb\__ init__.pyc", line 367, in _ensureInitiali zed
File "kinterbasdb\__ init__.pyc", line 315, in init
ImportError: No module named typeconv_backco mpat
The OpenDB is do this:
def OpenDB(paramdb) :
dsn=paramdb.get ('PATH','')
usr=paramdb.get ('USER','sys'+' dba')
pwd=paramdb.get ('PASSWORD','an y')
global DB
DB=kim.connect( dsn=dsn, user=usr,passwo rd=pwd)
return DB
It seems to be that the problem occured in __init__.pyc.
How to I prevent it ?
Please help me !
Thanks. For any help.
K. O. R. : dd
I compile an application (that working good in native python) to exe
with py2exe.
In native mode (python.exe ReportApp.py) it is working, the reports are
created good.
But when I try to create a report from the compiled exe, it is show an
error:
Traceback (most recent call last):
File "Report01.p yc", line 164, in OnButton1Button
File "report_01.pyc" , line 12, in OpenDBForReport
File "report_db.pyc" , line 11, in OpenDB
File "kinterbasdb\__ init__.pyc", line 472, in connect
File "kinterbasdb\__ init__.pyc", line 558, in __init__
File "kinterbasdb\__ init__.pyc", line 367, in _ensureInitiali zed
File "kinterbasdb\__ init__.pyc", line 315, in init
ImportError: No module named typeconv_backco mpat
The OpenDB is do this:
def OpenDB(paramdb) :
dsn=paramdb.get ('PATH','')
usr=paramdb.get ('USER','sys'+' dba')
pwd=paramdb.get ('PASSWORD','an y')
global DB
DB=kim.connect( dsn=dsn, user=usr,passwo rd=pwd)
return DB
It seems to be that the problem occured in __init__.pyc.
How to I prevent it ?
Please help me !
Thanks. For any help.
K. O. R. : dd