Jump to content

Py2exe fails

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
2 replies to this topic

#1
toxifyshadow

toxifyshadow

    Programmer

  • Members
  • PipPipPipPip
  • 125 posts
For some reason, py2exe only gives me an error.
When I run the setup.py file I get "invalid Syntax" error.
The command I enter is:

C:/Documents and Settings/Main/My Documents/Programming Files/Python Files/setup.py py2exe

Then if I run it in Command Prompt or the Python commmand line I get the syntax error saying that the : in C:/ is invalid syntax.

My setup.py file looks like:

from distutils.core import setup

import py2exe


setup(console=['calculator.py'])

How do I fix this so I can turn my .py to a .exe?
Posted Image

#2
Elementell

Elementell

    Newbie

  • Members
  • Pip
  • 3 posts
You forgot python at the beginning.

You're running the file in the cmd window, not on it's own.

#3
toxifyshadow

toxifyshadow

    Programmer

  • Members
  • PipPipPipPip
  • 125 posts
Please delete this thread, I have a newer one.
Posted Image