0
我想將我的包設置爲Pypi。 當我運行發佈代碼Pypi
python setup.py sdist bdist_wininst upload
出現此錯誤:
File "setup.py", line 8, in <module>
long_description=open('README.txt').read(),
File "/usr/lib/python2.7/distutils/core.py", line 152, in setup
dist.run_commands()
File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
self.run_command(cmd)
File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/usr/lib/python2.7/distutils/command/bdist_wininst.py", line 189, in run
self.create_exe(arcname, fullname, self.bitmap)
File "/usr/lib/python2.7/distutils/command/bdist_wininst.py", line 271, in create_exe
file.write(self.get_exe_bytes())
File "/usr/lib/python2.7/distutils/command/bdist_wininst.py", line 366, in get_exe_bytes
raise DistutilsFileError, str(msg) + ', %s not included in the Debian packages.' % filename
NameError: global name 'DistutilsFileError' is not defined
我怎樣才能解決這個問題?
我這個問題 – 2013-04-23 21:15:23
那麼不能修復的錯誤,也許在這種情況下,你能解釋一下當你改變線路是什麼錯誤?你顯然在某處丟失了一個依賴項,那是在bsdit_wininst.py中;如你的錯誤日誌中所述 – jlengrand 2013-04-24 06:55:17