[QGIS-Developer] Loading netCDF4 seems to crash QGISv3.34
afernandez
afernandez at odyhpc.com
Mon Jan 1 09:17:43 PST 2024
Hello,
I'm upgrading from v3.30 to 3.34. However, QGISv3.34 keeps crashing when
trying to import the netCDF4 module (never had this issue with v3.30). More
specifically, the log reads:
Fatal Python error: Segmentation fault
Current thread 0x0000ffff7dada020 (most recent call first):
File "<frozen importlib._bootstrap>", line 241 in _call_with_frames_removed
File "<frozen importlib._bootstrap_external>", line 1184 in exec_module
File "<frozen importlib._bootstrap>", line 688 in _load_unlocked
File "<frozen importlib._bootstrap>", line 1006 in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 1027 in _find_and_load
File "/opt/atrium/QGIS/build-master/output/python/qgis/utils.py", line 888
in _import
File
"/home/ubuntu/.local/lib/python3.10/site-packages/netCDF4/__init__.py",
line 3 in <module>
File "<frozen importlib._bootstrap>", line 241 in _call_with_frames_removed
File "<frozen importlib._bootstrap_external>", line 883 in exec_module
File "<frozen importlib._bootstrap>", line 688 in _load_unlocked
File "<frozen importlib._bootstrap>", line 1006 in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 1027 in _find_and_load
File "/opt/atrium/QGIS/build-master/output/python/qgis/utils.py", line 888
in _import
File
"/home/ubuntu/.local/share/QGIS/QGIS3/profiles/default/python/plugins/TABULA/plugin/pingere.py",
line 11 in <module>
File "<frozen importlib._bootstrap>", line 241 in _call_with_frames_removed
File "<frozen importlib._bootstrap_external>", line 883 in exec_module
File "<frozen importlib._bootstrap>", line 688 in _load_unlocked
File "<frozen importlib._bootstrap>", line 1006 in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 1027 in _find_and_load
File "/opt/atrium/QGIS/build-master/output/python/qgis/utils.py", line 888
in _import
File
"/home/ubuntu/.local/share/QGIS/QGIS3/profiles/default/python/plugins/TABULA/plugin/mainPlugin.py",
line 12 in <module>
File "<frozen importlib._bootstrap>", line 241 in _call_with_frames_removed
File "<frozen importlib._bootstrap_external>", line 883 in exec_module
File "<frozen importlib._bootstrap>", line 688 in _load_unlocked
File "<frozen importlib._bootstrap>", line 1006 in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 1027 in _find_and_load
File "/opt/atrium/QGIS/build-master/output/python/qgis/utils.py", line 888
in _import
File
"/home/ubuntu/.local/share/QGIS/QGIS3/profiles/default/python/plugins/TABULA/__init__.py",
line 13 in classFactory
File "/opt/atrium/QGIS/build-master/output/python/qgis/utils.py", line 423
in _startPlugin
File "/opt/atrium/QGIS/build-master/output/python/qgis/utils.py", line 443
in startPlugin
File "<string>", line 1 in <module>
Extension modules: PyQt5.QtCore, PyQt5.QtGui, PyQt5.QtWidgets,
PyQt5.QtPrintSupport, PyQt5.Qsci, PyQt5.QtNetwork, PyQt5.QtMultimedia,
PyQt5.QtXml, PyQt5.QtPositioning, PyQt5.QtSql, qgis._core, qgis._gui,
netCDF4._netCDF4, numpy.core._multiarray_umath,
numpy.core._multiarray_tests, numpy.linalg.lapack_lite,
numpy.linalg._umath_linalg, numpy.fft._pocketfft_internal,
numpy.random._common, numpy.random.bit_generator,
numpy.random._bounded_integers, numpy.random._mt19937, numpy.random.mtrand,
numpy.random._philox, numpy.random._pcg64, numpy.random._sfc64,
numpy.random._generator, cftime._cftime (total: 28)
and the referenced line reads import netCDF4 as nc. I've tried 2 different
plugins but both crash QGIS. Just for completeness, netCDF4 had previously
installed:
$ Successfully installed cftime-1.6.3 netCDF4-1.6.5
Thanks and happy New Year.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20240101/6d701d01/attachment-0001.htm>
More information about the QGIS-Developer
mailing list