"struct" module problem w/ pyinstaller

Keith palmkeith at gmail.com
Fri Jul 27 18:10:57 EDT 2007


Hello,
I am trying to create exectuables on inux using "pyinstaller". I am
using pyinstaller-1.3, RHEL 4.4,  Python 2.5.

The executables fail to run. The problem returned is pertaining to
"struct.py" not being able to find the module "_struct".

struct.py is located under /usr/local/lib/python-2.5/, and there is a
_struct.o (no _struct.py anywhere) located under /usr/local/lib/
python-2.5/lib-dynload.

When trying to run the executable, the loader returns:
   File "/usr/local/lib/python2.5/struct.py", line 30, in <module>
   ImportError: No module named _struct

The line in question is:
   from _struct import Struct, error

I am a python neophyte. If someone could give me some information, I
would appreciate it.
Thanks!




More information about the Python-list mailing list