Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. PySide6 Error on the First Run: Found Invalid Metadata (Invalid metadata version)

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

Scheduled Pinned Locked Moved Unsolved Qt for Python
qt for pythonpyside
4 Posts 2 Posters 3.8k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Q Offline
    Q Offline
    qshangwu
    wrote on 17 Jun 2021, 07:00 last edited by
    #1

    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

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 17 Jun 2021, 18:34 last edited by
      #2

      Hi and welcome to devnet,

      It might be related to the Python version.

      Can you try with Python 3.8 or even 3.9 ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      2
      • Q Offline
        Q Offline
        qshangwu
        wrote on 17 Jun 2021, 23:40 last edited by
        #3

        Thank you SGaist,

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

        qshangwu

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 18 Jun 2021, 20:26 last edited by
          #4

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

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0

          1/4

          17 Jun 2021, 07:00

          • Login

          • Login or register to search.
          1 out of 4
          • First post
            1/4
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved