Richiesta di test per confermare un problema di QGIS su Windows

Ho riscontrato un problema usando QGIS LTR 3.44.10 e QGIS 4.0.2 su Windows (ma molto probabilmente il problema è presente anche in versioni precedenti) e mi farebbe piacere se qualcuno che usa QGIS installato tramite l’installer stand-alone .msi (oppure che l’abbia installato tramite OSGeo4W network installer e che abbia installato anche i pacchetti gdal-ecw e/o gdal-mrsid) su Windows potesse effettuare un test per verificare che il problema si verifichi anche nel proprio sistema.

A presto.

Andrea

Si tratta di

  • avviare QGIS (eventualmente con un nuovo profilo utente)
  • andare in Settings->Options->Data Sources->GDAL->Raster
  • deselezionare il driver ECW (o MrSID)
  • cliccare OK o ancora OK
  • chiudere e riavviare QGIS

Dovrebbero apparire all’avvio vari errori Python con la disattivazione dei plugin core Processing e grassprovider.

A questo punto basta ritornare in Settings->Options->Data Sources->GDAL->Raster, abilitare nuovamente il driver ECW (o MrSID) e cliccare OK e riavviare QGIS per ripristinare la situazione precedente.

Ciao,

test effettuato su QGIS 3.44.10

An error occurred during execution of following code:
gdal.UseExceptions()


Traceback (most recent call last):
  File "", line 1, in 
  File "C:\OSGeo4W\apps\Python312\Lib\site-packages\osgeo\gdal.py", line 533, in UseExceptions
    from . import gdal_array
  File "C:\OSGeo4W/apps/qgis-ltr/./python\qgis\utils.py", line 1100, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\OSGeo4W\apps\Python312\Lib\site-packages\osgeo\gdal_array.py", line 300, in 
    gdal.AllRegister()
  File "C:\OSGeo4W\apps\Python312\Lib\site-packages\osgeo\gdal.py", line 12949, in AllRegister
    return _gdal.AllRegister(*args)
           ^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: DeclarePluginDriver(): trying to register JP2ECW several times


Python version:
3.12.13 (main, Apr 16 2026, 15:59:38) [MSC v.1944 64 bit (AMD64)]

QGIS version:
3.44.10-Solothurn 'Solothurn', 565fe70b

Python path:
['C:/OSGeo4W/apps/qgis-ltr/./python', 'C:/Users/pigre/AppData/Roaming/QGIS/QGIS3\\profiles\\test-ENG/python', 'C:/Users/pigre/AppData/Roaming/QGIS/QGIS3\\profiles\\test-ENG/python/plugins', 'C:/OSGeo4W/apps/qgis-ltr/./python/plugins', 'C:\\OSGeo4W\\bin\\python312.zip', 'C:\\OSGeo4W\\apps\\Python312\\DLLs', 'C:\\OSGeo4W\\apps\\Python312\\Lib', 'C:\\OSGeo4W\\bin', 'C:\\OSGeo4W\\apps\\Python312', 'C:\\OSGeo4W\\apps\\Python312\\Lib\\site-packages', 'C:\\OSGeo4W\\apps\\Python312\\Lib\\site-packages\\win32', 'C:\\OSGeo4W\\apps\\Python312\\Lib\\site-packages\\win32\\lib', 'C:\\OSGeo4W\\apps\\Python312\\Lib\\site-packages\\Pythonwin', 'C:/Users/pigre/AppData/Roaming/QGIS/QGIS3\\profiles\\test-ENG/python']

è il primo di almeno altri tre messaggi di errore

saluti

QGIS version3.44.10-Solothurn
QGIS code revision565fe70b
 
Libraries
Qt version5.15.13
Python version3.12.13
GDAL version3.13.0 — Iowa City
PROJ version9.8.1
EPSG Registry database versionv12.029 (2025-10-02)
GEOS version3.14.1-CAPI-1.20.5
SQLite version3.53.0
PDAL version2.10.0
PostgreSQL client version17.3
SpatiaLite version5.1.0
QWT version6.3.0
QScintilla2 version2.14.1
OS versionWindows 11 Version 2009
 
