[python-win32] Attempt to make executable from Python script
Tim Golden
mail at timgolden.me.uk
Tue Mar 30 16:38:35 CEST 2010
On 30/03/2010 10:44, Werner F. Bruhin wrote:
> 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?
No; it's mine. And it is (unfortunately) not a great starting
point for a novice building .exes as it imports things from
the win32com.shell module which does some shuffling of namespaces
behind the scenes.
> 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
Agree with all this; let's see what the OP can come back with...
TJG
More information about the python-win32
mailing list