首先,该机器正在运行Fedora 13,并且PyInstaller的版本为1.5.1。
我在生成规范时使用了--onefile。
我没有在Python解释器中运行'import atexit'时遇到任何错误。
以下是运行二进制文件时的回溯信息:
Traceback (most recent call last):
File "<string>", line 14, in <module>
File "/home/pyinstaller-1.5.1/iu.py", line 436, in importHook
mod = _self_doimport(nm, ctx, fqname)
File "/home/pyinstaller-1.5.1/iu.py", line 495, in doimport
mod = importfunc(nm)
File "/home/pyinstaller-1.5.1/iu.py", line 297, in getmod
mod = owner.getmod(nm)
File "/home/pyinstaller-1.5.1/archive.py", line 468, in getmod
return iu.DirOwner.getmod(self, self.prefix+'.'+nm)
File "/home/pyinstaller-1.5.1/iu.py", line 109, in getmod
mod = imp.load_module(nm, fp, attempt, (ext, mode, typ))
File "/home/pyinstaller-1.5.1/iu.py", line 436, in importHook
mod = _self_doimport(nm, ctx, fqname)
File "/home/pyinstaller-1.5.1/iu.py", line 505, in doimport
mod = director.getmod(nm)
File "/home/pyinstaller-1.5.1/iu.py", line 297, in getmod
mod = owner.getmod(nm)
File "/home/pyinstaller-1.5.1/iu.py", line 109, in getmod
mod = imp.load_module(nm, fp, attempt, (ext, mode, typ))
File "/home/pyinstaller-1.5.1/iu.py", line 455, in importHook
raise ImportError, "No module named %s" % fqname
ImportError: No module named atexit