Latest TUFLOW Viewer (3.10.1 and 3.10.1.3-dev) does not find python3-netcdf4 even though it is installed.
python3-netcdf4 is already the newest version (1.6.4-1).
On the same machine, previous version 3.9 works absolutely fine. Nothing in QGIS message logs related to NetCDF. There is a depreciation warning though linked below.
Does not work:
TUFLOW Plugin Version : 3.10.1
Latest Plugin Dev Version : 3.10.1.3
QGIS Version : 3.36.0-Maidenhead
Python Version : 3.11.6
TUFLOW Plugin Version : 3.10.1.3
Latest Plugin Dev Version : 3.10.1.3
QGIS Version : 3.36.0-Maidenhead
Python Version : 3.11.6
Works fine:
TUFLOW Plugin Version : 3.9
Latest Plugin Dev Version : 3.10.1.3
QGIS Version : 3.36.0-Maidenhead
Python Version : 3.11.6
$ uname -a
Linux blackwater 6.5.0-21-generic #21-Ubuntu SMP PREEMPT_DYNAMIC Wed Feb 7 14:17:40 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 23.10
Release: 23.10
Codename: mantic
DeprecationWarning
```
2024-03-01T09:31:14 WARNING warning:/home/pavel/.local/share/QGIS/QGIS3/profiles/default/python/plugins/tuflow/dataset_view.py:28: DeprecationWarning: setapi() is deprecated
sip.setapi('QVariant', 2)
traceback: File "", line 1, in
File "/usr/lib/python3/dist-packages/qgis/utils.py", line 446, in startPlugin
if not _startPlugin(packageName):
File "/usr/lib/python3/dist-packages/qgis/utils.py", line 426, in _startPlugin
plugins[packageName] = package.classFactory(iface)
File "/home/pavel/.local/share/QGIS/QGIS3/profiles/default/python/plugins/tuflow/__init__.py", line 78, in classFactory
from .tuflowqgis_menu import tuflowqgis_menu
File "/usr/lib/python3/dist-packages/qgis/utils.py", line 923, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "", line 1176, in _find_and_load
File "", line 1147, in _find_and_load_unlocked
File "", line 690, in _load_unlocked
File "", line 940, in exec_module
File "", line 241, in _call_with_frames_removed
File "/home/pavel/.local/share/QGIS/QGIS3/profiles/default/python/plugins/tuflow/tuflowqgis_menu.py", line 36, in
from .tuflowqgis_tuviewer.tuflowqgis_tuview import TuView
File "/usr/lib/python3/dist-packages/qgis/utils.py", line 923, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "", line 1176, in _find_and_load
File "", line 1147, in _find_and_load_unlocked
File "", line 690, in _load_unlocked
File "", line 940, in exec_module
File "", line 241, in _call_with_frames_removed
File "/home/pavel/.local/share/QGIS/QGIS3/profiles/default/python/plugins/tuflow/tuflowqgis_tuviewer/tuflowqgis_tuview.py", line 11, in
from ..forms.tuflow_plotting_dock import Ui_Tuplot
File "/usr/lib/python3/dist-packages/qgis/utils.py", line 923, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "", line 1176, in _find_and_load
File "", line 1147, in _find_and_load_unlocked
File "", line 690, in _load_unlocked
File "", line 940, in exec_module
File "", line 241, in _call_with_frames_removed
File "/home/pavel/.local/share/QGIS/QGIS3/profiles/default/python/plugins/tuflow/forms/tuflow_plotting_dock.py", line 390, in
from ..dataset_view import DataSetView
File "/usr/lib/python3/dist-packages/qgis/utils.py", line 923, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "", line 1176, in _find_and_load
File "", line 1147, in _find_and_load_unlocked
File "", line 690, in _load_unlocked
File "", line 940, in exec_module
File "", line 241, in _call_with_frames_removed
File "/home/pavel/.local/share/QGIS/QGIS3/profiles/default/python/plugins/tuflow/dataset_view.py", line 28, in
sip.setapi('QVariant', 2)
```
Latest TUFLOW Viewer (3.10.1 and 3.10.1.3-dev) does not find python3-netcdf4 even though it is installed.
python3-netcdf4 is already the newest version (1.6.4-1).
On the same machine, previous version 3.9 works absolutely fine. Nothing in QGIS message logs related to NetCDF. There is a depreciation warning though linked below.
Does not work:
Works fine:
DeprecationWarning
``` 2024-03-01T09:31:14 WARNING warning:/home/pavel/.local/share/QGIS/QGIS3/profiles/default/python/plugins/tuflow/dataset_view.py:28: DeprecationWarning: setapi() is deprecated sip.setapi('QVariant', 2) traceback: File "", line 1, in File "/usr/lib/python3/dist-packages/qgis/utils.py", line 446, in startPlugin if not _startPlugin(packageName): File "/usr/lib/python3/dist-packages/qgis/utils.py", line 426, in _startPlugin plugins[packageName] = package.classFactory(iface) File "/home/pavel/.local/share/QGIS/QGIS3/profiles/default/python/plugins/tuflow/__init__.py", line 78, in classFactory from .tuflowqgis_menu import tuflowqgis_menu File "/usr/lib/python3/dist-packages/qgis/utils.py", line 923, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "", line 1176, in _find_and_load File "", line 1147, in _find_and_load_unlocked File "", line 690, in _load_unlocked File "", line 940, in exec_module File "", line 241, in _call_with_frames_removed File "/home/pavel/.local/share/QGIS/QGIS3/profiles/default/python/plugins/tuflow/tuflowqgis_menu.py", line 36, in from .tuflowqgis_tuviewer.tuflowqgis_tuview import TuView File "/usr/lib/python3/dist-packages/qgis/utils.py", line 923, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "", line 1176, in _find_and_load File "", line 1147, in _find_and_load_unlocked File "", line 690, in _load_unlocked File "", line 940, in exec_module File "", line 241, in _call_with_frames_removed File "/home/pavel/.local/share/QGIS/QGIS3/profiles/default/python/plugins/tuflow/tuflowqgis_tuviewer/tuflowqgis_tuview.py", line 11, in from ..forms.tuflow_plotting_dock import Ui_Tuplot File "/usr/lib/python3/dist-packages/qgis/utils.py", line 923, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "", line 1176, in _find_and_load File "", line 1147, in _find_and_load_unlocked File "", line 690, in _load_unlocked File "", line 940, in exec_module File "", line 241, in _call_with_frames_removed File "/home/pavel/.local/share/QGIS/QGIS3/profiles/default/python/plugins/tuflow/forms/tuflow_plotting_dock.py", line 390, in from ..dataset_view import DataSetView File "/usr/lib/python3/dist-packages/qgis/utils.py", line 923, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "", line 1176, in _find_and_load File "", line 1147, in _find_and_load_unlocked File "", line 690, in _load_unlocked File "", line 940, in exec_module File "", line 241, in _call_with_frames_removed File "/home/pavel/.local/share/QGIS/QGIS3/profiles/default/python/plugins/tuflow/dataset_view.py", line 28, in sip.setapi('QVariant', 2) ```