Re: Python Plugin: PiMonitor
Posted: Monday 22 July 2019 20:44
Hello,
maybe this is related to raspbian buster stable. On every cold start or reboot i got a mail and found this in the log.
2019-07-22 17:41:50.351 Error: (RPI_Monitor) 'onStart' failed 'KeyError'.
2019-07-22 17:41:50.351 Error: (RPI_Monitor) ----> Line 332 in '/home/pi/domoticz/plugins/Domoticz-PiMonitor-Plugin/plugin.py'
2019-07-22 17:41:50.351 Error: (RPI_Monitor) ----> Line 154 in '/home/pi/domoticz/plugins/Domoticz-PiMonitor-Plugin/plugin.py'
These python packages are installed:
pi@domosys:~ $ dpkg -l python* | grep ii
ii python 2.7.16-1 armhf interactive high-level object-oriented language (Python2 version)
ii python-apt-common 1.8.4 all Python interface to libapt-pkg (locales)
ii python-minimal 2.7.16-1 armhf minimal subset of the Python2 language
ii python-rpi.gpio 0.7.0~buster-1 armhf Python GPIO module for Raspberry Pi
ii python-smbus:armhf 4.1-1 armhf Python bindings for Linux SMBus access through i2c-dev
ii python2 2.7.16-1 armhf interactive high-level object-oriented language (Python2 version)
ii python2-minimal 2.7.16-1 armhf minimal subset of the Python2 language
ii python2.7 2.7.16-2 armhf Interactive high-level object-oriented language (version 2.7)
ii python2.7-minimal 2.7.16-2 armhf Minimal subset of the Python language (version 2.7)
ii python3 3.7.3-1 armhf interactive high-level object-oriented language (default python3 version)
ii python3-apt 1.8.4 armhf Python 3 interface to libapt-pkg
ii python3-certifi 2018.8.24-1 all root certificates for validating SSL certs and verifying TLS hosts (python3)
ii python3-chardet 3.0.4-3 all universal character encoding detector for Python3
ii python3-debconf 1.5.71 all interact with debconf from Python 3
ii python3-dev 3.7.3-1 armhf header files and a static library for Python (default)
ii python3-distutils 3.7.3-1 all distutils package for Python 3.x
ii python3-gi 3.30.4-1 armhf Python 3 bindings for gobject-introspection libraries
ii python3-idna 2.6-1 all Python IDNA2008 (RFC 5891) handling (Python 3)
ii python3-lib2to3 3.7.3-1 all Interactive high-level object-oriented language (2to3, version 3.6)
ii python3-minimal 3.7.3-1 armhf minimal subset of the Python language (default python3 version)
ii python3-pkg-resources 40.8.0-1 all Package Discovery and Resource Access using pkg_resources
ii python3-requests 2.21.0-1 all elegant and simple HTTP library for Python3, built for human beings
ii python3-six 1.12.0-1 all Python 2 and 3 compatibility library (Python 3 interface)
ii python3-urllib3 1.24.1-1 all HTTP library with thread-safe connection pooling for Python3
ii python3.7 3.7.3-2 armhf Interactive high-level object-oriented language (version 3.7)
ii python3.7-dev 3.7.3-2 armhf Header files and a static library for Python (v3.7)
ii python3.7-minimal 3.7.3-2 armhf Minimal subset of the Python language (version 3.7)
Is it a problem that 2.7 and 3.7 is installed?
Solderbro
maybe this is related to raspbian buster stable. On every cold start or reboot i got a mail and found this in the log.
2019-07-22 17:41:50.351 Error: (RPI_Monitor) 'onStart' failed 'KeyError'.
2019-07-22 17:41:50.351 Error: (RPI_Monitor) ----> Line 332 in '/home/pi/domoticz/plugins/Domoticz-PiMonitor-Plugin/plugin.py'
2019-07-22 17:41:50.351 Error: (RPI_Monitor) ----> Line 154 in '/home/pi/domoticz/plugins/Domoticz-PiMonitor-Plugin/plugin.py'
These python packages are installed:
pi@domosys:~ $ dpkg -l python* | grep ii
ii python 2.7.16-1 armhf interactive high-level object-oriented language (Python2 version)
ii python-apt-common 1.8.4 all Python interface to libapt-pkg (locales)
ii python-minimal 2.7.16-1 armhf minimal subset of the Python2 language
ii python-rpi.gpio 0.7.0~buster-1 armhf Python GPIO module for Raspberry Pi
ii python-smbus:armhf 4.1-1 armhf Python bindings for Linux SMBus access through i2c-dev
ii python2 2.7.16-1 armhf interactive high-level object-oriented language (Python2 version)
ii python2-minimal 2.7.16-1 armhf minimal subset of the Python2 language
ii python2.7 2.7.16-2 armhf Interactive high-level object-oriented language (version 2.7)
ii python2.7-minimal 2.7.16-2 armhf Minimal subset of the Python language (version 2.7)
ii python3 3.7.3-1 armhf interactive high-level object-oriented language (default python3 version)
ii python3-apt 1.8.4 armhf Python 3 interface to libapt-pkg
ii python3-certifi 2018.8.24-1 all root certificates for validating SSL certs and verifying TLS hosts (python3)
ii python3-chardet 3.0.4-3 all universal character encoding detector for Python3
ii python3-debconf 1.5.71 all interact with debconf from Python 3
ii python3-dev 3.7.3-1 armhf header files and a static library for Python (default)
ii python3-distutils 3.7.3-1 all distutils package for Python 3.x
ii python3-gi 3.30.4-1 armhf Python 3 bindings for gobject-introspection libraries
ii python3-idna 2.6-1 all Python IDNA2008 (RFC 5891) handling (Python 3)
ii python3-lib2to3 3.7.3-1 all Interactive high-level object-oriented language (2to3, version 3.6)
ii python3-minimal 3.7.3-1 armhf minimal subset of the Python language (default python3 version)
ii python3-pkg-resources 40.8.0-1 all Package Discovery and Resource Access using pkg_resources
ii python3-requests 2.21.0-1 all elegant and simple HTTP library for Python3, built for human beings
ii python3-six 1.12.0-1 all Python 2 and 3 compatibility library (Python 3 interface)
ii python3-urllib3 1.24.1-1 all HTTP library with thread-safe connection pooling for Python3
ii python3.7 3.7.3-2 armhf Interactive high-level object-oriented language (version 3.7)
ii python3.7-dev 3.7.3-2 armhf Header files and a static library for Python (v3.7)
ii python3.7-minimal 3.7.3-2 armhf Minimal subset of the Python language (version 3.7)
Is it a problem that 2.7 and 3.7 is installed?
Solderbro