2014-04-27 46 views
0

我知道pyinstaller-2.1適用於python v2.7而不是v3以上版本,但是我確保已經安裝pygame包及其依賴項從hereImportError:在Pyinstaller轉換pygame時沒有名爲base的模塊

我設法通過發佈「python makespec.py --onefile --debug pingpong.py」和「python build.py pingpong.spec」沒有任何錯誤創建spec文件。

發現的錯誤如下,當我試圖執行它在試驗終端中的問題「./pongpong」。

LOADER: out00-PYZ.pyz 
LOADER: Running scripts 
Traceback (most recent call last): 
    File "<string>", line 4, in <module> 
    File "/home/x/Documents/python/PyInstaller-2.1/PyInstaller/loader/pyi_importers.py", line 270, in load_module 
    exec(bytecode, module.__dict__) 
    File "/home/x/Documents/python/PyInstaller-2.1/utils/build/pingpong/out00-PYZ.pyz/pygame", line 127, in <module> 
ImportError: No module named base 
LOADER: RC: -1 from pingpong 
LOADER: OK. 
LOADER: Cleaning up Python interpreter. 
LOADER: Back to parent 
LOADER: Doing cleanup 
LOADER: Freeing archive status for /home/x/Documents/python/PyInstaller-2.1/utils/dist/pingpong 

通知你,我在平臺Ubuntu的32位版本13.10工作的興趣只使用pyinstaller探索和我的windows平臺下使用py2exe成功運行。

回答

0

我有同樣的確切問題...我現在嘗試一些PyInstaller的遺留版本,看看它是否改善情況。

相關問題