Active Python plugins
mapswipetool_plugin1.4
quick_map_services1.3.0
db_manager0.1.20
MetaSearch0.3.6

Grazie Salvatore!

Avevo già aperto un issue report Disabling the ECW or the MrSID driver makes the Processing and grassprovider plugins crash at startup · Issue #66181 · qgis/QGIS · GitHub, ma mi sembrava strano che nessun altro se ne fosse accorto finora e quindi c’era la possibilità che si trattasse di un problema locale.

A presto.

Andrea

1 Like

ciao Andrea, confermo.
Ecco il messaggio di errore

Si è verificato un errore durante l’esecuzione delle istruzioni seguenti:
gdal.UseExceptions()


Traceback (most recent call last):
  File "", line 1, in 
  File "C:\OSGeo4W\apps\Python312\Lib\site-packages\osgeo\gdal.py", line 533, in UseExceptions
    from . import gdal_array
  File "C:\OSGeo4W/apps/qgis-ltr-dev/./python\qgis\utils.py", line 1102, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\OSGeo4W\apps\Python312\Lib\site-packages\osgeo\gdal_array.py", line 300, in 
    gdal.AllRegister()
  File "C:\OSGeo4W\apps\Python312\Lib\site-packages\osgeo\gdal.py", line 12949, in AllRegister
    return _gdal.AllRegister(*args)
           ^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: DeclarePluginDriver(): trying to register JP2ECW several times


Altra finestra di errore

Si è verificato un errore durante l’esecuzione delle istruzioni seguenti:
ogr.UseExceptions()


Traceback (most recent call last):
  File "", line 1, in 
  File "C:\OSGeo4W\apps\Python312\Lib\site-packages\osgeo\ogr.py", line 554, in UseExceptions
    from . import gdal_array
  File "C:\OSGeo4W/apps/qgis-ltr-dev/./python\qgis\utils.py", line 1102, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\OSGeo4W\apps\Python312\Lib\site-packages\osgeo\gdal_array.py", line 300, in 
    gdal.AllRegister()
  File "C:\OSGeo4W\apps\Python312\Lib\site-packages\osgeo\gdal.py", line 12949, in AllRegister
    return _gdal.AllRegister(*args)
           ^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: DeclarePluginDriver(): trying to register JP2ECW several times

Terza finestra

Si è verificato un errore durante l’esecuzione delle istruzioni seguenti:
osr.UseExceptions()


Traceback (most recent call last):
  File "", line 1, in 
  File "C:\OSGeo4W\apps\Python312\Lib\site-packages\osgeo\osr.py", line 358, in UseExceptions
    from . import gdal_array
  File "C:\OSGeo4W/apps/qgis-ltr-dev/./python\qgis\utils.py", line 1102, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\OSGeo4W\apps\Python312\Lib\site-packages\osgeo\gdal_array.py", line 300, in 
    gdal.AllRegister()
  File "C:\OSGeo4W\apps\Python312\Lib\site-packages\osgeo\gdal.py", line 12949, in AllRegister
    return _gdal.AllRegister(*args)
           ^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: DeclarePluginDriver(): trying to register JP2ECW several times

Altre finestre che riportano errori legati a plugin vari tra cui Processing.

Alla fine QGIS parte e Processing pur essendo attivo non compare né come menu né come finestra.
Disattivato e riattivato compare questo errore:

Impossibile caricare il plugin ‘processing’ a causa di un errore chiamando il metodo classFactory()

AttributeError: module ‘processing’ has no attribute ‘classFactory’

Traceback (most recent call last):
  File "C:\OSGeo4W/apps/qgis-ltr-dev/./python\qgis\utils.py", line 480, in _startPlugin
    plugins[packageName] = package.classFactory(iface)
                           ^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'processing' has no attribute 'classFactory'

