mesma_visualisation_gui.py:53: DeprecationWarning

Issue #8 new
Agustin Lobo created an issue

As soon as I start QGIS, I get:

2022-01-20T08:59:08     WARNING    warning:/home/alobo/.local/share/QGIS/QGIS3/profiles/default/python/plugins/mesma/interfaces/mesma_visualisation_gui.py:53: DeprecationWarning:

             `np.complex` is a deprecated alias for the builtin `complex`. To silence this warning, use `complex` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.complex128` here.
             Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations


             traceback: File "", line 1, in
              File "/usr/lib/python3/dist-packages/qgis/utils.py", line 443, in startPlugin
              if not _startPlugin(packageName):
              File "/usr/lib/python3/dist-packages/qgis/utils.py", line 423, in _startPlugin
              plugins[packageName] = package.classFactory(iface)
              File "/home/alobo/.local/share/QGIS/QGIS3/profiles/default/python/plugins/mesma/__init__.py", line 13, in classFactory
              from mesma.mesma_plugin import MesmaPlugin
              File "/usr/lib/python3/dist-packages/qgis/utils.py", line 888, in _import
              mod = _builtin_import(name, globals, locals, fromlist, level)
              File "", line 1007, in _find_and_load
              File "", line 986, in _find_and_load_unlocked
              File "", line 680, in _load_unlocked
              File "", line 855, in exec_module
              File "", line 228, in _call_with_frames_removed
              File "/home/alobo/.local/share/QGIS/QGIS3/profiles/default/python/plugins/mesma/mesma_plugin.py", line 23, in
              from mesma.interfaces.mesma_gui import MesmaWidget
              File "/usr/lib/python3/dist-packages/qgis/utils.py", line 888, in _import
              mod = _builtin_import(name, globals, locals, fromlist, level)
              File "", line 1007, in _find_and_load
              File "", line 986, in _find_and_load_unlocked
              File "", line 680, in _load_unlocked
              File "", line 855, in exec_module
              File "", line 228, in _call_with_frames_removed
              File "/home/alobo/.local/share/QGIS/QGIS3/profiles/default/python/plugins/mesma/interfaces/mesma_gui.py", line 39, in
              from mesma.interfaces.mesma_visualisation_gui import ModelVisualizationWidget
              File "/usr/lib/python3/dist-packages/qgis/utils.py", line 888, in _import
              mod = _builtin_import(name, globals, locals, fromlist, level)
              File "", line 1007, in _find_and_load
              File "", line 986, in _find_and_load_unlocked
              File "", line 680, in _load_unlocked
              File "", line 855, in exec_module
              File "", line 228, in _call_with_frames_removed
              File "/home/alobo/.local/share/QGIS/QGIS3/profiles/default/python/plugins/mesma/interfaces/mesma_visualisation_gui.py", line 53, in
              Qgis.CFloat32: np.complex,
              File "/home/alobo/.local/lib/python3.9/site-packages/numpy/__init__.py", line 287, in __getattr__
              warnings.warn(msg, DeprecationWarning, stacklevel=2)
              File "/usr/lib/python3.9/warnings.py", line 109, in _showwarnmsg
              sw(msg.message, msg.category, msg.filename, msg.lineno,

Comments (0)

  1. Log in to comment