开发者

building python tkinter+pmw with cx_freez failed

Hi. I have created a program in python which uses tkinter and pmw, I have build it with the cx_freez, every thing fine, it completes the building process, but when I try to run the exe file I got some path error, but that path is correct don't know why still I am getting the error, please any one can help me I have to give it to my customer as soon as possible. Attached is the error image 1.jpg

building python tkinter+pmw with cx_freez failed

And the directory of build is 2.jpg

building python tkinter+pmw with cx_freez failed

You see I have pmw foler in library.zip then why I am getting the error?

This is my setup.py code, the most common code to create exe.

from cx_Freeze import setup, Executable

exe = Executable(
    script="main.py",
    base="Win32GUI",
)

setup(
    name = "My App",
    version = "0.1",
    description = "blah blah",
    executables = [e开发者_如何学运维xe]
) 


Based on my first rule of debugging ("assume the error message it telling the literal truth"), it says it can't find a path with the literal name *.*. Do you have such a file with the actual three-byte name *.*? My guess is, no. I've never used cx_freeze, but I'm wondering if it's possible you used it wrong and gave it a file pattern where it expected a file or directory name.

Further evidence is that the stack trace is caused by a call to os.listdir, and listdir takes a path, not a glob expression, which is why you get the error that you do.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