New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No support for PySide2 in standalone mode #170
Comments
There is a plugin in Nuitka that deals with implicit imports and handles these for PyQt5 and PySide already. Recently I noticed that PyQt5 provides so called ".pyi "files, which (with upcoming fixes that I have yet to push to factory and pre-release this weekend) which seem to provide all the hidden dependencies. Can we try and convince PySide2 makers, which is apparently the Qt project now to provide these, so we don't have to hard code them in Nuitka (and in everything else on the planet that attempts to package it)? Otherwise, feel free to search "PySide" in Nuitka and extend it for PySide2 too as well, and very likely things will work. The "plugins" code will need to be adapted to recognize it either way. |
If you are willing to make a PR for Nuitka, I can help you get this done, it's not rocket science, but for the implicit imports, I would very much prefer to talk to PySide2 makers for them to provide files with these hidden imports in them. As PySide2 seems unfinished, I am not going to care all that much about it, esp. as I had bad experience with getting PySide patches merged in the past. Could well be that PySide2 still hard codes uncompiled function type checks like PySide did. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Hi there!
Thought maybe I get lucky, copying the qt-plugins folder (containing a platforms-folder) into the PySide2 folder (giving me I may be able to provide you with a PR, don't know much about Nuitka unfortunately, neither about PySide2, but adapting nuitka/plugins/standard/PySidePyQtPlugin.py, I may be able to do that. Just wanted to ask if someone knew the error from above, what it means and if there are any gotyas for adapting the plugin? PS: @kayhayen (and all other contributors) really really really awesome work! Appart from other advantages I think Nuitka completes the python eco system: why would I use pyinstaller/cx_freeze/aso. when I can get all the advantages of a compiled piece of software? I think it's great! |
@girstenbrei sorry for not getting back to you sooner. I invite you to check out the PySide/PyQt plugin in Looking forward to your pull request. Yours, |
Hello. I submitted a pull request. I managed to make it work with a simple hello-world PySide2 example. import sys app = QApplication(sys.argv) |
When https://bugreports.qt.io/browse/PYSIDE-1523 is included PySide will be good with Nuitka. There is experimental support for PySide2 right now, but it has a few bugs. Closing this as a duplicate. |
Before submitting an Issue, please review the Issue Guidelines.
the python code
compiled with
zipped the resulting
hello-world.dist
and copied it on a different computer.unzipped and:
if i run
i can correctly run the resulting
hello-world.bin
on the same machine, even if i'm not in the virtual environment.i can provide the zip file, if it is useful for you...
The text was updated successfully, but these errors were encountered: