简体   繁体   中英

py2app error: “can't copy '%s': doesn't exist or not a regular file”

I'm trying to pack my Python app with py2app. I'm running the setup.py I created, and I get this error:

  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

Does anyone have any clue what I'm supposed to do?

It looks like, for some reason or other, it's trying to interpret the command-line switch --dist-dir as a filename. Perhaps the actual switch is named something else and you typo'd it? Or perhaps it needs to be specified in a different order?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM