Hi all,

I can't get Weewx to work since I've upgraded to the last released version.
This is what I get:

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

-- 
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+unsubscr...@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.

Reply via email to