Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Several errors in plugins ("windows")
QtWS25 Last Chance

Several errors in plugins ("windows")

Scheduled Pinned Locked Moved Unsolved General and Desktop
pythonpyqtdllqwindowbug
1 Posts 1 Posters 444 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.
  • O Offline
    O Offline
    olenscki
    wrote on 2 Feb 2023, 14:13 last edited by
    #1

    Hello! I'm having an error trying to run a script that uses PySide6:

    (base) C:\Users\usr\OneDrive\Documentos\TUM\HiWi\Projects\ITManager>python main.py
    qt.core.plugin.factoryloader: checking directory path "C:/Users/usr/anaconda3/Library/plugins/platforms" ...
    qt.core.plugin.factoryloader: looking at "C:/Users/usr/anaconda3/Library/plugins/platforms/qdirect2d.dll"
    qt.core.plugin.loader: Failed to find metadata in lib C:/Users/usr/anaconda3/Library/plugins/platforms/qdirect2d.dll: 'C:/Users/usr/anaconda3/Library/plugins/platforms/qdirect2d.dll' is not a valid Windows DLL (.qtmetadata section has incorrect magic)
    qt.core.plugin.factoryloader: "Failed to extract plugin meta data from 'C:/Users/usr/anaconda3/Library/plugins/platforms/qdirect2d.dll': 'C:/Users/usr/anaconda3/Library/plugins/platforms/qdirect2d.dll' is not a valid Windows DLL (.qtmetadata section has incorrect magic)"
             not a plugin
    qt.core.plugin.factoryloader: looking at "C:/Users/usr/anaconda3/Library/plugins/platforms/qminimal.dll"
    qt.core.plugin.loader: Failed to find metadata in lib C:/Users/usr/anaconda3/Library/plugins/platforms/qminimal.dll: 'C:/Users/usr/anaconda3/Library/plugins/platforms/qminimal.dll' is not a valid Windows DLL (.qtmetadata section has incorrect magic)
    qt.core.plugin.factoryloader: "Failed to extract plugin meta data from 'C:/Users/usr/anaconda3/Library/plugins/platforms/qminimal.dll': 'C:/Users/usr/anaconda3/Library/plugins/platforms/qminimal.dll' is not a valid Windows DLL (.qtmetadata section has incorrect magic)"
             not a plugin
    qt.core.plugin.factoryloader: looking at "C:/Users/usr/anaconda3/Library/plugins/platforms/qoffscreen.dll"
    qt.core.plugin.loader: Failed to find metadata in lib C:/Users/usr/anaconda3/Library/plugins/platforms/qoffscreen.dll: 'C:/Users/usr/anaconda3/Library/plugins/platforms/qoffscreen.dll' is not a valid Windows DLL (.qtmetadata section has incorrect magic)
    qt.core.plugin.factoryloader: "Failed to extract plugin meta data from 'C:/Users/usr/anaconda3/Library/plugins/platforms/qoffscreen.dll': 'C:/Users/usr/anaconda3/Library/plugins/platforms/qoffscreen.dll' is not a valid Windows DLL (.qtmetadata section has incorrect magic)"
             not a plugin
    qt.core.plugin.factoryloader: looking at "C:/Users/usr/anaconda3/Library/plugins/platforms/qwindows.dll"
    qt.core.plugin.loader: Failed to find metadata in lib C:/Users/usr/anaconda3/Library/plugins/platforms/qwindows.dll: 'C:/Users/usr/anaconda3/Library/plugins/platforms/qwindows.dll' is not a valid Windows DLL (.qtmetadata section has incorrect magic)
    qt.core.plugin.factoryloader: "Failed to extract plugin meta data from 'C:/Users/usr/anaconda3/Library/plugins/platforms/qwindows.dll': 'C:/Users/usr/anaconda3/Library/plugins/platforms/qwindows.dll' is not a valid Windows DLL (.qtmetadata section has incorrect magic)"
             not a plugin
    qt.core.plugin.factoryloader: checking directory path "C:/Users/usr/anaconda3/platforms" ...
    qt.core.plugin.factoryloader: looking at "C:/Users/usr/anaconda3/platforms/qdirect2d.dll"
    qt.core.plugin.loader: Failed to find metadata in lib C:/Users/usr/anaconda3/platforms/qdirect2d.dll: 'C:/Users/usr/anaconda3/platforms/qdirect2d.dll' is not a valid Windows DLL (.qtmetadata section has incorrect magic)
    qt.core.plugin.factoryloader: "Failed to extract plugin meta data from 'C:/Users/usr/anaconda3/platforms/qdirect2d.dll': 'C:/Users/usr/anaconda3/platforms/qdirect2d.dll' is not a valid Windows DLL (.qtmetadata section has incorrect magic)"
             not a plugin
    qt.core.plugin.factoryloader: looking at "C:/Users/usr/anaconda3/platforms/qminimal.dll"
    qt.core.plugin.loader: Failed to find metadata in lib C:/Users/usr/anaconda3/platforms/qminimal.dll: 'C:/Users/usr/anaconda3/platforms/qminimal.dll' is not a valid Windows DLL (.qtmetadata section has incorrect magic)
    qt.core.plugin.factoryloader: "Failed to extract plugin meta data from 'C:/Users/usr/anaconda3/platforms/qminimal.dll': 'C:/Users/usr/anaconda3/platforms/qminimal.dll' is not a valid Windows DLL (.qtmetadata section has incorrect magic)"
             not a plugin
    qt.core.plugin.factoryloader: looking at "C:/Users/usr/anaconda3/platforms/qoffscreen.dll"
    qt.core.plugin.loader: Failed to find metadata in lib C:/Users/usr/anaconda3/platforms/qoffscreen.dll: 'C:/Users/usr/anaconda3/platforms/qoffscreen.dll' is not a valid Windows DLL (.qtmetadata section has incorrect magic)
    qt.core.plugin.factoryloader: "Failed to extract plugin meta data from 'C:/Users/usr/anaconda3/platforms/qoffscreen.dll': 'C:/Users/usr/anaconda3/platforms/qoffscreen.dll' is not a valid Windows DLL (.qtmetadata section has incorrect magic)"
             not a plugin
    qt.core.plugin.factoryloader: looking at "C:/Users/usr/anaconda3/platforms/qwindows.dll"
    qt.core.plugin.loader: Failed to find metadata in lib C:/Users/usr/anaconda3/platforms/qwindows.dll: 'C:/Users/usr/anaconda3/platforms/qwindows.dll' is not a valid Windows DLL (.qtmetadata section has incorrect magic)
    qt.core.plugin.factoryloader: "Failed to extract plugin meta data from 'C:/Users/usr/anaconda3/platforms/qwindows.dll': 'C:/Users/usr/anaconda3/platforms/qwindows.dll' is not a valid Windows DLL (.qtmetadata section has incorrect magic)"
             not a plugin
    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.
    

    I've read about this bug in some foruns (stackoverflow and here, basically) and I've tried to run some debug that I've read there:

    • running echo %QT_PLUGIN_PATH% returns just %QT_PLUGIN_PATH%;
    • I tried to download the ListDlls program, but I don't know which executable should be searched for in this case (I've tried python, but it didn't yield any results).
    • I've checked env variables for Qt related things, but found nothing;
    • I've searched the whole C:\ for qwindows.dll files, I found at least 10 of them, but I don't know if I can just erase the recent added ones or which one I can erase;
      Search in the C:\ disk
    • I've tried to reinstall both Python and Anaconda, to no success;
    • I even tried to add one of the qwindows.dll location as a env variable QT_QPA_PLATFORM_PLUGIN_PATH even though people disprove it, to no success.

    And don't know what else to do... I'm thinking about a full reboot in my computer at this point. Any thoughts?

    1 Reply Last reply
    0

    1/1

    2 Feb 2023, 14:13

    • Login

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