Py2Exe + kinterbasdb
Jimmy Retzlaff
jimmy at retzlaff.com
Mon Oct 3 14:23:37 EDT 2005
durumdara at mailpont.hu wrote:
> 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.pyc", 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 _ensureInitialized
> File "kinterbasdb\__init__.pyc", line 315, in init
> ImportError: No module named typeconv_backcompat
Try adding kinterbasdb to the py2exe packages options as shown below:
setup(
console=["Report01.py"],
options={"py2exe": {"packages": ["kinterbasdb"]}}
)
Jimmy
More information about the Python-list
mailing list