Newbie simple py2exe problem
Michael Urban
urba0083 at tc.umn.edu
Sat Jan 11 14:55:18 EST 2003
Bubba wrote:
> This is my setup.py
> # setup.py
> from distutils.core import setup
> import py2exe
>
> setup(name="counter",
> scripts=["counter.py"],
> )
And therin lies your syntax error. "from distutils.core import setup"
cannot be indented since Python uses indentation for delimiting code
blocks. "from" is part of the main block. Indenting it is causing the
syntax error. That's why the carrot in the traceback is pointing to the
space before "from" as well.
More information about the Python-list
mailing list