When using Qt 5.15 in Qt Creator, an error message about "invalid metadata" from PySide 6.8 pops up.
-
Found invalid metadata in lib D:/Software/Anaconda3/Lib/site-packages/PySide6/plugins/platforms/qdirect2d.dll: Invalid metadata version
Found invalid metadata in lib D:/Software/Anaconda3/Lib/site-packages/PySide6/plugins/platforms/qminimal.dll: Invalid metadata version
Found invalid metadata in lib D:/Software/Anaconda3/Lib/site-packages/PySide6/plugins/platforms/qoffscreen.dll: Invalid metadata version
Found invalid metadata in lib D:/Software/Anaconda3/Lib/site-packages/PySide6/plugins/platforms/qwindows.dll: Invalid metadata version

-
Hi and welcome to devnet,
Are you working within a conda environment and Qt 5 comes from the online installer ?
-
Hi and welcome to devnet,
Are you working within a conda environment and Qt 5 comes from the online installer ?
@SGaist yes,and I'm new here and don't know what to do next.
-
From the looks of it, it seems that you have installed PySide6 in your base conda environment which is something you should not do. The base environment is meant to have a minimal conda environment from which you create the others where you actually do the work and activate when needed.
I can see multiple options:- cleanup the base environment
- deactivate the base environment by default (look at the conda documentation for that)
- install Qt through conda and use that version
Personally, I would do the two former.
Also, you should rather go with Qt 6. -
From the looks of it, it seems that you have installed PySide6 in your base conda environment which is something you should not do. The base environment is meant to have a minimal conda environment from which you create the others where you actually do the work and activate when needed.
I can see multiple options:- cleanup the base environment
- deactivate the base environment by default (look at the conda documentation for that)
- install Qt through conda and use that version
Personally, I would do the two former.
Also, you should rather go with Qt 6.@SGaist Thanks bro,I did installed PySide6 in my base conda environment,and another PySide6 in a different conda environment.
I have both Qt5 and Qt6 in my computer,thanks for your suggestion,bro.
-
So did you get it working ?
-
@SGaist Yes,it works👍
-
D Deng_Yaohe has marked this topic as solved on