-
Notifications
You must be signed in to change notification settings - Fork 1
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
QWidget: Must construct a QApplication before a QWidget #37
Comments
Hello @younes1010, thanks for raising this. Could you please let me know what your operating system is? |
Ignore the last comment, I just found your full list here: |
We've always had some problems getting windows to open nicely on the Linux variants. It seems to be very sensitive to versions of PySide and VTK, see this related issue. SciKit-Surgery/scikit-surgeryutils#49. I'll have a quick test and see if I can get the tutorial working for me (Ubuntu 22.04.4 LTS). |
Thank you, Mr. thompson318 . The software works well on Windows, but on Linux, it still poses a problem. I think the issue is caused by a mismatch of the X11 (X Window System) version. |
Hi,
I'm trying to re-implement the scikit-surgerytutorial01 so I exactly followed all steps indicated in the documentation "https://scikit-surgerytutorial01.readthedocs.io/en/latest/01_VTK_Overlay_App.html" and I created a virtual environment where I installed all requirements with indicated versions on requirements.txt and .yml file. After, I created a file named overlay.py with the following code :
When I execute this code I get :
(python_3.7_venv) younes@younes-ThinkPad-X1-Carbon-3rd:~/python_3.7_venv$ python overlay.py
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
QWidget: Must construct a QApplication before a QWidget
Aborted (core dumped)
I'd like to know why I get this error: QWidget: Must construct a QApplication before a QWidget and how to deal with this problem.
cheers,
younes
The text was updated successfully, but these errors were encountered: