Error message example:
CRITICAL ERROR EXCEPTION: An error occurred during vegetation classification:
The 'LazBackend.Lazrs' is not available
FINAL STATUS: FAILED
Error: The 'LazBackend.Lazrs' is not available
This error occurs when the required LAZ file processing libraries (lazrs and laspy) are not installed in the same Python environment that QGIS uses. Even if you installed them via the OSGeo4W Shell, QGIS may not recognize those installations because it often runs in an isolated Python environment.
Solution: Install the missing libraries directly into QGIS’s Python environment. You can do this by running the following command in the QGIS Python Console.
!pip install lazrs laspyAlternatively, you can run the following command, adjusting the path according to your version or installation of QGIS.
"C:\Program Files\QGIS 3.44.6\apps\Python312\python.exe" -m pip install lazrs laspyOnce the installation completes, restart QGIS and rerun the tool. The process should now run without errors.
Ejemplo del mensaje de error:
CRITICAL ERROR EXCEPTION: An error occurred during vegetation classification:
The 'LazBackend.Lazrs' is not available
FINAL STATUS: FAILED
Error: The 'LazBackend.Lazrs' is not available
Este error ocurre cuando las bibliotecas necesarias para procesar archivos LAZ (lazrs y laspy) no están instaladas en el mismo entorno de Python que utiliza QGIS. Aunque se hayan instalado mediante OSGeo4W Shell, es posible que QGIS no las reconozca porque suele usar un entorno de Python independiente.
Solución: Instala las bibliotecas que faltan directamente en el entorno de Python de QGIS. Puedes hacer esto ejecutando el siguiente comando dentro de la Consola de Python de QGIS.
!pip install lazrs laspyDe manera alternativa, puedes ejecutar el siguiente comando, ajustando la ruta según tu versión o instalación de QGIS.
"C:\Program Files\QGIS 3.44.6\apps\Python312\python.exe" -m pip install lazrs laspyUna vez completada la instalación, reinicia QGIS y vuelve a ejecutar la herramienta. El proceso debería funcionar sin errores.