[Tutor] Py2exe Help (fwd)
Thu, 6 Dec 2001 00:25:48 -0800 (PST)
I should have written that I personally don't have experience with
It's usually better to use your emailer's "Reply to All" option, so that
the other people on the list too can respond. I'll forward your message
to the rest of the list for you. Good luck to you.
---------- Forwarded message ----------
Date: Wed, 5 Dec 2001 16:34:13 -0800 (PST)
From: Cow <firstname.lastname@example.org>
To: Danny Yoo <email@example.com>
Subject: Re: [Tutor] Py2exe Help
First off, i have a file called 'a.py', the file i want to compile into a .exe file. Next, i make a file called 'cow.py'. 'cow.py' is to be the setup file. I put the following code into it (cow.py):
from distutils.core import setup
#------END OF CODE---------
to run my setup file that will compile 'a.py', i put the following files into the C:\Python22 folder:
a.py (the file i want to compile into a .exe file)
cow.py (the setup file i programmed)
i go into dos, type 'CD Python22' to get to the folder with all of the files in it and type the following command to run cow.py:
python cow.py py2exe
it should work and next convert 'a.py' into an executable file, but instead i get the following error:
C:\PYTHON22>python cow.py py2exe
usage: cow.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: cow.py --help [cmd1 cmd2 ...]
or: cow.py --help-commands
or: cow.py cmd --help
error: invalid command 'py2exe' (no module named 'distutils.command.py2exe')
does anyone know what i can do to get my setup program working?
Thanks a lot
--- Danny Yoo <firstname.lastname@example.org> wrote:
>On Wed, 5 Dec 2001, Cow wrote:
>> I just downloaded Py2exe and have been playing with it for a long time
>> now, but it doesn't seem to be working for me. I have read the
>> explaination on how to use it over and over, but i still keep on
>> getting errors. Can someone here please explain to me how to use it
>> in their own words, because i don't understand the ones that were
>> provided to me in the Py2exe file?
>There are a few people here who have some experience with py2exe here.
>What kind of error messages are you getting? If you can give us the
>literal error messages that you're getting, that may give one of us here
>enough clues to figure out what's happening.
>Also, what kind of programs have you tried py2exe on? Does it work at all
>on simple programs?
>I hope that your problem can get fixed quickly. Good luck!
>Tutor maillist - Tutor@python.org
Free eSweeet Mail - http://www.esweeet.com