Closed otheureaux closed 3 years ago
Now, I have also the messages when I open QGIS :
2020-12-01T18:49:25 WARNING warning:/Applications/QGIS3.10.app/Contents/MacOS/../Resources/python/qgis/utils.py:792: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses mod = _builtin_import(name, globals, locals, fromlist, level)
traceback: File "", line 1, in
File "/Applications/QGIS3.10.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 354, in startPlugin
if not _startPlugin(packageName):
File "/Applications/QGIS3.10.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 334, in _startPlugin
plugins[packageName] = package.classFactory(iface)
File "/Users/olivier/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/SemiAutomaticClassificationPlugin/__init__.py", line 65, in classFactory
from .semiautomaticclassificationplugin import SemiAutomaticClassificationPlugin
File "/Applications/QGIS3.10.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 792, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "", line 983, in _find_and_load
File "", line 967, in _find_and_load_unlocked
File "", line 677, in _load_unlocked
File "", line 728, in exec_module
File "", line 219, in _call_with_frames_removed
File "/Users/olivier/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/SemiAutomaticClassificationPlugin/semiautomaticclassificationplugin.py", line 76, in
from osgeo import gdal
File "/Applications/QGIS3.10.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 792, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "", line 983, in _find_and_load
File "", line 967, in _find_and_load_unlocked
File "", line 677, in _load_unlocked
File "", line 728, in exec_module
File "", line 219, in _call_with_frames_removed
File "/Applications/QGIS3.10.app/Contents/MacOS/../Resources/python/osgeo/__init__.py", line 21, in
_gdal = swig_import_helper()
File "/Applications/QGIS3.10.app/Contents/MacOS/../Resources/python/osgeo/__init__.py", line 8, in swig_import_helper
import imp
File "/Applications/QGIS3.10.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 792, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "", line 983, in _find_and_load
File "", line 967, in _find_and_load_unlocked
File "", line 677, in _load_unlocked
File "", line 728, in exec_module
File "", line 219, in _call_with_frames_removed
File "/Applications/QGIS3.10.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python3.7/imp.py", line 33, in
DeprecationWarning, stacklevel=2)
2020-12-01T18:49:35 WARNING warning:/Applications/QGIS3.10.app/Contents/MacOS/../Resources/python/matplotlib/cbook/init.py:424: MatplotlibDeprecationWarning: Passing one of 'on', 'true', 'off', 'false' as a boolean is deprecated; use an actual boolean (True/False) instead. warn_deprecated("2.2", "Passing one of 'on', 'true', 'off', 'false' as a "
traceback: File "/Users/olivier/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/SemiAutomaticClassificationPlugin/semiautomaticclassificationplugin.py", line 1526, in newProjectLoaded
self.resetSCP()
File "/Users/olivier/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/SemiAutomaticClassificationPlugin/semiautomaticclassificationplugin.py", line 1435, in resetSCP
cfg.spSigPlot.refreshPlot()
File "/Users/olivier/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/SemiAutomaticClassificationPlugin/spectralsignature/spectralsignatureplot.py", line 463, in refreshPlot
self.signaturePlot()
File "/Users/olivier/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/SemiAutomaticClassificationPlugin/spectralsignature/spectralsignatureplot.py", line 646, in signaturePlot
cfg.uisp.Sig_Widget.sigCanvas.ax.grid('on')
File "/Applications/QGIS3.10.app/Contents/MacOS/../Resources/python/matplotlib/axes/_base.py", line 2761, in grid
b = _string_to_bool(b)
File "/Applications/QGIS3.10.app/Contents/MacOS/../Resources/python/matplotlib/cbook/__init__.py", line 424, in _string_to_bool
warn_deprecated("2.2", "Passing one of 'on', 'true', 'off', 'false' as a "
File "/Applications/QGIS3.10.app/Contents/MacOS/../Resources/python/matplotlib/cbook/deprecation.py", line 112, in warn_deprecated
warnings.warn(message, category, stacklevel=2)
https://github.com/semiautomaticgit/SemiAutomaticClassificationPlugin/pull/143 fixes invalid escape sequences warning
Hi there,
I try to use the Semi-Automatic Classication PlugIn (SCP). I have this message.:
2020-11-28T15:11:21 WARNING warning:/Users/olivier/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/SemiAutomaticClassificationPlugin/core/utils.py:4176: DeprecationWarning: invalid escape sequence ( g = cfg.reSCP.findall('nodata("#?(.*?)#?")',expression)
I am on the MacOs High Sierra 10.13 with QGIS 3.10.12
Can you help me please ?
Many thanks
Hello, usually dependency warnings should not affect the plugin usability (until the dependencies are updated)
143 fixes invalid escape sequences warning
thank you very much for the fixes
Hi there,
I try to use the Semi-Automatic Classication PlugIn (SCP). I have this message.:
2020-11-28T15:11:21 WARNING warning:/Users/olivier/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/SemiAutomaticClassificationPlugin/core/utils.py:4176: DeprecationWarning: invalid escape sequence ( g = cfg.reSCP.findall('nodata(\"#?(.*?)#?\")',expression)
I am on the MacOs High Sierra 10.13 with QGIS 3.10.12
Can you help me please ?
Many thanks