Interference with other plugins?

Issue #925 new
Agustin Lobo created an issue

Just upon starting, I get this list of Python warnings.

Just inform in case any of these could cause problems with Enmap-box

2022-01-18T11:18:57     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,

2022-01-18T11:18:57     WARNING    warning:/home/alobo/.local/share/QGIS/QGIS3/profiles/default/python/plugins/geetimeseriesexplorer/site/pyqtgraph/graphicsItems/PlotItem/PlotItem.py:340: DeprecationWarning:

             an integer is required (got type numpy.float64). Implicit conversion to integers using __int__ is deprecated, and may be removed in a future version of Python.


             traceback: File "", line 1, in
              File "/usr/lib/python3/dist-packages/qgis/utils.py", line 448, in startPlugin
              plugins[packageName].initGui()
              File "/home/alobo/.local/share/QGIS/QGIS3/profiles/default/python/plugins/geetimeseriesexplorer/plugin.py", line 19, in initGui
              self.ui = DockWidget(iface=self.iface, parent=self.iface.parent())
              File "/home/alobo/.local/share/QGIS/QGIS3/profiles/default/python/plugins/geetimeseriesexplorer/dockwidget.py", line 130, in __init__
              self._initGui()
              File "/home/alobo/.local/share/QGIS/QGIS3/profiles/default/python/plugins/geetimeseriesexplorer/dockwidget.py", line 174, in _initGui
              self.mPlotWidget.showGrid(x=True, y=True, alpha=1.)
              File "/home/alobo/.local/share/QGIS/QGIS3/profiles/default/python/plugins/geetimeseriesexplorer/site/pyqtgraph/graphicsItems/PlotItem/PlotItem.py", line 340, in showGrid
              self.ctrl.gridAlphaSlider.setValue(v)
              File "/usr/lib/python3.9/warnings.py", line 109, in _showwarnmsg
              sw(msg.message, msg.category, msg.filename, msg.lineno,

2022-01-18T11:18:58     WARNING    warning:/home/alobo/.local/share/QGIS/QGIS3/profiles/default/python/plugins/ee_plugin/extlibs_linux/ee/data.py:230: ResourceWarning:

             unclosed file


             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/qgis_gee_data_catalog/__init__.py", line 33, in classFactory
              from .qgis_gee_data_catalog import GeeDataCatalog
              File "/home/alobo/.local/share/QGIS/QGIS3/profiles/default/python/plugins/ee_plugin/__init__.py", line 32, in __wrapping_ee_import__
              _module_ = __builtin_import__(name, *args, **kwargs)
              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/qgis_gee_data_catalog/qgis_gee_data_catalog.py", line 26, in
              from .ee_interface import (add_ee_image_layer, download_ee_image_layer,
              File "/home/alobo/.local/share/QGIS/QGIS3/profiles/default/python/plugins/ee_plugin/__init__.py", line 32, in __wrapping_ee_import__
              _module_ = __builtin_import__(name, *args, **kwargs)
              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/qgis_gee_data_catalog/ee_interface.py", line 6, in
              import ee
              File "/home/alobo/.local/share/QGIS/QGIS3/profiles/default/python/plugins/ee_plugin/__init__.py", line 36, in __wrapping_ee_import__
              _module_.Initialize()
              File "/home/alobo/.local/share/QGIS/QGIS3/profiles/default/python/plugins/ee_plugin/extlibs_linux/ee/__init__.py", line 114, in Initialize
              credentials = data.get_persistent_credentials()
              File "/home/alobo/.local/share/QGIS/QGIS3/profiles/default/python/plugins/ee_plugin/extlibs_linux/ee/data.py", line 230, in get_persistent_credentials
              tokens = json.load(open(oauth.get_credentials_path()))
              File "/usr/lib/python3.9/warnings.py", line 109, in _showwarnmsg
              sw(msg.message, msg.category, msg.filename, msg.lineno,

2022-01-18T11:18:58     WARNING    warning:/home/alobo/.local/share/QGIS/QGIS3/profiles/default/python/plugins/ee_plugin/extlibs_linux/httplib2shim/__init__.py:45: DeprecationWarning:

             Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.10 it will stop working


             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/qgis_gee_data_catalog/__init__.py", line 33, in classFactory
              from .qgis_gee_data_catalog import GeeDataCatalog
              File "/home/alobo/.local/share/QGIS/QGIS3/profiles/default/python/plugins/ee_plugin/__init__.py", line 32, in __wrapping_ee_import__
              _module_ = __builtin_import__(name, *args, **kwargs)
              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/qgis_gee_data_catalog/qgis_gee_data_catalog.py", line 26, in
              from .ee_interface import (add_ee_image_layer, download_ee_image_layer,
              File "/home/alobo/.local/share/QGIS/QGIS3/profiles/default/python/plugins/ee_plugin/__init__.py", line 32, in __wrapping_ee_import__
              _module_ = __builtin_import__(name, *args, **kwargs)
              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/qgis_gee_data_catalog/ee_interface.py", line 6, in
              import ee
              File "/home/alobo/.local/share/QGIS/QGIS3/profiles/default/python/plugins/ee_plugin/__init__.py", line 36, in __wrapping_ee_import__
              _module_.Initialize()
              File "/home/alobo/.local/share/QGIS/QGIS3/profiles/default/python/plugins/ee_plugin/extlibs_linux/ee/__init__.py", line 115, in Initialize
              data.initialize(
              File "/home/alobo/.local/share/QGIS/QGIS3/profiles/default/python/plugins/ee_plugin/extlibs_linux/ee/data.py", line 210, in initialize
              _install_cloud_api_resource()
              File "/home/alobo/.local/share/QGIS/QGIS3/profiles/default/python/plugins/ee_plugin/extlibs_linux/ee/data.py", line 280, in _install_cloud_api_resource
              _cloud_api_resource = _cloud_api_utils.build_cloud_resource(
              File "/home/alobo/.local/share/QGIS/QGIS3/profiles/default/python/plugins/ee_plugin/extlibs_linux/ee/_cloud_api_utils.py", line 133, in build_cloud_resource
              http_transport = httplib2.Http(timeout=timeout)
              File "/home/alobo/.local/share/QGIS/QGIS3/profiles/default/python/plugins/ee_plugin/extlibs_linux/httplib2shim/__init__.py", line 117, in __init__
              pool = self._make_pool(proxy_info=proxy_info)
              File "/home/alobo/.local/share/QGIS/QGIS3/profiles/default/python/plugins/ee_plugin/extlibs_linux/httplib2shim/__init__.py", line 45, in _default_make_pool
              if isinstance(proxy_info, collections.Callable):
              File "/usr/lib/python3.9/collections/__init__.py", line 62, in __getattr__
              warnings.warn("Using or importing the ABCs from 'collections' instead "
              File "/usr/lib/python3.9/warnings.py", line 109, in _showwarnmsg
              sw(msg.message, msg.category, msg.filename, msg.lineno,

Comments (6)

  1. Andreas Janz

    Just inform in case any of these could cause problems with Enmap-box

    2022-01-18T11:18:57     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

    @Ann Crabbé you should resolve this in your MESMA plugin.

    2022-01-18T11:18:57     WARNING    warning:/home/alobo/.local/share/QGIS/QGIS3/profiles/default/python/plugins/geetimeseriesexplorer/site/pyqtgraph/graphicsItems/PlotItem/PlotItem.py:340: DeprecationWarning:

    an integer is required (got type numpy.float64). Implicit conversion to integers using __int__ is deprecated, and may be removed in a future version of Python.

    I can handle this one.

    2022-01-18T11:18:58     WARNING    warning:/home/alobo/.local/share/QGIS/QGIS3/profiles/default/python/plugins/ee_plugin/extlibs_linux/ee/data.py:230: ResourceWarning:

    unclosed file

    This is from the Google Earth Engine Plugin.

    2022-01-18T11:18:58     WARNING    warning:/home/alobo/.local/share/QGIS/QGIS3/profiles/default/python/plugins/ee_plugin/extlibs_linux/httplib2shim/__init__.py:45: DeprecationWarning:

    Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.10 it will stop working

    Also from the Google Earth Engine Plugin.

  2. Agustin Lobo reporter

    2022-01-18T11:18:57     WARNING    warning:/home/alobo/.local/share/QGIS/QGIS3/profiles/default/python/plugins/geetimeseriesexplorer/site/pyqtgraph/graphicsItems/PlotItem/PlotItem.py:340: DeprecationWarning:

    an integer is required (got type numpy.float64). Implicit conversion to integers using __int__ is deprecated, and may be removed in a future version of Python.

    I can handle this one.

    Not solved in enmapboxplugin.3.10.20220119T091443.develop.zip

  3. Andreas Janz

    Yes, that isn’t the EnMAP-Box, but another plugin (Gee Timeseries Explorer). I haven’t worked on that.

    And also, the GEE TSE will most likely be shipped together with the EnMAP-Box in the future and this plugin will be removed as stand-alone plugin. But we are not yet fully sure about that.

  4. Agustin Lobo reporter

    I am strongly against making EnMap-Box into a hodgepodge. This would be detrimental for EnMapBox and also for each of these tools, which would be interesting to a much larger community, not necessarily interested on hyperspectral imagery. Please keep EnMap-Box conceptually uniform: tools for processing and analyzing hyperspectral imagery.

  5. Andreas Janz

    I am strongly against making EnMap-Box into a hodgepodge. 

    I agree, but I need a better technical solution for organizing the source code, which is greatly overlapping between the different plugins. Things like data IO, metadata handling and plotting are very similar in all my plugins and should be better syncronised. I need a solution, where the EnMAP-Box can be the main code repository for all this functionality, while at the same time, we can still have those stand-alone plugins.

    I see two solutions for that:

    1. The smaller stand-alone plugins define the EnMAP-Box plugin as a dependency. This would be technically very easy, but an update of the EnMAP-Box would force an update of all other stand-alone plugins as well. I guess this is not a good idea from the user perspective.
    2. The smaller stand-alone plugins are shipped with a copy/subset of the EnMAP-Box. This would be more flexible, but also harder to manage.

  6. Andreas Janz

    @Agustin Lobo I started to filter warnings. Please wait for the v3.10 release before you report further warnings.

  7. Log in to comment