La situazione torna alla normalità come da te suggerito, ripristinando il driver ecw e riavviando QGIS.

______________

Versione Python: 3.12.13 (main, Apr 16 2026, 15:59:38) [MSC v.1944 64 bit (AMD64)]
Versione di QGIS: 3.44.10-Solothurn Solothurn, c753cd6e2d7 —> (LTR dev)

Percorso Python:

  • C:/OSGeo4W/apps/qgis-ltr-dev/./python

  • C:/Users/11186cs/AppData/Roaming/QGIS/QGIS3\profiles\default/python

  • C:/Users/11186cs/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins

  • C:/OSGeo4W/apps/qgis-ltr-dev/./python/plugins

  • C:\OSGeo4W\apps\grass\grass84\etc\python

  • C:\Users\11186cs\Documents

  • C:\OSGeo4W\bin\python312.zip

  • C:\OSGeo4W\apps\Python312\DLLs

  • C:\OSGeo4W\apps\Python312\Lib

  • C:\OSGeo4W\bin

  • d:\temp\azz\Python\Python312\site-packages

  • C:\OSGeo4W\apps\Python312

  • C:\OSGeo4W\apps\Python312\Lib\site-packages

  • C:\OSGeo4W\apps\Python312\Lib\site-packages\win32

  • C:\OSGeo4W\apps\Python312\Lib\site-packages\win32\lib

  • C:\OSGeo4W\apps\Python312\Lib\site-packages\Pythonwin

  • C:/Users/11186cs/AppData/Roaming/QGIS/QGIS3\profiles\default/python

    Versione Python:
    3.12.13 (main, Apr 16 2026, 15:59:38) [MSC v.1944 64 bit (AMD64)]

    Versione di QGIS:
    3.44.10-Solothurn ‘Solothurn’, c753cd6e2d7

    Percorso Python:
    [‘C:/OSGeo4W/apps/qgis-ltr-dev/./python’, ‘C:/Users/11186cs/AppData/Roaming/QGIS/QGIS3\\profiles\\default/python’, ‘C:/Users/11186cs/AppData/Roaming/QGIS/QGIS3\\profiles\\default/python/plugins’, ‘C:/OSGeo4W/apps/qgis-ltr-dev/./python/plugins’, ‘C:\\OSGeo4W\\apps\\grass\\grass84\\etc\\python’, ‘C:\\Users\\11186cs\\Documents’, ‘C:\\OSGeo4W\\bin\\python312.zip’, ‘C:\\OSGeo4W\\apps\\Python312\\DLLs’, ‘C:\\OSGeo4W\\apps\\Python312\\Lib’, ‘C:\\OSGeo4W\\bin’, ‘d:\\temp\\azz\\Python\\Python312\\site-packages’, ‘C:\\OSGeo4W\\apps\\Python312’, ‘C:\\OSGeo4W\\apps\\Python312\\Lib\\site-packages’, ‘C:\\OSGeo4W\\apps\\Python312\\Lib\\site-packages\\win32’, ‘C:\\OSGeo4W\\apps\\Python312\\Lib\\site-packages\\win32\\lib’, ‘C:\\OSGeo4W\\apps\\Python312\\Lib\\site-packages\\Pythonwin’, ‘C:/Users/11186cs/AppData/Roaming/QGIS/QGIS3\\profiles\\default/python’]

2 Likes

Stesso identico messaggio d’errore di @pigreco (e stessa configurazione di QGIS 3.44.10 con installazione stand alone)

2 Likes

Grazie a tutti.

Sarebbe utile aggiungere un commento all’issue report che ho aperto Disabling the ECW or the MrSID driver makes the Processing and grassprovider plugins crash at startup · Issue #66181 · qgis/QGIS · GitHub per confermare il problema.

A presto.

Andrea

1 Like