[visionegg] Re: py2exe and VisionEgg
- From: "Gabriel Nevarez" <NevarezG@xxxxxxxxxxxxx>
- To: <visionegg@xxxxxxxxxxxxx>
- Date: Tue, 18 Jan 2005 22:50:52 +0000
Hi, Andrew,
I figured the quickest way to determine where the problem might lie is to verify
that the specfile generated is the correct one. I have included the specfile for
the demo "displayText.py" and the error message below. If possible, do you have
the "correct" specfile for this (or any of the demos) available?
I modified the build-win-exe-demos.py file so that the only file on the list is
"displayText.py" (probably the simplest demo program).
Running the build-win-exe-demos.py script generates the following spec file:
*************************************************
common_modules = ['Tkinter','ConfigParser','Image','ImageFile',
'Numeric','pickle','threading','traceback','warnings']
pyzsupport = Analysis(['pyz_support.py'],pathex=[])
common = TOC([])
displayText = Analysis([os.path.join(HOMEPATH,'support\\_mountzlib.py'),
os.path.join(HOMEPATH,'supp
ort\\useTK.py'), 'demo\\displayText.py'],
pathex=['C:\\Python23\\VisionEgg'])
displayText_pyz = PYZ(displayText.pure)
displayText_exe = EXE(pyzsupport.scripts,displayText_pyz,
displayText.scripts,
exclude_binaries=1,
name='buildsumo/displayText.exe',
debug=0,
strip=0,
upx=0,
console=1 )
common_pyz = PYZ(common,name='common.pyz')
coll = COLLECT(TkTree(),common_pyz,
displayText_exe, displayText.binaries,
name='sumo')
*********************************************************
Running the resulting executable displayText.exe generates the following error:
C:\Python23\VisionEgg\buildsumo>displaytext
Traceback (most recent call last):
File "<string>", line 4, in ?
File "C:\Installer\iu.py", line 296, in importHook
mod = _self_doimport(nm, ctx, fqname)
File "C:\Installer\iu.py", line 366, in doimport
mod = director.getmod(nm)
File "C:\Installer\iu.py", line 196, in getmod
mod = owner.getmod(nm)
File "C:\Installer\archive.py", line 362, in getmod
raise ImportError, "PYZ entry '%s' (%s) is not a valid code object" % (nm,
repr(co))
ImportError: PYZ entry 'VisionEgg' (0j) is not a valid code object
************
again, any help is greatly appreciated, thanks!
-=gabe
======================================
The Vision Egg mailing list
Archives: http://www.freelists.org/archives/visionegg
Website: http://www.visionegg.org/mailinglist.html
- Follow-Ups:
- [visionegg] Re: py2exe and VisionEgg
- From: Andrew Straw
Other related posts:
- » [visionegg] py2exe and VisionEgg
- » [visionegg] Re: py2exe and VisionEgg
- » [visionegg] Re: py2exe and VisionEgg
- » [visionegg] Re: py2exe and VisionEgg
- » [visionegg] Re: py2exe and VisionEgg
- » [visionegg] Re: py2exe and VisionEgg
- » [visionegg] Re: py2exe and VisionEgg
- » [visionegg] Re: py2exe and VisionEgg
- » [visionegg] Re: py2exe and VisionEgg
- » [visionegg] Re: py2exe and VisionEgg
- [visionegg] Re: py2exe and VisionEgg
- From: Andrew Straw