simple py2exe import os error
Mark Light
light at soton.ac.uk
Thu Mar 25 04:34:38 EST 2004
Hi,
I am trying to use py2exe on a simple python program and get the
error below. Any ideas? It runs fine on my laptop at home but not on my
desktop at work - I think they are setup the same - but I guess there
must be some subtle difference.
##standard output
C:\Python_Mark\datamatetest>python setup.py py2exe
C:\Python23\Lib\os.py:282: Warning: 'yield' will become a reserved
keyword in th
e future
'import site' failed; use -v for traceback
C:\Python23\Lib\os.py:282: Warning: 'yield' will become a reserved
keyword in th
e future
Traceback (most recent call last):
File "setup.py", line 1, in ?
from distutils.core import setup
File "C:\Python23\Lib\distutils\core.py", line 13, in ?
import sys, os
File "C:\Python23\Lib\os.py", line 282
yield top, dirs, nondirs
^
SyntaxError: invalid syntax
C:\Python_Mark\datamatetest>
##input setyp file
C:\Python_Mark\datamatetest>more setup.py
from distutils.core import setup
import py2exe, os
print os.getcwd()
setup(name="DataMate",
version="2.0",
description="DownLoad Kappa CCD Data",
author="Mark E Light",
author_email="light at soton.ac.uk",
scripts=["DataMate.pyw"],
data_files=[(os.getcwd(), ["DataMate.ini"]), (os.getcwd(),
["DataMateSav.i
ni"])],
)
#python setup.py py2exe
More information about the Python-list
mailing list