[Chicago] w:no module named *.* and __all__ is built strangely at line * and delayed exec statment detected at line * problem when with McMillan Installer
=?gb2312?q?=B7=C5=DC=F8=20=CC=B8?=
jolley84 at yahoo.com.cn
Wed Nov 1 13:29:46 CET 2006
hello,u all gus.
i am bothered by a question about McMillan Installer those days,i was programming about something like bittornado,and after completion of the project, i intended to build up a single-exe file.and i choose McMillan Installer.
below is something that i had done:
first the spec file is here
a = Analysis(os.path.join(HOMEPATH,'support\\_mountzlib.py'),PathDirectory\\myScript.py',
pathex = ['PathDirectory\\Installer'])
pyz = PYZ(a.pure)
exe = EXE(pyz,
a.scripts,
a.binaries,
name = 'myScript.exe',
console = 1,
debug = 0,
upx = 1,
strips = 0,
icon = 'myIcon.ico')
also my commandline operation include:
first :
installRootDir>python Makespec.py --onefile --upx --ascii -- debug --noconsole --icon myIcon.ico myScriptDir\myScript.py
second:
installRootDir>python Build.py installRootDir\myScript\myScript.spec
and finally i get the exe file attached with the icon. but when i run it,
it displays like this:
Extracting binaries
C:\Document setting\gzgame\local setting\temp\_MEI3792\*.PYD|*dll
Setting up to run the child
Setting magic environment var
Creating child process
Waiting for child process to finish
Manipulating environment
PYTHONPATH = C:\Document setting\gzgame\local setting\temp\_MEI3792;myScriptDir\support\
importing modules from CArchive
iu
and then it throwed out an exception and crashed.and i donot know why.
in addition,
it includes dozens of error messages here in the warnmyScript.txt
such as :
W: no module named BitTornado.createPeerID (top-level import by __main__)
W: no module named BitTornado.report_email (top-level import by __main__)
W: no module named BitTornado.version (top-level import by __main__)
W: no module named Carbon (conditional import by tempfile)
W: no module named EasyDialogs (conditional import by getpass)
W: no module named MacOS (conditional import by profile)
W: no module named MacOS (conditional import by py_compile)
W: no module named MacOS (delayed, conditional import by wx._core)
W: no module named SOCKS (top-level import by ftplib)
W: no module named _emx_link (conditional import by os)
W: no module named ctypes.windll (top-level import by readline.keysyms)
W: no module named fcntl (delayed import by BitTornado.BT1.Storage)
W: no module named fcntl (top-level import by tempfile)
W: no module named gestalt (conditional import by ctypes)
W: no module named ic (delayed import by urllib)
W: no module named ic (top-level import by webbrowser)
W: no module named org (top-level import by copy)
W: no module named posix (conditional import by os)
W: no module named posix (delayed, conditional import by iu)
W: no module named pwd (delayed import by getpass)
W: no module named pwd (delayed import by webbrowser)
W: no module named pwd (delayed, conditional import by posixpath)
W: no module named rourl2path (conditional import by urllib)
W: no module named termios (top-level import by getpass)
W: no module named win32com.client._get_good_object_ (top-level import by win32com.client.util)
W: no module named wxPython.wx (top-level import by BitTornado.ConfigReader)
W: no module named wxPython.wx (top-level import by __main__)
W: __all__ is built strangely at line 0 - dis (C:\Python24\lib\dis.pyc)
W: delayed __import__ hack detected at line 0 - optparse (C:\Python24\lib\optparse.pyc)
W: __all__ is built strangely at line 0 - tokenize (C:\Python24\lib\tokenize.pyc)
W: delayed exec statment detected at line 0 - profile (C:\Python24\lib\profile.pyc)
W: delayed conditional eval hack detected at line 0 - gopherlib (C:\Python24\lib\gopherlib.pyc)
W: delayed __import__ hack detected at line 0 - encodings (C:\Python24\lib\encodings\__init__.pyc)
W: __all__ is built strangely at line 0 - re (C:\Python24\lib\re.pyc)
W: delayed exec statment detected at line 0 - win32com.client.dynamic (C:\Python24\lib\site-packages\win32com\client\dynamic.pyc)
W: delayed conditional eval hack detected at line 0 - warnings (C:\Python24\lib\warnings.pyc)
W: delayed conditional __import__ hack detected at line 0 - warnings (C:\Python24\lib\warnings.pyc)
W: delayed __import__ hack detected at line 0 - ctypes (C:\Python24\lib\site-packages\ctypes\__init__.pyc)
W: delayed __import__ hack detected at line 0 - ctypes (C:\Python24\lib\site-packages\ctypes\__init__.pyc)
W: __all__ is built strangely at line 0 - wx (C:\Python24\lib\site-packages\wx-2.6-msw-unicode\wx\__init__.pyc)
W: __all__ is built strangely at line 0 - wx (C:\Python24\lib\site-packages\wx-2.6-msw-unicode\wx\__init__.pyc)
W: delayed conditional exec statment detected at line 0 - iu (E:\BitTornado-0.3.15\BitTornado-CVS\Installer\iu.pyc)
W: delayed conditional exec statment detected at line 0 - iu (E:\BitTornado-0.3.15\BitTornado-CVS\Installer\iu.pyc)
W: delayed exec statment detected at line 0 - socket (C:\Python24\lib\socket.pyc)
W: delayed conditional __import__ hack detected at line 0 - win32com.client.gencache (C:\Python24\lib\site-packages\win32com\client\gencache.pyc)
W: delayed __import__ hack detected at line 0 - win32com.client.gencache (C:\Python24\lib\site-packages\win32com\client\gencache.pyc)
W: delayed eval hack detected at line 0 - os (C:\Python24\lib\os.pyc)
W: __all__ is built strangely at line 0 - __future__ (C:\Python24\lib\__future__.pyc)
W: delayed __import__ hack detected at line 0 - win32com.client.makepy (C:\Python24\lib\site-packages\win32com\client\makepy.pyc)
W: delayed __import__ hack detected at line 0 - win32com.server.policy (C:\Python24\lib\site-packages\win32com\server\policy.pyc)
W: delayed eval hack detected at line 0 - gettext (C:\Python24\lib\gettext.pyc)
sorry for this longy reports,thanks for any feedbacks.
regards,
jolley
---------------------------------
ÑÅ»¢Ãâ·ÑÓÊÏä-3.5GÈÝÁ¿£¬20M¸½¼þ
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/chicago/attachments/20061101/2d767795/attachment.html
More information about the Chicago
mailing list