root@rasp_pineto:/home/weewx# tail -f /var/log/syslog
Mar 30 13:34:16 rasp_pineto systemd[1]: Starting LSB: weewx weather system...
Mar 30 13:34:19 rasp_pineto weewx[1332] INFO __main__: Initializing weewx version 4.3.0
Mar 30 13:34:19 rasp_pineto weewx[1332] INFO __main__: Using Python 3.4.2 (default, Sep 16 2019, 19:58:00) #012[GCC 4.9.2]
Mar 30 13:34:19 rasp_pineto weewx[1332] INFO __main__: Platform Linux-4.19.42+-armv6l-with-debian-8.0
Mar 30 13:34:19 rasp_pineto weewx[1332] INFO __main__: Locale is 'it_IT.UTF-8'
Mar 30 13:34:19 rasp_pineto weewx[1332] INFO __main__: PID file is /var/run/weewx.pid
Mar 30 13:34:20 rasp_pineto weewx[1322]: Starting weewx weather system: weewx.
Mar 30 13:34:20 rasp_pineto systemd[1]: Started LSB: weewx weather system.
Mar 30 13:34:20 rasp_pineto weewx[1336] INFO __main__: Using configuration file /home/weewx/weewx.conf
Mar 30 13:34:20 rasp_pineto weewx[1336] INFO __main__: Debug is 0
Mar 30 13:34:20 rasp_pineto weewx[1336] INFO weewx.engine: Loading station type Vantage (weewx.drivers.vantage)
Mar 30 13:34:20 rasp_pineto weewx[1336] ERROR weewx.engine: Import of driver failed: unsupported operand type(s) for %: 'bytes' and 'tuple' (<class 'TypeError'>)
Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine: **** Traceback (most recent call last):
Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine: **** File "/home/weewx/bin/weewx/engine.py", line 119, in setupStation
Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine: **** self.console = loader_function(config_dict, self)
Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine: **** File "/home/weewx/bin/weewx/drivers/vantage.py", line 39, in loader
Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine: **** return VantageService(engine, config_dict)
Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine: **** File "/home/weewx/bin/weewx/drivers/vantage.py", line 1898, in __init__
Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine: **** Vantage.__init__(self, **config_dict[DRIVER_NAME])
Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine: **** File "/home/weewx/bin/weewx/drivers/vantage.py", line 515, in __init__
Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine: **** self._setup()
Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine: **** File "/home/weewx/bin/weewx/drivers/vantage.py", line 1326, in _setup
Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine: **** unit_bits = self._getEEPROM_value(0x29)[0]
Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine: **** File "/home/weewx/bin/weewx/drivers/vantage.py", line 1384, in _getEEPROM_value
Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine: **** command = b"EEBRD %X %X\n" % (offset, nbytes)
Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine: **** TypeError: unsupported operand type(s) for %: 'bytes' and 'tuple'
Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL __main__: Unable to load driver: unsupported operand type(s) for %: 'bytes' and 'tuple'
Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL __main__: **** Exiting...
I don't know why the system is using Python 3.4.2 even my default version is 3.8.4
root@rasp_pineto:/home/weewx# python -V
Python 3.8.4
I've tried to rollback to the previous version of Weewx, but I get the same error.
Thank you for help
Mauro
/usr/bin/python3.8 setup.py install
/usr/bin/python3.8 /home/weewx/bin/weewxd
--
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/89977cb6-ece2-4441-bdf8-0fb5c5d46d5fn%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/4ebe679a-1152-4a37-a425-759994145ae0n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/fae7cbd7-187c-4b38-b074-775d20efbd70n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/d48d5eb8-646e-4fd2-9555-384acbce9501n%40googlegroups.com.
On Mar 30, 2021, at 1:55 PM, Mauro De Lauretis <mauro.de...@gmail.com> wrote:
I still have the newest version of RPi OS, therefore I don't know what to change.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/9f25aa8f-5e0a-47e0-9c63-c275159583d4n%40googlegroups.com.
I still have the newest version of RPi OS, therefore I don't know what to change.But it seems that the python in the system its gone. Maybe I have to do a fresh install.
On Mar 31, 2021, at 4:16 AM, Auchtermuchty Weather <shunr...@gmail.com> wrote:
I found the default Buster had python 2. I installed 3, and set it to be the default version:
--
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/7fdc3479-f605-41d3-b190-5072de09eec6n%40googlegroups.com.