-
Notifications
You must be signed in to change notification settings - Fork 18
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
Python 3.11 is not supported #120
Comments
Getting Linux GUI apps running correctly through WSL may be a bit challenging. Have you followed the directions in the link below for GUI app support? |
Yes, I have read that, and other GUI apps do work inside WSL. |
I got the same error on a native Ubuntu 23.4 and another Ubuntu 20.4 machine. It seems like the reason is that PySide2 5.15.2.1 is not available for python3.11 and above, and pip installs PySide2 5.13.2 instead. For some reason bitwise operations on Qt.Alignment flag objects seem broken on this version: import PySide2
print(PySide2.__version__)
a = (PySide2.QtCore.Qt.AlignHCenter | PySide2.QtCore.Qt.AlignBottom) returns:
Thats the error you are getting, as these operations are used to create the splash screen when launching openmc-plotter. I don't know enough about PySide2 or Qt to propose an elegant fix to the problem, but I guess reverting to python3.10 fixes to issue (it did for me) |
I just updated the title here to reflect the fact that we rely on PySide2, which doesn't currently support Python 3.11 (or at least the wheels that are available on PyPI do not). See here for more details. Python 3.11 is supported as of 5.15.11 but PyPI only has 5.15.2 and earlier. I'm wondering if just switching to PySide6 (see #121) would give us an easier path to a working install on Python 3.11. |
Closed with #127 |
Hello, everyone!
I am trying to launch openmc-plotter and get the following error:
I use Debian in WSL2, if that has anything to do with that. Everything was installed with pip, rather than conda.
If I am missing something, could you. please, point me in the right direction?
The text was updated successfully, but these errors were encountered: