Hi, all.
I have a Python program which uses PyGreSQL, specificallly pgdb, to do
database stuff. It works perfectly when run in Python, but when compiled
with py2exe it doesn't work. Instead I get the windows error message of
"this program encouontered an error..."

I figured out that it's the pgdb module that's not working for py2exe, and
can replpicate this problem with this simple program:

import time
import pgdb
time.sleep(10)


Now, I do realize that pgdb relies on a bunch of other DLLs. This suite of
8 DLLs from the PostgreSQL is present in the Python program's directory,
and allow it to run (and yes, it fails to run with DLL errors if I move
them elsewhere, so I know it's using them). I have copied these same 8
DLLs into the compiled executable's directory.


Where do I start on debugging this? Has anyone successfully used PyGreSQLl
in a py2exe program, and has any advice on extra imports or DLLs, etc?


-- 
HostGIS
Cartographic development and hosting services
707-822-9355
http://www.HostGIS.com/

_______________________________________________
PyGreSQL mailing list
[email protected]
http://mailman.vex.net/mailman/listinfo/pygresql

Reply via email to