PySide6 Error on the First Run: Found Invalid Metadata (Invalid metadata version) even with Python 3.9
-
Im running a github code which uses Pyside6 and get the following error:
Found invalid metadata in lib C:/Users/rodrigo/miniconda3/envs/PYDRACULA/Library/plugins/platforms/qdirect2d.dll: Invalid metadata version Found invalid metadata in lib C:/Users/rodrigo/miniconda3/envs/PYDRACULA/Library/plugins/platforms/qminimal.dll: Invalid metadata version Found invalid metadata in lib C:/Users/rodrigo/miniconda3/envs/PYDRACULA/Library/plugins/platforms/qoffscreen.dll: Invalid metadata version Found invalid metadata in lib C:/Users/rodrigo/miniconda3/envs/PYDRACULA/Library/plugins/platforms/qwindows.dll: Invalid metadata version qt.qpa.plugin: Could not find the Qt platform plugin "windows" in "" This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Im using:
- windows 10 pro
- miniconda with python 3.9
- vscode
- pyqt6 6.1.1
- Pyside6 6.1.2
- installed Qt from their website also.
I can give any details needed, if requested.
There's a similar thread here, but the solution doesn't work for me.Thanks!
-
As partial solution, I uninstalled everything and installed, in this order
- uninstall miktex (it is know that other software's that may use Qt get in the way of the PATH variable)
- miniconda with py3.9
- conda install pyqt
- pip install pyside6
- pip install pyqt6
- set QT_PLUGIN_PATH variable to C:\Users\rodrigo\miniconda3\Lib\site-packages\PyQt6\Qt6\plugins
The 'found invalid metadata' problem persists, but my python program runs without any issue, apparently.
I consider this a partial solution until someone points out a better way.
-
Hi and welcome to devnet,
Why are you installing so many different PyQt/PySide versions in the same environment and from different sources ?
If you want to test them all, you should rather go with one environment per elements to avoid having clashes.