New user question: py2exe with Pmw
Thomas Heller
theller at python.net
Fri May 3 02:40:00 EDT 2002
"Armstrong" <fivearmstrongs at shaw.ca> wrote in message news:y7iA8.9467$GG6.663789 at news3.calgary.shaw.ca...
> Hi,
>
> I have a pretty basic piece of Python code that uses the Pmw and Tcl/Tk
> modules that I'm trying to run through py2exe. The Tcl/Tk portion works
> just fine, but when I enable the Pmw portion the executable won't run
> anymore, failing with the message:
>
> Traceback (most recent call last):
> File "imputil.pyc", line 103, in _import_hook
> File "<string>", line 52, in _import_top_module
> File "imputil.pyc", line 216, in import_top
> File "imputil.pyc", line 271, in _import_one
> File "<string>", line 128, in _process_result
> File "Pmw\__init__.pyc", line 37, in ?
> IndexError: list index out of range
>
> It looks to me like Pmw was not included, but I'm not sure.
You have to prepare Pmw for this before it will work.
There's a script named 'bundlepmw' in Pmw's distribution,
also a readme file explaining how to use it.
HTH,
Thomas
More information about the Python-list
mailing list