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) even with Python 3.9
Forum Updated to NodeBB v4.3 + New Features

PySide6 Error on the First Run: Found Invalid Metadata (Invalid metadata version) even with Python 3.9

Scheduled Pinned Locked Moved Unsolved Qt for Python
3 Posts 2 Posters 1.6k Views 1 Watching
  • 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.
  • R Offline
    R Offline
    rodrigo.searchs
    wrote on last edited by
    #1

    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!

    1 Reply Last reply
    0
    • R Offline
      R Offline
      rodrigo.searchs
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        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.

        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
        1

        • Login

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