Newbie simple py2exe problem

Bubba bub at
Sat Jan 11 20:09:57 CET 2003

On Sat, 11 Jan 2003 12:57:22 -0500, Peter Hansen <peter at>
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 py2exe
  File "", line 3
    from distutils.core import setup
SyntaxError: invalid syntax

This is my
   from distutils.core import setup
   import py2exe


>Bubba wrote:
>> On Sat, 11 Jan 2003 15:39:45 +0100, Laura Creighton <lac at>
>>  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...

More information about the Python-list mailing list