Newbie simple py2exe problem
Bubba
bub at joos.us
Sat Jan 11 14:09:57 EST 2003
On Sat, 11 Jan 2003 12:57:22 -0500, Peter Hansen <peter at engcorp.com>
wrote:This is what I got
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\Documents and Settings\ppj>cd
C:\Documents and Settings\ppj
C:\Documents and Settings\ppj>cd \
C:\>cd python22
C:\Python22>python setup.py py2exe
File "setup.py", line 3
from distutils.core import setup
^
SyntaxError: invalid syntax
C:\Python22>
This is my setup.py
# setup.py
from distutils.core import setup
import py2exe
setup(name="counter",
scripts=["counter.py"],
)
>Bubba wrote:
>>
>> On Sat, 11 Jan 2003 15:39:45 +0100, Laura Creighton <lac at strakt.com>
>> wrote:thers is no traceback. I'm running XP as admin. Ran it in the
>> cmd window. Only error is the syntax error previously posted
>
>If Python gave you a "syntax error", there *is* a traceback...
>At the very least, there is something that looks like this:
>
> File "<stdin>", line 2
> from distutils.core import setup
> ^
>SyntaxError: invalid syntax
>
>
>What we need is for you to cut and paste *exactly* the message you
>are getting from your cmd window into the email message, rather than
>just retyping "syntax error".
>
>With that, we'll have some confidence that you aren't just talking
>about an import error, or an XP problem, or something else that
>isn't really a syntax error...
>
>-Peter
More information about the Python-list
mailing list