ryber
ryber

Reputation: 4555

PyInstaller Created App WIll Launch from cmd but not from explorer

I am having some problems with a app we are making with wxWidget/wxPython and PyInstaller.

We have compiled the app into a single exe for windows but:

1) On some machines it will not launch at all. It doesn't generate a error or anything in the app logs. It just stops almost immediately.

2) On some machines it will launch fine from cmd but not from explorer. again, same behavior. It just stops almost immediately. I don't even see it pop up in the process explorer.

3) On some machines it works just fine.

Are there any tips on how I can figure out what is going wrong? Is there a way to launch a exe with a debugger?

Upvotes: 0

Views: 448

Answers (1)

Fenikso
Fenikso

Reputation: 9451

There are a few things you may want to look into:

  1. Did you compile it as "one file"? I have heard that one exe may be blocked by some antivirus programs. It uses a few of hacks to get everything in one executable which may be considered malicious.
  2. Did you compile it as Windows app (no console)? You may want to enable console and run it on machine where it does not run at all from console. That way you may see why it crashes.

Upvotes: 1

Related Questions