[python-win32] Attempt to make executable from Python script

Werner F. Bruhin werner.bruhin at free.fr
Tue Mar 30 11:44:39 CEST 2010


Hi,

On 30/03/2010 07:39, travel europe wrote:
> Hello,
>
> I am attempting to make an executable from a working Python script per
> the instructions from the following website:
>
> http://logix4u.net/Python/Tutorials/How_to_create_Windows_executable_exe_from_Python_script.html
>
> Everything seems to go as planned, except when I run the resulting
> executable I get the following message:
>
> Traceback (most recent call last):
> File "tim.py", line 2, in <module>
> File "winsys\registry.pyc", line 39, in <module>
> File "winsys\security.pyc", line 42, in <module>
> File "winsys\_security\_tokens.pyc", line 10, in <module>
> File "winsys\accounts.pyc", line 31, in <module>
> File "winsys\dialogs.pyc", line 45, in <module>
> *ImportError: No module named shell*
Is winsys\dialogs your stuff?

What is your setup.py and can you successfully build a small exe?  E.g. 
the one shown on this wiki http://wiki.wxpython.org/Deployment (needs 
wxPython) or the one here http://www.py2exe.org/index.cgi/Tutorial ?

You might want to post to : Py2exe-users at lists.sourceforge.net

Werner



More information about the python-win32 mailing list