-
Notifications
You must be signed in to change notification settings - Fork 35
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
p2App: MTLIOAccelDevice bad MetalPluginClassName property (null) on app startup #359
Comments
See related issue at: cython/cython#4269 |
The application runs fines from CPython form main.py with only testLoad.pyx compiled. Clearly an issue with packaging by py2app. |
One thing that will be problematic here is that The best workaround for that is to have add an import of PyQt to one of the pure python modules. Adding a "packages" option likely won't work because PyQt requires some special handling in py2app. That said, I haven't tested this workaround yet. |
The error message I get:
Adding a dummy function to main.py fixes that problem:
Alternatively add an option to setup.py to tell py2app to include PyQt:
That doesn't fix all problems though, I now get a different error:
That's a different problem: PyQt6 requires a recipe update. Using PyQt5 instead of PyQt6 results in a working application. |
This example is used to debug #359
|
I'm using python 3.9 to compile a simple Qt6 "Hello World" application in Cython and py2app. It works perfectly fine under CPython 3.9. It compiles properly but fails to run in Cython and p2app.
Here are the project files:
testLoad.pyx:
main.py:
and setup.py:
When I run the program, I get this error on the console:
The text was updated successfully, but these errors were encountered: