简体   繁体   中英

cx_Freeze “error in the main script” window not opening

Ok, so I am creating an exe for my calculator. After I had launched the application once the build was created, it created an error window but for some reason, the window won't open. I've tried using alt - tab to switch but the window still won't open entirely which is preventing me from pinpointing the issue. enter image description here

The small window at the bottom right is the window with the error of the application. However, it won't open and I was hoping there is a solution as to why it won't open?

If your application does not work there is an error.

The setup script seems OK but I am dubious about base = none followed by base = win32gui and win64gui .

Try replacing it with:

if(sys.platform == 'win32'):
    base = 'WIN32GUI'
else:
    base = None

Also you do not mention if errors appear (or at least you cannot see them) try running the application with command prompt.

This is probably the best way of finding out what the problem is. From this you should be able to work out what's going wrong.

EDIT:

I have found out Win64GUI does not exist. It's Win32GUI or None

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