-
Notifications
You must be signed in to change notification settings - Fork 24
Can anyone help figure out how to build a binary for the Python3 port? #46
Comments
@axu2 I've had great success with pyinstaller on other py3 projects on Windows.
I once had an issue that required a not-yet released build, pip installable via:
|
Can you try building it yourself? I can't figure it out. Here's my python 3 fork. The exe that gets build just closes immediately when I try, even though running |
@axu2 I do NOT have PyQT, so I took your py3 branch combined with my cli branch and created I then created an exe and posted to: Created as described above with Python 3.7.3:
|
Also check out https://github.com/mherrmann/fbs (I'm not sure if this supports py3 though, but it covers more than just exe generation) |
Why don't you just pip install pyqt5? EDIT: just tried didn't work with pyinstaller PyQt4 for python2 was the one that was hard to install. (Though seeing as how you got it to work without PyQT5 indicates that PyQT5 is the problem). Just updated all my dependencies, still no dice with
|
To debug this one could try removing parts of the app/strip it down until it works. |
Hi @axu2 it looks like there are specific hook-PyQt5.py in PyInstaller, there is a warning in the build log about missing sip. So that would probably be a good place to start looking. I tried your suggestion, exe builds but runs and exits silently. I don't have an interest in this (I want headless, to run on an SBC) but if it were me, I'd be tempted to debug with pdb (logging statements, etc.) in the generated exe to trace what is happening rather than stripping/removing parts (but that's a valid technique as well :)). Good luck with this, if you think its PyQT5 specific opening a ticket with PyInstaller or upstream PyQt5 may be worth a shot once you have an idea where the error is happening (at the moment the error is getting hidden). |
Just tried with 32 bit Python 3 with same result. Thought it was worth a shot since the Python2 version of py2exe only supported 32 bit. |
Sorry, haven't been keeping up with my Github notifications.. I'm afraid I was just running the app with python. So can't help with an exe I'm afraid. |
Ah well, was hoping you had some insight since I saw PyBuilder stuff in there. I removed that in my branch. |
@gigajosh
The Python3 port is just a copy paste of your branch, do you know how?
The text was updated successfully, but these errors were encountered: