Open janzandr opened 9 months ago
same error
No se pudo cargar el complemento 'timeseriesviewerplugin' debido a un error al llamar a su método classFactory()
AttributeError: type object 'QgsMapLayerProxyModel' has no attribute 'Filters'
Traceback (most recent call last):
File "/app/share/qgis/python/qgis/utils.py", line 426, in _startPlugin
plugins[packageName] = package.classFactory(iface)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/francisco/.var/app/org.qgis.qgis/data/QGIS/QGIS3/profiles/default/python/plugins/timeseriesviewerplugin/__init__.py", line 38, in classFactory
from eotimeseriesviewer.eotimeseriesviewerplugin import EOTimeSeriesViewerPlugin
File "/app/share/qgis/python/qgis/utils.py", line 923, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/francisco/.var/app/org.qgis.qgis/data/QGIS/QGIS3/profiles/default/python/plugins/timeseriesviewerplugin/eotimeseriesviewer/eotimeseriesviewerplugin.py", line 33, in
from eotimeseriesviewer import settings
File "/app/share/qgis/python/qgis/utils.py", line 923, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/francisco/.var/app/org.qgis.qgis/data/QGIS/QGIS3/profiles/default/python/plugins/timeseriesviewerplugin/eotimeseriesviewer/settings.py", line 9, in
from eotimeseriesviewer.qgispluginsupport.qps.plotstyling.plotstyling import PlotStyle
File "/app/share/qgis/python/qgis/utils.py", line 923, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/francisco/.var/app/org.qgis.qgis/data/QGIS/QGIS3/profiles/default/python/plugins/timeseriesviewerplugin/eotimeseriesviewer/qgispluginsupport/qps/plotstyling/plotstyling.py", line 49, in
from ..utils import findMapLayer, loadUi
File "/app/share/qgis/python/qgis/utils.py", line 923, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/francisco/.var/app/org.qgis.qgis/data/QGIS/QGIS3/profiles/default/python/plugins/timeseriesviewerplugin/eotimeseriesviewer/qgispluginsupport/qps/utils.py", line 3221, in
class SelectMapLayersDialog(QgsDialog):
File "/home/francisco/.var/app/org.qgis.qgis/data/QGIS/QGIS3/profiles/default/python/plugins/timeseriesviewerplugin/eotimeseriesviewer/qgispluginsupport/qps/utils.py", line 3222, in SelectMapLayersDialog
class LayerDescription(object):
File "/home/francisco/.var/app/org.qgis.qgis/data/QGIS/QGIS3/profiles/default/python/plugins/timeseriesviewerplugin/eotimeseriesviewer/qgispluginsupport/qps/utils.py", line 3224, in LayerDescription
def __init__(self, info: str, filters: QgsMapLayerProxyModel.Filters, allowEmptyLayer=False):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: type object 'QgsMapLayerProxyModel' has no attribute 'Filters'
Versión de Python: 3.11.7 (main, Nov 10 2011, 15:00:00) [GCC 13.2.0]
Versión de QGIS: 3.36.0-Maidenhead Maidenhead, exported
Ruta de Python:
/app/share/qgis/python
/home/francisco/.var/app/org.qgis.qgis/data/QGIS/QGIS3/profiles/default/python
/home/francisco/.var/app/org.qgis.qgis/data/QGIS/QGIS3/profiles/default/python/plugins
/app/share/qgis/python/plugins
/usr/lib/python311.zip
/usr/lib/python3.11
/usr/lib/python3.11/lib-dynload
/app/lib/python3.11/site-packages
/usr/lib/python3.11/site-packages
/home/francisco/.var/app/org.qgis.qgis/data/QGIS/QGIS3/profiles/default/python
I found that changing QgsMapLayerProxyModel.Filters to QgsMapLayerProxyModel.filters in utils.py resolved this error
@mahuika @Fenrihr thank you for your comments. I am working on it. As now, most of the EOTSV is running again on QGIS 3.38, but I still have to fix some strange bugs that occure in my testing routines.
Installed version 1.18.20230408T142322.MAIN