[Qgis-user] error messages Midvatten plugin

Azzurra Lentini azzurralentini at gmail.com
Mon Feb 1 09:43:37 PST 2021


Hi to all,
a student of mine is using the Midvatten plugin in the qgis 3.10 and 3.16
versions.
The operating system of her computer is:  Windows 10.
This plugin is not properly functioning in her computer (I never had
problems in mine or in the other computers in university), do you know
maybe the motivations and what can I suggest to her?:
1) First error message when she opened Qgis after the installation of
Midvatten
2) Second error message after uninstalling Midvatten and downloading again
Midvatten plugin: a  new error message!


*1) Error message when she opened Qgis after the installation of Midvatten*

2021-02-01T09:38:34     WARNING    Traceback (most recent call last):
              File
"C:/PROGRA~1/QGIS3~1.10/apps/qgis-ltr/./python\qgis\utils.py", line 334, in
_startPlugin
              plugins[packageName] = package.classFactory(iface)
              File
"C:/Users/emedd/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\midvatten\__init__.py",
line 34, in classFactory
              from .midvatten import Midvatten
              File
"C:/PROGRA~1/QGIS3~1.10/apps/qgis-ltr/./python\qgis\utils.py", line 792, in
_import
              mod = _builtin_import(name, globals, locals, fromlist, level)
              File
"C:/Users/emedd/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\midvatten\midvatten.py",
line 45, in
              from tsplot import TimeSeriesPlot
              File
"C:/PROGRA~1/QGIS3~1.10/apps/qgis-ltr/./python\qgis\utils.py", line 792, in
_import
              mod = _builtin_import(name, globals, locals, fromlist, level)
              File
"C:\Users\emedd\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\midvatten\tools\tsplot.py",
line 25, in
              import matplotlib.pyplot as plt
              File
"C:/PROGRA~1/QGIS3~1.10/apps/qgis-ltr/./python\qgis\utils.py", line 792, in
_import
              mod = _builtin_import(name, globals, locals, fromlist, level)
              File
"C:\PROGRA~1\QGIS3~1.10\apps\Python37\lib\site-packages\matplotlib\pyplot.py",
line 34, in
              from matplotlib import rcsetup, style
              File
"C:/PROGRA~1/QGIS3~1.10/apps/qgis-ltr/./python\qgis\utils.py", line 792, in
_import
              mod = _builtin_import(name, globals, locals, fromlist, level)
              File
"C:\PROGRA~1\QGIS3~1.10\apps\Python37\lib\site-packages\matplotlib\style\__init__.py",
line 1, in
              from .core import use, context, available, library,
reload_library
              File
"C:/PROGRA~1/QGIS3~1.10/apps/qgis-ltr/./python\qgis\utils.py", line 792, in
_import
              mod = _builtin_import(name, globals, locals, fromlist, level)
              File
"C:\PROGRA~1\QGIS3~1.10\apps\Python37\lib\site-packages\matplotlib\style\core.py",
line 222, in
              reload_library()
              File
"C:\PROGRA~1\QGIS3~1.10\apps\Python37\lib\site-packages\matplotlib\style\core.py",
line 221, in reload_library
              available[:] = library = update_user_library(_base_library)
              File
"C:\PROGRA~1\QGIS3~1.10\apps\Python37\lib\site-packages\matplotlib\style\core.py",
line 167, in update_user_library
              styles = read_style_directory(stylelib_path)
              File
"C:\PROGRA~1\QGIS3~1.10\apps\Python37\lib\site-packages\matplotlib\style\core.py",
line 188, in read_style_directory
              use_default_template=False)
              File
"C:\PROGRA~1\QGIS3~1.10\apps\Python37\lib\site-packages\matplotlib\__init__.py",
line 985, in rc_params_from_file
              config_from_file = _rc_params_in_file(fname, fail_on_error)
              File
"C:\PROGRA~1\QGIS3~1.10\apps\Python37\lib\site-packages\matplotlib\__init__.py",
line 918, in _rc_params_in_file
              for line_no, line in enumerate(fd, 1):
              File "C:\PROGRA~1\QGIS3~1.10\apps\Python37\lib\codecs.py",
line 322, in decode
              (result, consumed) = self._buffer_decode(data, self.errors,
final)
             UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd6 in
position 18: invalid continuation byte



* 2) Second error message after uninstalling Midvatten and downloading
again Midvatten plugin, this   new error message:*

*Couldn't load plugin 'midvatten' due to an error when calling its
classFactory() method*

*UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd6 in position 18:
invalid continuation byte *

Traceback (most recent call last):
  File "C:/PROGRA~1/QGIS3~1.10/apps/qgis-ltr/./python\qgis\utils.py", line
334, in _startPlugin
    plugins[packageName] = package.classFactory(iface)
  File
"C:/Users/emedd/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\midvatten\__init__.py",
line 34, in classFactory
    from .midvatten import Midvatten
  File "C:/PROGRA~1/QGIS3~1.10/apps/qgis-ltr/./python\qgis\utils.py", line
792, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File
"C:/Users/emedd/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\midvatten\midvatten.py",
line 45, in
    from tsplot import TimeSeriesPlot
  File "C:/PROGRA~1/QGIS3~1.10/apps/qgis-ltr/./python\qgis\utils.py", line
792, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File
"C:\Users\emedd\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\midvatten\tools\tsplot.py",
line 25, in
    import matplotlib.pyplot as plt
  File "C:/PROGRA~1/QGIS3~1.10/apps/qgis-ltr/./python\qgis\utils.py", line
792, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File
"C:\PROGRA~1\QGIS3~1.10\apps\Python37\lib\site-packages\matplotlib\pyplot.py",
line 34, in
    from matplotlib import rcsetup, style
  File "C:/PROGRA~1/QGIS3~1.10/apps/qgis-ltr/./python\qgis\utils.py", line
792, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File
"C:\PROGRA~1\QGIS3~1.10\apps\Python37\lib\site-packages\matplotlib\style\__init__.py",
line 1, in
    from .core import use, context, available, library, reload_library
  File "C:/PROGRA~1/QGIS3~1.10/apps/qgis-ltr/./python\qgis\utils.py", line
792, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File
"C:\PROGRA~1\QGIS3~1.10\apps\Python37\lib\site-packages\matplotlib\style\core.py",
line 222, in
    reload_library()
  File
"C:\PROGRA~1\QGIS3~1.10\apps\Python37\lib\site-packages\matplotlib\style\core.py",
line 221, in reload_library
    available[:] = library = update_user_library(_base_library)
  File
"C:\PROGRA~1\QGIS3~1.10\apps\Python37\lib\site-packages\matplotlib\style\core.py",
line 167, in update_user_library
    styles = read_style_directory(stylelib_path)
  File
"C:\PROGRA~1\QGIS3~1.10\apps\Python37\lib\site-packages\matplotlib\style\core.py",
line 188, in read_style_directory
    use_default_template=False)
  File
"C:\PROGRA~1\QGIS3~1.10\apps\Python37\lib\site-packages\matplotlib\__init__.py",
line 985, in rc_params_from_file
    config_from_file = _rc_params_in_file(fname, fail_on_error)
  File
"C:\PROGRA~1\QGIS3~1.10\apps\Python37\lib\site-packages\matplotlib\__init__.py",
line 918, in _rc_params_in_file
    for line_no, line in enumerate(fd, 1):
  File "C:\PROGRA~1\QGIS3~1.10\apps\Python37\lib\codecs.py", line 322, in
decode
    (result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd6 in position 18:
invalid continuation byte




*Python version:* 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:59:51) [MSC
v.1914 64 bit (AMD64)]
*QGIS version:* 3.10.10-A Coruña A Coruña, 8b051b9a43

*Python Path:*

·                 C:/PROGRA~1/QGIS3~1.10/apps/qgis-ltr/./python

·
C:/Users/emedd/AppData/Roaming/QGIS/QGIS3\profiles\default/python

·
C:/Users/emedd/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins

·                 C:/PROGRA~1/QGIS3~1.10/apps/qgis-ltr/./python/plugins

·                 C:\PROGRA~1\QGIS3~1.10\apps\Python37

·                 C:\PROGRA~1\QGIS3~1.10\apps\Python37\Scripts

·                 C:\Program Files\QGIS 3.10\bin\python37.zip

·                 C:\PROGRA~1\QGIS3~1.10\apps\Python37\DLLs

·                 C:\PROGRA~1\QGIS3~1.10\apps\Python37\lib

·                 C:\Program Files\QGIS 3.10\bin

·                 C:\PROGRA~1\QGIS3~1.10\apps\Python37\lib\site-packages

·
C:\PROGRA~1\QGIS3~1.10\apps\Python37\lib\site-packages\win32

·
C:\PROGRA~1\QGIS3~1.10\apps\Python37\lib\site-packages\win32\lib

·
C:\PROGRA~1\QGIS3~1.10\apps\Python37\lib\site-packages\Pythonwin

·
C:/Users/emedd/AppData/Roaming/QGIS/QGIS3\profiles\default/python

·
C:\Users\emedd\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\midvatten

·
C:\Users\emedd\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\midvatten\tools

·
C:\Users\emedd\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\midvatten

C:\Users\emedd\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\midvatten\tools


THANKS AZZURRA

-- 
Lecturer GIS University "Roma Tre"
Consultant Environmental Risk Prevention and Hydrogeology
AZZURRA LENTINI
++++++++++++++++++++++++++
Italy Mobile Tel.: **(39) 338 24 40 676
++++++++++++++++++++++++++
SKYPE azzurrahydro
++++++++++++++++++++++++++

*azzurralentini at gmail.com <azzurralentini at gmail.com>*

*azzurra.lentini at uniroma3.it <azzurra.lentini at uniroma3.it> *
++++++++++++++++++++++++++
*Par respect pour l'environnement,*

*n'imprimez ce mail qu'en cas d'absolue nécessité*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20210201/118b2089/attachment.html>


More information about the Qgis-user mailing list