[python-win32] py2exe runtime problem...
Eric Walstad
eric at ericwalstad.com
Mon May 19 18:43:49 EDT 2003
I didn't see any py2exe list, and I saw other posts on the subject in
the archives, so I'm posting my question here.
I have a little app consisting of 3 py files that I'm trying use with
py2exe. I get a couple of "compile-time" warnings from py2exe (see
below) but no errors. When I run the reuslting exe file I get a
"IOError: invalid mode:" run-time error (see traceback below).
If anyone can point me toward possible culptits, I'd sure appreciate it.
Thanks VERY much for your time!
Eric.
################## BEGIN TRACEBACK ##################
C:\Documents and Settings\ewalstad\My Documents\ew\2003\pl\kiosk\plJoin\di
st\Aggregator>aggregator.exe
Traceback (most recent call last):
File "<string>", line 8, in ?
File "imputil.pyc", line 103, in _import_hook
File "<string>", line 52, in _import_top_module
File "imputil.pyc", line 216, in import_top
File "imputil.pyc", line 271, in _import_one
File "<string>", line 128, in _process_result
File "Serializer.pyc", line 2, in ?
File "imputil.pyc", line 103, in _import_hook
File "<string>", line 52, in _import_top_module
File "imputil.pyc", line 216, in import_top
File "imputil.pyc", line 267, in _import_one
File "<string>", line 161, in get_code
IOError: invalid mode:
C:\Documents and Settings\ewalstad\My Documents\ew\2003\pl\kiosk\plJoin\di
st\Aggregator>
################## END TRACEBACK ##################
################## BEGIN COMPILE INFO ##################
C:\Documents and Settings\ewalstad\My
Documents\ew\2003\pl\kiosk\plJoin>python s
etup.py py2exe
running py2exe
running build
running build_scripts
not copying Aggregator.py (up-to-date)
running install_scripts
creating build\bdist.win32\winexe
creating build\bdist.win32\winexe\lib
creating build\bdist.win32\winexe\lib\PYTHON22
creating build\bdist.win32\winexe\lib\PYTHON22\Scripts
copying build\scripts-2.2\Aggregator.py ->
build\bdist.win32\winexe\lib\PYTHON22
\Scripts
running install_data
creating build\bdist.win32\winexe\lib\PYTHON22\db
copying db\schema.sql -> build\bdist.win32\winexe\lib\PYTHON22\db
copying db\sqlite.exe -> build\bdist.win32\winexe\lib\PYTHON22\db
+----------------------------------------------------
| Processing script Aggregator.py with py2exe-0.3.3
+----------------------------------------------------
Copying data files
not copying db\schema.sql (output up-to-date)
not copying db\sqlite.exe (output up-to-date)
creating build\bdist.win32\winexe\collect
creating build\bdist.win32\winexe\collect\Aggregator
creating build\bdist.win32\winexe\collect\Aggregator\Scripts.py2exe
Searching modules needed to run 'Aggregator.py' on path:
['C:\\Documents and Settings\\ewalstad\\My
Documents\\ew\\2003\\pl\\kiosk\\plJoi
n\\build\\bdist.win32\\winexe\\lib\\PYTHON22\\Lib\\site-packages', '',
'C:\\Pyth
on22\\lib\\site-packages\\Pythonwin',
'C:\\Python22\\lib\\site-packages\\win32',
'C:\\Python22\\lib\\site-packages\\win32\\lib',
'C:\\Python22\\lib\\site-packag
es', 'C:\\PYTHON22\\DLLs', 'C:\\PYTHON22\\lib',
'C:\\PYTHON22\\lib\\lib-tk', 'C:
\\PYTHON22']
force_imports =
Resolving binary dependencies:
C:\Python22\lib\site-packages\sqlite.dll
C:\WINDOWS\System32\python22.dll
C:\Python22\lib\site-packages\mx\DateTime\mxDateTime\mxDateTime.pyd
C:\Python22\lib\site-packages\py2exe\run.exe
C:\Python22\lib\site-packages\_sqlite.pyd
C:\Python22\lib\site-packages\csv.pyd
C:\PYTHON22\DLLs\_sre.pyd
ext_mapping = {
'_sqlite': ('_sqlite.pyd', ('.pyd', 'rb', 3))
'_sre': ('_sre.pyd', ('.pyd', 'rb', 3))
'sqlite': ('sqlite.dll', ('', '', 5))
'csv': ('csv.pyd', ('.pyd', 'rb', 3))
'mx.DateTime.mxDateTime.mxDateTime': ('mxDateTime.pyd', ('.pyd', 'rb', 3))
}
copying C:\Python22\lib\site-packages\py2exe\support.py ->
build\bdist.win32\win
exe\collect\Aggregator\Scripts.py2exe
byte-compiling C:\PYTHON22\lib\pre.py to pre.pyc
byte-compiling C:\Python22\lib\site-packages\sqlite\__init__.py to
sqlite\__init
__.pyc
byte-compiling C:\PYTHON22\lib\__future__.py to __future__.pyc
byte-compiling C:\PYTHON22\lib\copy_reg.py to copy_reg.pyc
byte-compiling C:\PYTHON22\lib\sre_compile.py to sre_compile.pyc
byte-compiling C:\PYTHON22\lib\macpath.py to macpath.pyc
byte-compiling C:\PYTHON22\lib\popen2.py to popen2.pyc
byte-compiling db.py to db.pyc
byte-compiling C:\PYTHON22\lib\imputil.py to imputil.pyc
byte-compiling C:\Python22\lib\site-packages\mx\DateTime\__init__.py to
mx\DateT
ime\__init__.pyc
byte-compiling C:\PYTHON22\lib\shutil.py to shutil.pyc
byte-compiling C:\Python22\lib\site-packages\mx\DateTime\DateTime.py to
mx\DateT
ime\DateTime.pyc
byte-compiling C:\Python22\lib\site-packages\sqlite\main.py to
sqlite\main.pyc
byte-compiling C:\PYTHON22\lib\dospath.py to dospath.pyc
byte-compiling C:\Python22\lib\site-packages\mx\DateTime\Parser.py to
mx\DateTim
e\Parser.pyc
byte-compiling C:\Python22\lib\site-packages\mx\DateTime\Timezone.py to
mx\DateT
ime\Timezone.pyc
byte-compiling
C:\Python22\lib\site-packages\mx\DateTime\mxDateTime\__init__.py
to mx\DateTime\mxDateTime\__init__.pyc
byte-compiling C:\PYTHON22\lib\rfc822.py to rfc822.pyc
byte-compiling C:\PYTHON22\lib\sre_constants.py to sre_constants.pyc
byte-compiling C:\PYTHON22\lib\re.py to re.pyc
byte-compiling C:\Python22\lib\site-packages\mx\DateTime\ISO.py to
mx\DateTime\I
SO.pyc
byte-compiling Serializer.py to Serializer.pyc
byte-compiling C:\Python22\lib\site-packages\mx\DateTime\ARPA.py to
mx\DateTime\
ARPA.pyc
byte-compiling C:\PYTHON22\lib\getopt.py to getopt.pyc
byte-compiling C:\PYTHON22\lib\ntpath.py to ntpath.pyc
byte-compiling C:\PYTHON22\lib\stat.py to stat.pyc
byte-compiling csiSplit.py to csiSplit.pyc
byte-compiling C:\PYTHON22\lib\string.py to string.pyc
byte-compiling C:\PYTHON22\lib\warnings.py to warnings.pyc
byte-compiling C:\PYTHON22\lib\UserDict.py to UserDict.pyc
byte-compiling C:\Python22\lib\site-packages\mx\Misc\__init__.py to
mx\Misc\__in
it__.pyc
byte-compiling C:\Python22\lib\site-packages\mx\Misc\LazyModule.py to
mx\Misc\La
zyModule.pyc
byte-compiling C:\PYTHON22\lib\repr.py to repr.pyc
byte-compiling C:\PYTHON22\lib\copy.py to copy.pyc
byte-compiling C:\PYTHON22\lib\types.py to types.pyc
byte-compiling C:\PYTHON22\lib\sre.py to sre.pyc
byte-compiling C:\Python22\lib\site-packages\mx\__init__.py to
mx\__init__.pyc
byte-compiling C:\PYTHON22\lib\weakref.py to weakref.pyc
byte-compiling C:\PYTHON22\lib\linecache.py to linecache.pyc
byte-compiling C:\PYTHON22\lib\posixpath.py to posixpath.pyc
byte-compiling C:\PYTHON22\lib\sre_parse.py to sre_parse.pyc
byte-compiling C:\PYTHON22\lib\os.py to os.pyc
copying Aggregator.py ->
build\bdist.win32\winexe\collect\Aggregator\Scripts.py2
exe\__main__.py
changing into 'build\bdist.win32\winexe\collect\Aggregator'
zip -rq "C:\Documents and Settings\ewalstad\My
Documents\ew\2003\pl\kiosk\plJoin
\build\bdist.win32\winexe\Aggregator.zip" .
creating 'C:\Documents and Settings\ewalstad\My
Documents\ew\2003\pl\kiosk\plJoi
n\build\bdist.win32\winexe\Aggregator.zip' and adding '.' to it
changing back to 'C:\Documents and Settings\ewalstad\My
Documents\ew\2003\pl\kio
sk\plJoin'
creating dist\Aggregator\Aggregator.exe
not copying C:\Python22\lib\site-packages\sqlite.dll (output up-to-date)
not copying C:\WINDOWS\System32\python22.dll (output up-to-date)
not copying
C:\Python22\lib\site-packages\mx\DateTime\mxDateTime\mxDateTime.pyd
(output up-to-date)
not copying C:\Python22\lib\site-packages\_sqlite.pyd (output up-to-date)
not copying C:\Python22\lib\site-packages\csv.pyd (output up-to-date)
not copying C:\PYTHON22\DLLs\_sre.pyd (output up-to-date)
warning: py2exe:
***************************************************************
**********
warning: py2exe: * The following modules were not found:
warning: py2exe: * mxDateTime.__version__
warning: py2exe: * os.path
warning: py2exe:
***************************************************************
**********
removing 'build\bdist.win32\winexe\collect\Aggregator' (and everything
under it)
Built File dist\Aggregator\Aggregator.exe
removing 'build\bdist.win32\winexe' (and everything under it)
################## END COMPILE INFO ##################
More information about the Python-win32
mailing list