2009-08-05 31 views
0

我試圖用py2app打包我的Python應用程序。我跑了setup.py我創造,我得到這個錯誤:py2app錯誤:「不能複製'%s':不存在或不是普通文件」

File "C:\Python26\lib\distutils\file_util.py", line 119, in copy_file 
    "can't copy '%s': doesn't exist or not a regular file" % src 
DistutilsFileError: can't copy '--dist-dir': doesn't exist or not a regular file 

> c:\python26\lib\distutils\file_util.py(119)copy_file() 
-> "can't copy '%s': doesn't exist or not a regular file" % src 

有沒有人有什麼我應該做的任何線索?

回答

2

由於某種原因,它看起來像是試圖將命令行開關--dist-dir解釋爲文件名。也許實際的開關被命名爲別的東西,你打錯了嗎?或者也許它需要以不同的順序指定?

+0

幹得好。你也可以試試這個:http://stackoverflow.com/questions/1236172/py2app-error-module-object-has-no-attribute-symlink – 2009-08-05 22:49:58

相關問題