Open mothlight opened 3 weeks ago
I can reproduce the error with the same configuration. I already had this problem in the past due to the use of Numba lib in QGIS but this was for Windows and I have never received any answer ().
However, installing QGIS and UMEP into Ubuntu 22.04 should not be an issue if you are allow and willing to use conda or mamba environments (https://github.com/UMEP-dev/UMEP/discussions/585#discussioncomment-8181433).
If so I recommend to install mamba (https://mamba.readthedocs.io/en/latest/user_guide/mamba.html) and to simply do the following in a terminal:
mamba install -n myQgisUmepEnv gdal qgis jaydebeapi "numpy<2.0.0" numba netCDF4 pandas scipy matplotlib xarray unidecode mamba activate myQgisUmepEnv qgis
Describe the bug The install of UMEP crashes when I try to install it on Ubuntu 22.04 and QGIS 3.22.4. I'll see if I can figure out what is going on. I assume it is the older version of QGIS. It is the most recent version available for 22.04.
I was able to successfully install it on Fedora 40 and QGIS 3.34.
Couldn't load plugin 'processing_umep' due to an error when calling its classFactory() method
SystemError: initialization of _internal failed without raising an exception Traceback (most recent call last): File "/usr/lib/python3/dist-packages/qgis/utils.py", line 423, in _startPlugin plugins[packageName] = package.classFactory(iface) File "/home/unimelb.edu.au/knice/.local/share/QGIS/QGIS3/profiles/default/python/plugins/processing_umep/init.py", line 46, in classFactory from .processing_umep import ProcessingUMEPPlugin File "/usr/lib/python3/dist-packages/qgis/utils.py", line 888, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "/home/unimelb.edu.au/knice/.local/share/QGIS/QGIS3/profiles/default/python/plugins/processing_umep/processing_umep.py", line 38, in from .processing_umep_provider import ProcessingUMEPProvider File "/usr/lib/python3/dist-packages/qgis/utils.py", line 888, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "/home/unimelb.edu.au/knice/.local/share/QGIS/QGIS3/profiles/default/python/plugins/processing_umep/processing_umep_provider.py", line 54, in from .processor.urock_processing_algorithm import URockAlgorithm File "/usr/lib/python3/dist-packages/qgis/utils.py", line 888, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "/home/unimelb.edu.au/knice/.local/share/QGIS/QGIS3/profiles/default/python/plugins/processing_umep/processor/urock_processing_algorithm.py", line 64, in from ..functions.URock import MainCalculation File "/usr/lib/python3/dist-packages/qgis/utils.py", line 888, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "/home/unimelb.edu.au/knice/.local/share/QGIS/QGIS3/profiles/default/python/plugins/processing_umep/functions/URock/MainCalculation.py", line 19, in from . import WindSolver File "/usr/lib/python3/dist-packages/qgis/utils.py", line 888, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "/home/unimelb.edu.au/knice/.local/share/QGIS/QGIS3/profiles/default/python/plugins/processing_umep/functions/URock/WindSolver.py", line 18, in from numba import jit File "/usr/lib/python3/dist-packages/qgis/utils.py", line 888, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "/home/unimelb.edu.au/knice/.local/lib/python3.10/site-packages/numba/init.py", line 93, in from numba.np.ufunc import (vectorize, guvectorize, threading_layer, File "/usr/lib/python3/dist-packages/qgis/utils.py", line 888, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "/usr/lib/python3/dist-packages/numba/np/ufunc/init.py", line 3, in from numba.np.ufunc.decorators import Vectorize, GUVectorize, vectorize, guvectorize File "/usr/lib/python3/dist-packages/qgis/utils.py", line 888, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "/usr/lib/python3/dist-packages/numba/np/ufunc/decorators.py", line 3, in from numba.np.ufunc import _internal File "/usr/lib/python3/dist-packages/qgis/utils.py", line 888, in _import mod = _builtin_import(name, globals, locals, fromlist, level) SystemError: initialization of _internal failed without raising an exception
Python version: 3.10.12 (main, Sep 11 2024, 15:47:36) [GCC 11.4.0] QGIS version: 3.22.4-Białowieża Białowieża, exported
Python Path: /home/unimelb.edu.au/knice/.local/lib/python3.10/site-packages /home/unimelb.edu.au/knice/.local/lib/python3.10/site-packages /home/unimelb.edu.au/knice/.local/share/QGIS/QGIS3/profiles/default/python/plugins/UMEP/SUEWSPrepare/Modules /home/unimelb.edu.au/knice/.local/lib/python3.10/site-packages /home/unimelb.edu.au/knice/.local/lib/python3.10/site-packages /usr/share/qgis/python /home/unimelb.edu.au/knice/.local/share/QGIS/QGIS3/profiles/default/python /home/unimelb.edu.au/knice/.local/share/QGIS/QGIS3/profiles/default/python/plugins /usr/share/qgis/python/plugins /usr/lib/python310.zip /usr/lib/python3.10 /usr/lib/python3.10/lib-dynload /home/unimelb.edu.au/knice/.local/lib/python3.10/site-packages /usr/local/lib/python3.10/dist-packages /usr/lib/python3/dist-packages /usr/lib/python3.10/dist-packages /home/unimelb.edu.au/knice/.local/share/QGIS/QGIS3/profiles/default/python
To Reproduce Steps to reproduce the behavior:
Desktop (please complete the following information):
Screenshots If applicable, add screenshots to help explain your problem.
Data If applicable, add data files to help us reproduce your problem.
Additional context Add any other context about the problem here.