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. Could not load the Qt platform plugin "windows" even though it was found
Forum Updated to NodeBB v4.3 + New Features

Could not load the Qt platform plugin "windows" even though it was found

Scheduled Pinned Locked Moved Unsolved Qt for Python
11 Posts 5 Posters 590 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.
  • M memyselfandi
    2 May 2025, 13:48

    I am writing a bunch of unit-tests for my pyqgis-code on my windows-machine:

    import unittest
    
    from qgis.core import QgsApplication
    
    QgsApplication.setPrefixPath(r"C:\OSGeo4W\apps\qgis-ltr", True)
    qgis_app = QgsApplication([], False) 
    qgis_app.initQgis() 
    
    class MyTestClass(unittest.TestCase):
        def test_my_function(self):
            pass
    
    if __name__ == '__main__':
        unittest.main()
    
    # Schritt 2: QGIS-Ressourcen freigeben
    qgis_app.exitQgis()
    

    my env-variables are this:

    Path=C:\OSGeo4W\apps\qgis-ltr\bin;C:\OSGeo4W\apps\qt5\bin;C:\OSGeo4W\apps\Python312\Scripts;C:\OSGeo4W\bin;C:\Windows\system32;C:\Windows;C:\Windows\system32\WBem;c:\Users\myuser\.vscode\extensions\ms-python.debugpy-2025.4.1-win32-x64\bundled\scripts\noConfigScripts
    PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.PY;.PYW
    QT_DEBUG_PLUGINS=1
    PYTHONHOME=C:\OSGeo4W\apps\Python312
    PYTHONPATH=C:\OSGeo4W\apps\qgis-ltr\python
    GDAL_DATA=C:\OSGEO4W\share\gdal
    GDAL_DRIVER_PATH=C:\OSGEO4W\bin\gdalplugins
    GDAL_FILENAME_IS_UTF8=YES
    GS_LIB=C:\OSGeo4W\apps\gs\lib
    GEOTIFF_CSV=C:\OSGEO4W\share\epsg_csv
    O4W_QT_BINARIES=C:\OSGEO4W\apps\Qt5\bin
    O4W_QT_DOC=C:\OSGEO4W\apps\Qt5\doc
    O4W_QT_HEADERS=C:\OSGEO4W\apps\Qt5\include
    O4W_QT_LIBRARIES=C:\OSGEO4W\apps\Qt5\lib
    O4W_QT_PLUGINS=C:\OSGEO4W\apps\Qt5\plugins
    O4W_QT_PREFIX=C:\OSGEO4W\apps\Qt5
    O4W_QT_TRANSLATIONS=C:\OSGEO4W\apps\Qt5\translations
    OSGEO4W_ROOT=C:\OSGeo4W
    QT_PLUGIN_PATH=C:\OSGEO4W\apps\qgis-ltr\qtplugins;C:\OSGEO4W\apps\qt5\plugins
    QT_QPA_PLATFORM_PLUGIN_PATH=C:\OSGeo4W\apps\Qt5\plugin
    QGIS_PREFIX_PATH=C:\OSGEO4W\apps\qgis-ltr
    

    However when I run my test I get the following error:

    Cannot load library C:\OSGEO4W\apps\qt5\plugins\platforms\qwindows.dll: Die angegebene Prozedur wurde nicht gefunden
    

    This is the entire debug-output:

    QFactoryLoader::QFactoryLoader() checking directory path "C:/OSGEO4W/apps/qgis-ltr/qtplugins" ...
    QFactoryLoader::QFactoryLoader() checking directory path "C:/OSGEO4W/apps/qt5/plugins" ...
    QFactoryLoader::QFactoryLoader() checking directory path "C:/Users/myuser/AppData/Roaming/Python/Python312/site-packages/PyQt5/Qt5/plugins" ...
    QFactoryLoader::QFactoryLoader() checking directory path "C:/OSGeo4W/bin" ...
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/adal.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/adal.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/adrg.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/adrg.dll'" 
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/arrow.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/arrow.dll'" 
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/arrow_acero.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/arrow_acero.dll'" 
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/arrow_dataset.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/arrow_dataset.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/blosc.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/blosc.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/brotlicommon.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/brotlicommon.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/brotlidec.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/brotlidec.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/brotlienc.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/brotlienc.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/cairo.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/cairo.dll'" 
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/cblas.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/cblas.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/charset-1.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/charset-1.dll'" 
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/concrt140.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/concrt140.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/exiv2.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/exiv2.dll'" 
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/freetype.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/freetype.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/freexl.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/freexl.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/gdal309.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/gdal309.dll'" 
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/geos.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/geos.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/geos_c.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/geos_c.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/geotiff.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/geotiff.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/gsdll64.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/gsdll64.dll'" 
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/gsl.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/gsl.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/hdf.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/hdf.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/hdf5.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/hdf5.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/hdf5_cpp.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/hdf5_cpp.dll'" 
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/hdf5_hl.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/hdf5_hl.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/hdf5_hl_cpp.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/hdf5_hl_cpp.dll'" 
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/hdf5_tools.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/hdf5_tools.dll'" 
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/hpdf.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/hpdf.dll'" 
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/iconv-2.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/iconv-2.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/icudt.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/icudt.dll'" 
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/icudt67.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/icudt67.dll'" 
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/icuin.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/icuin.dll'" 
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/icuin67.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/icuin67.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/icuio.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/icuio.dll'" 
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/icuio67.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/icuio67.dll'" 
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/icutest.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/icutest.dll'" 
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/icutest67.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/icutest67.dll'" 
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/icutu.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/icutu.dll'" 
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/icutu67.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/icutu67.dll'" 
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/icuuc.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/icuuc.dll'" 
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/icuuc67.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/icuuc67.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/jpeg62.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/jpeg62.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/jxl.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/jxl.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/jxl_cms.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/jxl_cms.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/jxl_threads.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/jxl_threads.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/laszip3.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/laszip3.dll'" 
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/laszip_api3.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/laszip_api3.dll'" 
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/Lerc.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/Lerc.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/libcrypto-3-x64.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/libcrypto-3-x64.dll'" 
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/libcurl.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/libcurl.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/libexpat.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/libexpat.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/libexslt.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/libexslt.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/liblas.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/liblas.dll'" 
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/liblas_c.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/liblas_c.dll'" 
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/liblzma.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/liblzma.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/libmysql.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/libmysql.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/libpdal_plugin_kernel_fauxplugin.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/libpdal_plugin_kernel_fauxplugin.dll'" 
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/libpdal_plugin_reader_pgpointcloud.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/libpdal_plugin_reader_pgpointcloud.dll'" 
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/libpdal_plugin_writer_pgpointcloud.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/libpdal_plugin_writer_pgpointcloud.dll'" 
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/libpng16.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/libpng16.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/libpq.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/libpq.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/librttopo.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/librttopo.dll'" 
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/libsharpyuv.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/libsharpyuv.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/libssl-3-x64.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/libssl-3-x64.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/libwebp.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/libwebp.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/libwebpdecoder.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/libwebpdecoder.dll'" 
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/libwebpdemux.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/libwebpdemux.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/libwebpmux.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/libwebpmux.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/libxml2.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/libxml2.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/libxslt.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/libxslt.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/lti_dsdk_9.5.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/lti_dsdk_9.5.dll'" 
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/lti_dsdk_cdll_9.5.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/lti_dsdk_cdll_9.5.dll'" 
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/lti_lidar_dsdk_1.1.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/lti_lidar_dsdk_1.1.dll'" 
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/lz4.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/lz4.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/mfhdf.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/mfhdf.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/mod_spatialite.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/mod_spatialite.dll'" 
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/msodbcdiag18.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/msodbcdiag18.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/msodbcsql18.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/msodbcsql18.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/msvcp140.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/msvcp140.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/msvcp140_1.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/msvcp140_1.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/msvcp140_2.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/msvcp140_2.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/msvcp140_atomic_wait.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/msvcp140_atomic_wait.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/msvcp140_codecvt_ids.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/msvcp140_codecvt_ids.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/NCSEcw.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/NCSEcw.dll'" 
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/netcdf.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/netcdf.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/oci.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/oci.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/ogdi.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/ogdi.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/openjp2.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/openjp2.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/openjpip.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/openjpip.dll'" 
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/oraociicus.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/oraociicus.dll'" 
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/parquet.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/parquet.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/pdalcpp.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/pdalcpp.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/poppler.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/poppler.dll'" 
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/proj_9.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/proj_9.dll'" 
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/python3.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/python3.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/python312.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/python312.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/remote.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/remote.dll'" 
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/rpf.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/rpf.dll'" 
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/skeleton.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/skeleton.dll'" 
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/spatialindex-64.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/spatialindex-64.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/spatialindex_c-64.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/spatialindex_c-64.dll'" 
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/spatialite.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/spatialite.dll'" 
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/sqlite3.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/sqlite3.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/szip.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/szip.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/tbb.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/tbb.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/thriftmd.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/thriftmd.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/thriftzmd.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/thriftzmd.dll'" 
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/tiff.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/tiff.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/turbojpeg.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/turbojpeg.dll'" 
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/vcamp140.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/vcamp140.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/vccorlib140.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/vccorlib140.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/vcomp140.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/vcomp140.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/vcruntime140.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/vcruntime140.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/vcruntime140_1.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/vcruntime140_1.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/vcruntime140_threads.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/vcruntime140_threads.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/vrf.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/vrf.dll'" 
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/wxbase32u_net_vc_x64_osgeo4w.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/wxbase32u_net_vc_x64_osgeo4w.dll'" 
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/wxbase32u_vc_x64_osgeo4w.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/wxbase32u_vc_x64_osgeo4w.dll'" 
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/wxbase32u_xml_vc_x64_osgeo4w.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/wxbase32u_xml_vc_x64_osgeo4w.dll'" 
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/wxmsw32u_adv_vc_x64_osgeo4w.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/wxmsw32u_adv_vc_x64_osgeo4w.dll'" 
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/wxmsw32u_aui_vc_x64_osgeo4w.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/wxmsw32u_aui_vc_x64_osgeo4w.dll'" 
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/wxmsw32u_core_vc_x64_osgeo4w.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/wxmsw32u_core_vc_x64_osgeo4w.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/wxmsw32u_gl_vc_x64_osgeo4w.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/wxmsw32u_gl_vc_x64_osgeo4w.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/wxmsw32u_html_vc_x64_osgeo4w.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/wxmsw32u_html_vc_x64_osgeo4w.dll'" 
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/wxmsw32u_media_vc_x64_osgeo4w.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/wxmsw32u_media_vc_x64_osgeo4w.dll'" 
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/wxmsw32u_propgrid_vc_x64_osgeo4w.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/wxmsw32u_propgrid_vc_x64_osgeo4w.dll'" 
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/wxmsw32u_qa_vc_x64_osgeo4w.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/wxmsw32u_qa_vc_x64_osgeo4w.dll'" 
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/wxmsw32u_ribbon_vc_x64_osgeo4w.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/wxmsw32u_ribbon_vc_x64_osgeo4w.dll'" 
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/wxmsw32u_richtext_vc_x64_osgeo4w.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/wxmsw32u_richtext_vc_x64_osgeo4w.dll'" 
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/wxmsw32u_stc_vc_x64_osgeo4w.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/wxmsw32u_stc_vc_x64_osgeo4w.dll'" 
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/wxmsw32u_webview_vc_x64_osgeo4w.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/wxmsw32u_webview_vc_x64_osgeo4w.dll'" 
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/wxmsw32u_xrc_vc_x64_osgeo4w.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/wxmsw32u_xrc_vc_x64_osgeo4w.dll'" 
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/xerces-c_3_2.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/xerces-c_3_2.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/zip.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/zip.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/zlib.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/zlib.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/zstd.dll"
    "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/zstd.dll'"
             not a plugin
    QFactoryLoader::QFactoryLoader() checking directory path "C:/OSGEO4W/apps/qgis-ltr/qtplugins/platforms" ...
    QFactoryLoader::QFactoryLoader() checking directory path "C:/OSGEO4W/apps/qt5/plugins/platforms" ...
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGEO4W/apps/qt5/plugins/platforms/qdirect2d.dll"
    Found metadata in lib C:/OSGEO4W/apps/qt5/plugins/platforms/qdirect2d.dll, metadata=
    {
        "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
        "MetaData": {
            "Keys": [
                "direct2d"
            ]
        },
        "archreq": 0,
        "className": "QWindowsDirect2DIntegrationPlugin",
        "debug": false,
        "version": 331520
    }
    
    
    Got keys from plugin meta data ("direct2d")
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGEO4W/apps/qt5/plugins/platforms/qminimal.dll"
    Found metadata in lib C:/OSGEO4W/apps/qt5/plugins/platforms/qminimal.dll, metadata=
    {
        "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
        "MetaData": {
            "Keys": [
                "minimal"
            ]
        },
        "archreq": 0,
        "className": "QMinimalIntegrationPlugin",
        "debug": false,
        "version": 331520
    }
    
    
    Got keys from plugin meta data ("minimal")
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGEO4W/apps/qt5/plugins/platforms/qoffscreen.dll"
    Found metadata in lib C:/OSGEO4W/apps/qt5/plugins/platforms/qoffscreen.dll, metadata=
    {
        "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
        "MetaData": {
            "Keys": [
                "offscreen"
            ]
        },
        "archreq": 0,
        "className": "QOffscreenIntegrationPlugin",
        "debug": false,
        "version": 331520
    }
    
    
    Got keys from plugin meta data ("offscreen")
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGEO4W/apps/qt5/plugins/platforms/qwebgl.dll"
    Found metadata in lib C:/OSGEO4W/apps/qt5/plugins/platforms/qwebgl.dll, metadata=
    {
        "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
        "MetaData": {
            "Keys": [
                "webgl"
            ]
        },
        "archreq": 0,
        "className": "QWebGLIntegrationPlugin",
        "debug": false,
        "version": 331520
    }
    
    
    Got keys from plugin meta data ("webgl")
    QFactoryLoader::QFactoryLoader() looking at "C:/OSGEO4W/apps/qt5/plugins/platforms/qwindows.dll"
    Found metadata in lib C:/OSGEO4W/apps/qt5/plugins/platforms/qwindows.dll, metadata=
    {
        "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
        "MetaData": {
            "Keys": [
                "windows"
            ]
        },
        "archreq": 0,
        "className": "QWindowsIntegrationPlugin",
        "debug": false,
        "version": 331520
    }
    
    
    Got keys from plugin meta data ("windows")
    QFactoryLoader::QFactoryLoader() checking directory path "C:/Users/myuser/AppData/Roaming/Python/Python312/site-packages/PyQt5/Qt5/plugins/platforms" ...
    QFactoryLoader::QFactoryLoader() looking at "C:/Users/myuser/AppData/Roaming/Python/Python312/site-packages/PyQt5/Qt5/plugins/platforms/qminimal.dll"
    Found metadata in lib C:/Users/myuser/AppData/Roaming/Python/Python312/site-packages/PyQt5/Qt5/plugins/platforms/qminimal.dll, metadata=
    {
        "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
        "MetaData": {
            "Keys": [
                "minimal"
            ]
        },
        "archreq": 0,
        "className": "QMinimalIntegrationPlugin",
        "debug": false,
        "version": 331520
    }
    
    
    Got keys from plugin meta data ("minimal")
    QFactoryLoader::QFactoryLoader() looking at "C:/Users/myuser/AppData/Roaming/Python/Python312/site-packages/PyQt5/Qt5/plugins/platforms/qoffscreen.dll"
    Found metadata in lib C:/Users/myuser/AppData/Roaming/Python/Python312/site-packages/PyQt5/Qt5/plugins/platforms/qoffscreen.dll, metadata=
    {
        "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
        "MetaData": {
            "Keys": [
                "offscreen"
            ]
        },
        "archreq": 0,
        "className": "QOffscreenIntegrationPlugin",
        "debug": false,
        "version": 331520
    }
    
    
    Got keys from plugin meta data ("offscreen")
    QFactoryLoader::QFactoryLoader() looking at "C:/Users/myuser/AppData/Roaming/Python/Python312/site-packages/PyQt5/Qt5/plugins/platforms/qwebgl.dll"
    Found metadata in lib C:/Users/myuser/AppData/Roaming/Python/Python312/site-packages/PyQt5/Qt5/plugins/platforms/qwebgl.dll, metadata=
    {
        "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
        "MetaData": {
            "Keys": [
                "webgl"
            ]
        },
        "archreq": 0,
        "className": "QWebGLIntegrationPlugin",
        "debug": false,
        "version": 331520
    }
    
    
    Got keys from plugin meta data ("webgl")
    QFactoryLoader::QFactoryLoader() looking at "C:/Users/myuser/AppData/Roaming/Python/Python312/site-packages/PyQt5/Qt5/plugins/platforms/qwindows.dll"
    Found metadata in lib C:/Users/myuser/AppData/Roaming/Python/Python312/site-packages/PyQt5/Qt5/plugins/platforms/qwindows.dll, metadata=
    {
        "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
        "MetaData": {
            "Keys": [
                "windows"
            ]
        },
        "archreq": 0,
        "className": "QWindowsIntegrationPlugin",
        "debug": false,
        "version": 331520
    }
    
    
    Got keys from plugin meta data ("windows")
    QFactoryLoader::QFactoryLoader() checking directory path "C:/OSGeo4W/bin/platforms" ...
    Cannot load library C:\OSGEO4W\apps\qt5\plugins\platforms\qwindows.dll: Die angegebene Prozedur wurde nicht gefunden.
    QLibraryPrivate::loadPlugin failed on "C:/OSGEO4W/apps/qt5/plugins/platforms/qwindows.dll" : "Cannot load library C:\\OSGEO4W\\apps\\qt5\\plugins\\platforms\\qwindows.dll: Die angegebene Prozedur wurde nicht gefunden."
    qt.qpa.plugin: Could not load the Qt platform plugin "windows" in "C:\OSGeo4W\apps\Qt5\plugin" even though it was found.
    This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
    
    Available platform plugins are: direct2d, minimal, offscreen, webgl, windows.
    

    As you can see the qwindow.dll was found two times: once within C:/Users/myuser/AppData/Roaming/Python/Python312/site-packages/PyQt5/Qt5/plugins/platforms and once in C:/OSGEO4W/apps/qt5/plugins/platforms. However both libs seem to have the exact same version, so that shouldn't be a big problem from my perspective. Have I missed something?

    JonBJ Offline
    JonBJ Offline
    JonB
    wrote on 2 May 2025, 14:06 last edited by
    #2

    @memyselfandi said in Could not load the Qt platform plugin "windows" even though it was found:

    Cannot load library C:\OSGEO4W\apps\qt5\plugins\platforms\qwindows.dll: Die angegebene Prozedur wurde nicht gefunden.
    QLibraryPrivate::loadPlugin failed on "C:/OSGEO4W/apps/qt5/plugins/platforms/qwindows.dll" : "Cannot load library C:\\OSGEO4W\\apps\\qt5\\plugins\\platforms\\qwindows.dll: Die angegebene Prozedur wurde nicht gefunden."
    qt.qpa.plugin: Could not load the Qt platform plugin "windows" in "C:\OSGeo4W\apps\Qt5\plugin" even though it was found.
    

    Die angegebene Prozedur wurde nicht gefunden

    This message must be the English: "The specified procedure could not be found". That tends to mean the file is found but it does not contain whatever procedure the code is trying to call for it. I do not know what that procedure is, but check correct version and architecture. Sorry I do not know more than that.

    1 Reply Last reply
    0
    • M Offline
      M Offline
      memyselfandi
      wrote on 2 May 2025, 14:22 last edited by
      #3

      I do not know what that procedure is

      Me neither.

      but check correct version and architecture

      well, my OS is Win10 Enterprise 64bit, as well as my version for python:

      Python 3.12.8 (main, Dec 20 2024, 15:21:15) [MSC v.1938 64 bit (AMD64)] on win32

      qt is 5.15.13.

      JonBJ 1 Reply Last reply 3 May 2025, 07:55
      0
      • hskoglundH Online
        hskoglundH Online
        hskoglund
        wrote on 2 May 2025, 22:17 last edited by
        #4

        That error "The specified procedure could not be found" seems to occur often for OSGeo4W apps, for example here is one quite similar:
        https://forum.qt.io/topic/112321/how-to-get-dlls-from-qt5-to-work-with-python-standalone-script-using-pyqgis-pyqt5/5

        Maybe the solution for that one also works for you.

        1 Reply Last reply
        1
        • M memyselfandi
          2 May 2025, 14:22

          I do not know what that procedure is

          Me neither.

          but check correct version and architecture

          well, my OS is Win10 Enterprise 64bit, as well as my version for python:

          Python 3.12.8 (main, Dec 20 2024, 15:21:15) [MSC v.1938 64 bit (AMD64)] on win32

          qt is 5.15.13.

          JonBJ Offline
          JonBJ Offline
          JonB
          wrote on 3 May 2025, 07:55 last edited by
          #5

          @memyselfandi
          The link @hskoglund has got found really looks like it is just your issue and should resolve!

          1 Reply Last reply
          0
          • Jane SuzaJ Offline
            Jane SuzaJ Offline
            Jane Suza
            Banned
            wrote on 3 May 2025, 09:02 last edited by
            #6
            This post is deleted!
            1 Reply Last reply
            0
            • M Offline
              M Offline
              memyselfandi
              wrote 24 days ago last edited by
              #7

              Unfortunately that post didn't help. Nothing in the qt-log provided in my questions makes me assume there's some "incompatible Qt library" as mentioned in the first anwer in that post.

              Also calling %OSGEO4W_ROOT%\bin\qt5_env.bat didn't help. What the script effectivly does from my understanding, is setting some env-variables:

              set QT_PLUGIN_PATH=%OSGEO4W_ROOT%\apps\Qt5\plugins
              
              set O4W_QT_PREFIX=%OSGEO4W_ROOT:\=/%/apps/Qt5
              set O4W_QT_BINARIES=%OSGEO4W_ROOT:\=/%/apps/Qt5/bin
              set O4W_QT_PLUGINS=%OSGEO4W_ROOT:\=/%/apps/Qt5/plugins
              set O4W_QT_LIBRARIES=%OSGEO4W_ROOT:\=/%/apps/Qt5/lib
              set O4W_QT_TRANSLATIONS=%OSGEO4W_ROOT:\=/%/apps/Qt5/translations
              set O4W_QT_HEADERS=%OSGEO4W_ROOT:\=/%/apps/Qt5/include
              set O4W_QT_DOC=%OSGEO4W_ROOT:\=/%/apps/Qt5/doc
              

              which - as you can see in my question - are already set appropriately ( %OSGEO4W_ROOT% refers to C:\OSGEO4W on my machine).

              1 Reply Last reply
              0
              • M memyselfandi
                2 May 2025, 13:48

                I am writing a bunch of unit-tests for my pyqgis-code on my windows-machine:

                import unittest
                
                from qgis.core import QgsApplication
                
                QgsApplication.setPrefixPath(r"C:\OSGeo4W\apps\qgis-ltr", True)
                qgis_app = QgsApplication([], False) 
                qgis_app.initQgis() 
                
                class MyTestClass(unittest.TestCase):
                    def test_my_function(self):
                        pass
                
                if __name__ == '__main__':
                    unittest.main()
                
                # Schritt 2: QGIS-Ressourcen freigeben
                qgis_app.exitQgis()
                

                my env-variables are this:

                Path=C:\OSGeo4W\apps\qgis-ltr\bin;C:\OSGeo4W\apps\qt5\bin;C:\OSGeo4W\apps\Python312\Scripts;C:\OSGeo4W\bin;C:\Windows\system32;C:\Windows;C:\Windows\system32\WBem;c:\Users\myuser\.vscode\extensions\ms-python.debugpy-2025.4.1-win32-x64\bundled\scripts\noConfigScripts
                PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.PY;.PYW
                QT_DEBUG_PLUGINS=1
                PYTHONHOME=C:\OSGeo4W\apps\Python312
                PYTHONPATH=C:\OSGeo4W\apps\qgis-ltr\python
                GDAL_DATA=C:\OSGEO4W\share\gdal
                GDAL_DRIVER_PATH=C:\OSGEO4W\bin\gdalplugins
                GDAL_FILENAME_IS_UTF8=YES
                GS_LIB=C:\OSGeo4W\apps\gs\lib
                GEOTIFF_CSV=C:\OSGEO4W\share\epsg_csv
                O4W_QT_BINARIES=C:\OSGEO4W\apps\Qt5\bin
                O4W_QT_DOC=C:\OSGEO4W\apps\Qt5\doc
                O4W_QT_HEADERS=C:\OSGEO4W\apps\Qt5\include
                O4W_QT_LIBRARIES=C:\OSGEO4W\apps\Qt5\lib
                O4W_QT_PLUGINS=C:\OSGEO4W\apps\Qt5\plugins
                O4W_QT_PREFIX=C:\OSGEO4W\apps\Qt5
                O4W_QT_TRANSLATIONS=C:\OSGEO4W\apps\Qt5\translations
                OSGEO4W_ROOT=C:\OSGeo4W
                QT_PLUGIN_PATH=C:\OSGEO4W\apps\qgis-ltr\qtplugins;C:\OSGEO4W\apps\qt5\plugins
                QT_QPA_PLATFORM_PLUGIN_PATH=C:\OSGeo4W\apps\Qt5\plugin
                QGIS_PREFIX_PATH=C:\OSGEO4W\apps\qgis-ltr
                

                However when I run my test I get the following error:

                Cannot load library C:\OSGEO4W\apps\qt5\plugins\platforms\qwindows.dll: Die angegebene Prozedur wurde nicht gefunden
                

                This is the entire debug-output:

                QFactoryLoader::QFactoryLoader() checking directory path "C:/OSGEO4W/apps/qgis-ltr/qtplugins" ...
                QFactoryLoader::QFactoryLoader() checking directory path "C:/OSGEO4W/apps/qt5/plugins" ...
                QFactoryLoader::QFactoryLoader() checking directory path "C:/Users/myuser/AppData/Roaming/Python/Python312/site-packages/PyQt5/Qt5/plugins" ...
                QFactoryLoader::QFactoryLoader() checking directory path "C:/OSGeo4W/bin" ...
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/adal.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/adal.dll'"
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/adrg.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/adrg.dll'" 
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/arrow.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/arrow.dll'" 
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/arrow_acero.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/arrow_acero.dll'" 
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/arrow_dataset.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/arrow_dataset.dll'"
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/blosc.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/blosc.dll'"
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/brotlicommon.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/brotlicommon.dll'"
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/brotlidec.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/brotlidec.dll'"
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/brotlienc.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/brotlienc.dll'"
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/cairo.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/cairo.dll'" 
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/cblas.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/cblas.dll'"
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/charset-1.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/charset-1.dll'" 
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/concrt140.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/concrt140.dll'"
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/exiv2.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/exiv2.dll'" 
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/freetype.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/freetype.dll'"
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/freexl.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/freexl.dll'"
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/gdal309.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/gdal309.dll'" 
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/geos.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/geos.dll'"
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/geos_c.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/geos_c.dll'"
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/geotiff.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/geotiff.dll'"
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/gsdll64.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/gsdll64.dll'" 
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/gsl.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/gsl.dll'"
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/hdf.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/hdf.dll'"
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/hdf5.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/hdf5.dll'"
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/hdf5_cpp.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/hdf5_cpp.dll'" 
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/hdf5_hl.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/hdf5_hl.dll'"
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/hdf5_hl_cpp.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/hdf5_hl_cpp.dll'" 
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/hdf5_tools.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/hdf5_tools.dll'" 
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/hpdf.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/hpdf.dll'" 
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/iconv-2.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/iconv-2.dll'"
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/icudt.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/icudt.dll'" 
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/icudt67.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/icudt67.dll'" 
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/icuin.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/icuin.dll'" 
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/icuin67.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/icuin67.dll'"
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/icuio.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/icuio.dll'" 
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/icuio67.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/icuio67.dll'" 
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/icutest.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/icutest.dll'" 
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/icutest67.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/icutest67.dll'" 
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/icutu.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/icutu.dll'" 
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/icutu67.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/icutu67.dll'" 
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/icuuc.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/icuuc.dll'" 
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/icuuc67.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/icuuc67.dll'"
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/jpeg62.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/jpeg62.dll'"
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/jxl.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/jxl.dll'"
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/jxl_cms.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/jxl_cms.dll'"
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/jxl_threads.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/jxl_threads.dll'"
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/laszip3.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/laszip3.dll'" 
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/laszip_api3.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/laszip_api3.dll'" 
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/Lerc.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/Lerc.dll'"
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/libcrypto-3-x64.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/libcrypto-3-x64.dll'" 
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/libcurl.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/libcurl.dll'"
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/libexpat.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/libexpat.dll'"
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/libexslt.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/libexslt.dll'"
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/liblas.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/liblas.dll'" 
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/liblas_c.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/liblas_c.dll'" 
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/liblzma.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/liblzma.dll'"
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/libmysql.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/libmysql.dll'"
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/libpdal_plugin_kernel_fauxplugin.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/libpdal_plugin_kernel_fauxplugin.dll'" 
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/libpdal_plugin_reader_pgpointcloud.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/libpdal_plugin_reader_pgpointcloud.dll'" 
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/libpdal_plugin_writer_pgpointcloud.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/libpdal_plugin_writer_pgpointcloud.dll'" 
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/libpng16.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/libpng16.dll'"
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/libpq.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/libpq.dll'"
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/librttopo.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/librttopo.dll'" 
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/libsharpyuv.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/libsharpyuv.dll'"
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/libssl-3-x64.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/libssl-3-x64.dll'"
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/libwebp.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/libwebp.dll'"
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/libwebpdecoder.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/libwebpdecoder.dll'" 
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/libwebpdemux.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/libwebpdemux.dll'"
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/libwebpmux.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/libwebpmux.dll'"
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/libxml2.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/libxml2.dll'"
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/libxslt.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/libxslt.dll'"
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/lti_dsdk_9.5.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/lti_dsdk_9.5.dll'" 
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/lti_dsdk_cdll_9.5.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/lti_dsdk_cdll_9.5.dll'" 
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/lti_lidar_dsdk_1.1.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/lti_lidar_dsdk_1.1.dll'" 
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/lz4.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/lz4.dll'"
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/mfhdf.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/mfhdf.dll'"
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/mod_spatialite.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/mod_spatialite.dll'" 
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/msodbcdiag18.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/msodbcdiag18.dll'"
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/msodbcsql18.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/msodbcsql18.dll'"
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/msvcp140.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/msvcp140.dll'"
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/msvcp140_1.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/msvcp140_1.dll'"
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/msvcp140_2.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/msvcp140_2.dll'"
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/msvcp140_atomic_wait.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/msvcp140_atomic_wait.dll'"
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/msvcp140_codecvt_ids.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/msvcp140_codecvt_ids.dll'"
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/NCSEcw.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/NCSEcw.dll'" 
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/netcdf.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/netcdf.dll'"
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/oci.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/oci.dll'"
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/ogdi.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/ogdi.dll'"
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/openjp2.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/openjp2.dll'"
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/openjpip.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/openjpip.dll'" 
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/oraociicus.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/oraociicus.dll'" 
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/parquet.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/parquet.dll'"
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/pdalcpp.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/pdalcpp.dll'"
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/poppler.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/poppler.dll'" 
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/proj_9.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/proj_9.dll'" 
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/python3.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/python3.dll'"
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/python312.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/python312.dll'"
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/remote.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/remote.dll'" 
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/rpf.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/rpf.dll'" 
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/skeleton.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/skeleton.dll'" 
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/spatialindex-64.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/spatialindex-64.dll'"
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/spatialindex_c-64.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/spatialindex_c-64.dll'" 
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/spatialite.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/spatialite.dll'" 
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/sqlite3.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/sqlite3.dll'"
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/szip.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/szip.dll'"
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/tbb.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/tbb.dll'"
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/thriftmd.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/thriftmd.dll'"
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/thriftzmd.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/thriftzmd.dll'" 
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/tiff.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/tiff.dll'"
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/turbojpeg.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/turbojpeg.dll'" 
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/vcamp140.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/vcamp140.dll'"
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/vccorlib140.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/vccorlib140.dll'"
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/vcomp140.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/vcomp140.dll'"
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/vcruntime140.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/vcruntime140.dll'"
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/vcruntime140_1.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/vcruntime140_1.dll'"
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/vcruntime140_threads.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/vcruntime140_threads.dll'"
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/vrf.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/vrf.dll'" 
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/wxbase32u_net_vc_x64_osgeo4w.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/wxbase32u_net_vc_x64_osgeo4w.dll'" 
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/wxbase32u_vc_x64_osgeo4w.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/wxbase32u_vc_x64_osgeo4w.dll'" 
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/wxbase32u_xml_vc_x64_osgeo4w.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/wxbase32u_xml_vc_x64_osgeo4w.dll'" 
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/wxmsw32u_adv_vc_x64_osgeo4w.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/wxmsw32u_adv_vc_x64_osgeo4w.dll'" 
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/wxmsw32u_aui_vc_x64_osgeo4w.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/wxmsw32u_aui_vc_x64_osgeo4w.dll'" 
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/wxmsw32u_core_vc_x64_osgeo4w.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/wxmsw32u_core_vc_x64_osgeo4w.dll'"
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/wxmsw32u_gl_vc_x64_osgeo4w.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/wxmsw32u_gl_vc_x64_osgeo4w.dll'"
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/wxmsw32u_html_vc_x64_osgeo4w.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/wxmsw32u_html_vc_x64_osgeo4w.dll'" 
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/wxmsw32u_media_vc_x64_osgeo4w.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/wxmsw32u_media_vc_x64_osgeo4w.dll'" 
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/wxmsw32u_propgrid_vc_x64_osgeo4w.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/wxmsw32u_propgrid_vc_x64_osgeo4w.dll'" 
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/wxmsw32u_qa_vc_x64_osgeo4w.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/wxmsw32u_qa_vc_x64_osgeo4w.dll'" 
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/wxmsw32u_ribbon_vc_x64_osgeo4w.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/wxmsw32u_ribbon_vc_x64_osgeo4w.dll'" 
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/wxmsw32u_richtext_vc_x64_osgeo4w.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/wxmsw32u_richtext_vc_x64_osgeo4w.dll'" 
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/wxmsw32u_stc_vc_x64_osgeo4w.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/wxmsw32u_stc_vc_x64_osgeo4w.dll'" 
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/wxmsw32u_webview_vc_x64_osgeo4w.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/wxmsw32u_webview_vc_x64_osgeo4w.dll'" 
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/wxmsw32u_xrc_vc_x64_osgeo4w.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/wxmsw32u_xrc_vc_x64_osgeo4w.dll'" 
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/xerces-c_3_2.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/xerces-c_3_2.dll'"
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/zip.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/zip.dll'"
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/zlib.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/zlib.dll'"
                         not a plugin
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGeo4W/bin/zstd.dll"
                "Failed to extract plugin meta data from 'C:/OSGeo4W/bin/zstd.dll'"
                         not a plugin
                QFactoryLoader::QFactoryLoader() checking directory path "C:/OSGEO4W/apps/qgis-ltr/qtplugins/platforms" ...
                QFactoryLoader::QFactoryLoader() checking directory path "C:/OSGEO4W/apps/qt5/plugins/platforms" ...
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGEO4W/apps/qt5/plugins/platforms/qdirect2d.dll"
                Found metadata in lib C:/OSGEO4W/apps/qt5/plugins/platforms/qdirect2d.dll, metadata=
                {
                    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                    "MetaData": {
                        "Keys": [
                            "direct2d"
                        ]
                    },
                    "archreq": 0,
                    "className": "QWindowsDirect2DIntegrationPlugin",
                    "debug": false,
                    "version": 331520
                }
                
                
                Got keys from plugin meta data ("direct2d")
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGEO4W/apps/qt5/plugins/platforms/qminimal.dll"
                Found metadata in lib C:/OSGEO4W/apps/qt5/plugins/platforms/qminimal.dll, metadata=
                {
                    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                    "MetaData": {
                        "Keys": [
                            "minimal"
                        ]
                    },
                    "archreq": 0,
                    "className": "QMinimalIntegrationPlugin",
                    "debug": false,
                    "version": 331520
                }
                
                
                Got keys from plugin meta data ("minimal")
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGEO4W/apps/qt5/plugins/platforms/qoffscreen.dll"
                Found metadata in lib C:/OSGEO4W/apps/qt5/plugins/platforms/qoffscreen.dll, metadata=
                {
                    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                    "MetaData": {
                        "Keys": [
                            "offscreen"
                        ]
                    },
                    "archreq": 0,
                    "className": "QOffscreenIntegrationPlugin",
                    "debug": false,
                    "version": 331520
                }
                
                
                Got keys from plugin meta data ("offscreen")
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGEO4W/apps/qt5/plugins/platforms/qwebgl.dll"
                Found metadata in lib C:/OSGEO4W/apps/qt5/plugins/platforms/qwebgl.dll, metadata=
                {
                    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                    "MetaData": {
                        "Keys": [
                            "webgl"
                        ]
                    },
                    "archreq": 0,
                    "className": "QWebGLIntegrationPlugin",
                    "debug": false,
                    "version": 331520
                }
                
                
                Got keys from plugin meta data ("webgl")
                QFactoryLoader::QFactoryLoader() looking at "C:/OSGEO4W/apps/qt5/plugins/platforms/qwindows.dll"
                Found metadata in lib C:/OSGEO4W/apps/qt5/plugins/platforms/qwindows.dll, metadata=
                {
                    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                    "MetaData": {
                        "Keys": [
                            "windows"
                        ]
                    },
                    "archreq": 0,
                    "className": "QWindowsIntegrationPlugin",
                    "debug": false,
                    "version": 331520
                }
                
                
                Got keys from plugin meta data ("windows")
                QFactoryLoader::QFactoryLoader() checking directory path "C:/Users/myuser/AppData/Roaming/Python/Python312/site-packages/PyQt5/Qt5/plugins/platforms" ...
                QFactoryLoader::QFactoryLoader() looking at "C:/Users/myuser/AppData/Roaming/Python/Python312/site-packages/PyQt5/Qt5/plugins/platforms/qminimal.dll"
                Found metadata in lib C:/Users/myuser/AppData/Roaming/Python/Python312/site-packages/PyQt5/Qt5/plugins/platforms/qminimal.dll, metadata=
                {
                    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                    "MetaData": {
                        "Keys": [
                            "minimal"
                        ]
                    },
                    "archreq": 0,
                    "className": "QMinimalIntegrationPlugin",
                    "debug": false,
                    "version": 331520
                }
                
                
                Got keys from plugin meta data ("minimal")
                QFactoryLoader::QFactoryLoader() looking at "C:/Users/myuser/AppData/Roaming/Python/Python312/site-packages/PyQt5/Qt5/plugins/platforms/qoffscreen.dll"
                Found metadata in lib C:/Users/myuser/AppData/Roaming/Python/Python312/site-packages/PyQt5/Qt5/plugins/platforms/qoffscreen.dll, metadata=
                {
                    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                    "MetaData": {
                        "Keys": [
                            "offscreen"
                        ]
                    },
                    "archreq": 0,
                    "className": "QOffscreenIntegrationPlugin",
                    "debug": false,
                    "version": 331520
                }
                
                
                Got keys from plugin meta data ("offscreen")
                QFactoryLoader::QFactoryLoader() looking at "C:/Users/myuser/AppData/Roaming/Python/Python312/site-packages/PyQt5/Qt5/plugins/platforms/qwebgl.dll"
                Found metadata in lib C:/Users/myuser/AppData/Roaming/Python/Python312/site-packages/PyQt5/Qt5/plugins/platforms/qwebgl.dll, metadata=
                {
                    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                    "MetaData": {
                        "Keys": [
                            "webgl"
                        ]
                    },
                    "archreq": 0,
                    "className": "QWebGLIntegrationPlugin",
                    "debug": false,
                    "version": 331520
                }
                
                
                Got keys from plugin meta data ("webgl")
                QFactoryLoader::QFactoryLoader() looking at "C:/Users/myuser/AppData/Roaming/Python/Python312/site-packages/PyQt5/Qt5/plugins/platforms/qwindows.dll"
                Found metadata in lib C:/Users/myuser/AppData/Roaming/Python/Python312/site-packages/PyQt5/Qt5/plugins/platforms/qwindows.dll, metadata=
                {
                    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                    "MetaData": {
                        "Keys": [
                            "windows"
                        ]
                    },
                    "archreq": 0,
                    "className": "QWindowsIntegrationPlugin",
                    "debug": false,
                    "version": 331520
                }
                
                
                Got keys from plugin meta data ("windows")
                QFactoryLoader::QFactoryLoader() checking directory path "C:/OSGeo4W/bin/platforms" ...
                Cannot load library C:\OSGEO4W\apps\qt5\plugins\platforms\qwindows.dll: Die angegebene Prozedur wurde nicht gefunden.
                QLibraryPrivate::loadPlugin failed on "C:/OSGEO4W/apps/qt5/plugins/platforms/qwindows.dll" : "Cannot load library C:\\OSGEO4W\\apps\\qt5\\plugins\\platforms\\qwindows.dll: Die angegebene Prozedur wurde nicht gefunden."
                qt.qpa.plugin: Could not load the Qt platform plugin "windows" in "C:\OSGeo4W\apps\Qt5\plugin" even though it was found.
                This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
                
                Available platform plugins are: direct2d, minimal, offscreen, webgl, windows.
                

                As you can see the qwindow.dll was found two times: once within C:/Users/myuser/AppData/Roaming/Python/Python312/site-packages/PyQt5/Qt5/plugins/platforms and once in C:/OSGEO4W/apps/qt5/plugins/platforms. However both libs seem to have the exact same version, so that shouldn't be a big problem from my perspective. Have I missed something?

                jsulmJ Offline
                jsulmJ Offline
                jsulm
                Lifetime Qt Champion
                wrote 24 days ago last edited by
                #8

                @memyselfandi said in Could not load the Qt platform plugin "windows" even though it was found:

                so that shouldn't be a big problem from my perspective

                But it can. Make sure only the correct Qt files are found (like cleaning up PATH variable).

                https://forum.qt.io/topic/113070/qt-code-of-conduct

                M 1 Reply Last reply 24 days ago
                0
                • M Offline
                  M Offline
                  memyselfandi
                  wrote 24 days ago last edited by
                  #9
                  This post is deleted!
                  1 Reply Last reply
                  0
                  • jsulmJ jsulm
                    24 days ago

                    @memyselfandi said in Could not load the Qt platform plugin "windows" even though it was found:

                    so that shouldn't be a big problem from my perspective

                    But it can. Make sure only the correct Qt files are found (like cleaning up PATH variable).

                    M Offline
                    M Offline
                    memyselfandi
                    wrote 24 days ago last edited by
                    #10

                    @jsulm I renamed the C:\Users\myuser\AppData\Roaming\Python\Python312\site-packages\PyQt5\Qt5\plugins\platforms-folder so that qt won't find it any more. However that didn't change anything. The error remains the same (except the entries for the forementioned folder don't appear in the debug-log any more).

                    However when I were to delete the other directoy C:\OSGeo4W\apps\Qt5\plugins\platforms1, it seems to work. Not sure, if this is really a good thing, but at least it's a step further.

                    jsulmJ 1 Reply Last reply 24 days ago
                    0
                    • M memyselfandi
                      24 days ago

                      @jsulm I renamed the C:\Users\myuser\AppData\Roaming\Python\Python312\site-packages\PyQt5\Qt5\plugins\platforms-folder so that qt won't find it any more. However that didn't change anything. The error remains the same (except the entries for the forementioned folder don't appear in the debug-log any more).

                      However when I were to delete the other directoy C:\OSGeo4W\apps\Qt5\plugins\platforms1, it seems to work. Not sure, if this is really a good thing, but at least it's a step further.

                      jsulmJ Offline
                      jsulmJ Offline
                      jsulm
                      Lifetime Qt Champion
                      wrote 24 days ago last edited by
                      #11

                      @memyselfandi Important is to not to mix different Qt versions

                      https://forum.qt.io/topic/113070/qt-code-of-conduct

                      1 Reply Last reply
                      0

                      • Login

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