PySide6 Error on the First Run: Found Invalid Metadata (Invalid metadata version)
-
wrote on 17 Jun 2021, 07:00 last edited by
All, it's the first time I try Qt and the error come out after I following the offical website installation instruction.
conda install PySide6 ... ... >>> import PySide6 >>> PySide6.__version__ '6.1.1' >>>
And here is my envoriment:
- PySide6 (6.1.1)
- Conda envoriment
- Python 3.7
- IDE: Sublime
When I run the 'hellow world' sample. It give me the error:
Found invalid metadata in lib C:/Program Files/Anaconda/envs/PY37/Library/plugins/platforms/qdirect2d.dll: Invalid metadata version Found invalid metadata in lib C:/Program Files/Anaconda/envs/PY37/Library/plugins/platforms/qminimal.dll: Invalid metadata version Found invalid metadata in lib C:/Program Files/Anaconda/envs/PY37/Library/plugins/platforms/qoffscreen.dll: Invalid metadata version Found invalid metadata in lib C:/Program Files/Anaconda/envs/PY37/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.
Can anyone help to check and give instructure of how to solve it?
Thank you very much!
qshangwu -
Hi and welcome to devnet,
It might be related to the Python version.
Can you try with Python 3.8 or even 3.9 ?
-
wrote on 17 Jun 2021, 23:40 last edited by
Thank you SGaist,
I changed Python version from 3.7 to 3.9 and the error is fixed! Thank you very much:)
qshangwu
-
You're welcome !
Since you have it working now, please mark the thread as solved using the "Topic Tools" button or the three dotted menu beside the answer you deem correct so that other forum users may know a solution has been found :-)
1/4