2021-01-03, 09:48 PM
Hi, I am using OpenPlotter 2 on a Rasperry Pi 3B+ with the Moitessier HAT installed, the setup is working fine with data coming from the board into SignalK and OpenCPN, however looking in the syslog I see the following errors which are repeated every few seconds, after the service is restarted by systemd
Jan 3 19:13:08 openplotter openplotter-i2c-read[2526]: Traceback (most recent call last):
Jan 3 19:13:08 openplotter openplotter-i2c-read[2526]: File "/usr/bin/openplotter-i2c-read", line 11, in <module>
Jan 3 19:13:08 openplotter openplotter-i2c-read[2526]: load_entry_point('openplotterI2c==2.2.0', 'console_scripts', 'openplotter-i2c-read')
()
Jan 3 19:13:08 openplotter openplotter-i2c-read[2526]: File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 489, in load_ent
ry_point
Jan 3 19:13:08 openplotter openplotter-i2c-read[2526]: return get_distribution(dist).load_entry_point(group, name)
Jan 3 19:13:08 openplotter openplotter-i2c-read[2526]: File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2793, in load_en
try_point
Jan 3 19:13:08 openplotter openplotter-i2c-read[2526]: return ep.load()
Jan 3 19:13:08 openplotter openplotter-i2c-read[2526]: File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2411, in load
Jan 3 19:13:08 openplotter openplotter-i2c-read[2526]: return self.resolve()
Jan 3 19:13:08 openplotter openplotter-i2c-read[2526]: File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2417, in resolve
Jan 3 19:13:08 openplotter openplotter-i2c-read[2526]: module = __import__(self.module_name, fromlist=['__name__'], level=0)
Jan 3 19:13:08 openplotter openplotter-i2c-read[2526]: File "/usr/lib/python3/dist-packages/openplotterI2c/openplotterI2cRead.py", line 18, in <module>
Jan 3 19:13:08 openplotter openplotter-i2c-read[2526]: import socket, time, threading, board, busio
Jan 3 19:13:08 openplotter openplotter-i2c-read[2526]: ModuleNotFoundError: No module named 'board'
Jan 3 19:13:08 openplotter systemd[1]: openplotter-i2c-read.service: Main process exited, code=exited, status=1/FAILURE
Jan 3 19:13:08 openplotter systemd[1]: openplotter-i2c-read.service: Failed with result 'exit-code'
I have been unable to find any information on this error or what it means, but it seems quite worrying that a core process is failing to read I2C data, and obviously it is also filling my syslog up with errors which I would prefer to avoid!
I seem to have the latest versions of all software packages (checked via the OP Settings app just now) so I wonder if this is a known issue and if there is a fix?
Thanks,
Will
Jan 3 19:13:08 openplotter openplotter-i2c-read[2526]: Traceback (most recent call last):
Jan 3 19:13:08 openplotter openplotter-i2c-read[2526]: File "/usr/bin/openplotter-i2c-read", line 11, in <module>
Jan 3 19:13:08 openplotter openplotter-i2c-read[2526]: load_entry_point('openplotterI2c==2.2.0', 'console_scripts', 'openplotter-i2c-read')
()
Jan 3 19:13:08 openplotter openplotter-i2c-read[2526]: File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 489, in load_ent
ry_point
Jan 3 19:13:08 openplotter openplotter-i2c-read[2526]: return get_distribution(dist).load_entry_point(group, name)
Jan 3 19:13:08 openplotter openplotter-i2c-read[2526]: File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2793, in load_en
try_point
Jan 3 19:13:08 openplotter openplotter-i2c-read[2526]: return ep.load()
Jan 3 19:13:08 openplotter openplotter-i2c-read[2526]: File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2411, in load
Jan 3 19:13:08 openplotter openplotter-i2c-read[2526]: return self.resolve()
Jan 3 19:13:08 openplotter openplotter-i2c-read[2526]: File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2417, in resolve
Jan 3 19:13:08 openplotter openplotter-i2c-read[2526]: module = __import__(self.module_name, fromlist=['__name__'], level=0)
Jan 3 19:13:08 openplotter openplotter-i2c-read[2526]: File "/usr/lib/python3/dist-packages/openplotterI2c/openplotterI2cRead.py", line 18, in <module>
Jan 3 19:13:08 openplotter openplotter-i2c-read[2526]: import socket, time, threading, board, busio
Jan 3 19:13:08 openplotter openplotter-i2c-read[2526]: ModuleNotFoundError: No module named 'board'
Jan 3 19:13:08 openplotter systemd[1]: openplotter-i2c-read.service: Main process exited, code=exited, status=1/FAILURE
Jan 3 19:13:08 openplotter systemd[1]: openplotter-i2c-read.service: Failed with result 'exit-code'
I have been unable to find any information on this error or what it means, but it seems quite worrying that a core process is failing to read I2C data, and obviously it is also filling my syslog up with errors which I would prefer to avoid!
I seem to have the latest versions of all software packages (checked via the OP Settings app just now) so I wonder if this is a known issue and if there is a fix?
Thanks,
Will