Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

PySide6 Error on the First Run: Found Invalid Metadata (Invalid metadata version)



  • 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


  • Lifetime Qt Champion

    Hi and welcome to devnet,

    It might be related to the Python version.

    Can you try with Python 3.8 or even 3.9 ?



  • Thank you SGaist,

    I changed Python version from 3.7 to 3.9 and the error is fixed! Thank you very much:)

    qshangwu


  • Lifetime Qt Champion

    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 :-)


Log in to reply