qt.qpa.plugin: Could not load the Qt platform plugin "windows" in "" even though it was found.
Search before asking
- [X] I have searched the X-AnyLabeling issues and found no similar bug report.
X-AnyLabeling Component
Install
Bug
QObject::moveToThread: Current thread (0x25aca10f960) is not the object's thread (0x25ace8827a0). Cannot move to target thread (0x25aca10f960)
qt.qpa.plugin: Could not load the Qt platform plugin "windows" in "" even though it was found. This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: minimal, offscreen, webgl, windows.
Information
Link to a Reproducible Demonstration Video
Execution Mode
Source Code
Additional
No response
Are you willing to submit a PR?
- [X] Yes I'd like to help by submitting a PR!
Hello @FQ457 👋,
Thank you for reporting the issue with app.py. It seems like you're encountering a threading issue with the Qt platform plugin on Windows.
First, let's ensure that your environment is set up correctly. Could you please follow the steps you've mentioned and download the latest source code? After that, run the python anylabeling/checks.py script and paste the output here? This will help us diagnose if there are any missing dependencies or configuration issues.
In the meantime, here are a few things you can check:
- Make sure you have the correct version of Qt installed for your Python environment.
- Verify that the
QT_PLUGIN_PATHenvironment variable is set correctly to where the Qt plugins are located. - Ensure that there are no conflicting installations of Qt or Python.
If you've recently updated your environment or installed new packages, trying to create a clean virtual environment and reinstalling the dependencies might also resolve the issue.
Looking forward to your response with the environment information. If you need further assistance, feel free to ask! 😊