Closed c0by85 closed 4 years ago
Hi, are you running Python 2? The driver works only with Python 3 at the moment. Sorry for the inconvenience.
Opps. My fault, sorry, i change the version.
python -V
Python 2.7.13
Changed the version, same result.
root@pi2 ~ # lsb_release -a && uname -a && service weewx status
No LSB modules are available.
Distributor ID: Raspbian
Description: Raspbian GNU/Linux 9.11 (stretch)
Release: 9.11
Codename: stretch
Linux pi2 5.4.47-v7+ #1322 SMP Wed Jun 17 17:52:39 BST 2020 armv7l GNU/Linux
● weewx.service - LSB: weewx weather system
Loaded: loaded (/etc/init.d/weewx; generated; vendor preset: enabled)
Active: active (exited) since Thu 2020-07-09 15:40:49 CEST; 1min 48s ago
Docs: man:systemd-sysv-generator(8)
Process: 371 ExecStart=/etc/init.d/weewx start (code=exited, status=0/SUCCESS)
Tasks: 0 (limit: 4915)
CGroup: /system.slice/weewx.service
Jul 09 15:40:49 pi2 python2[515]: weewx[515] CRITICAL __main__: **** engine = weewx.engine.StdEngine(config_dict)
Jul 09 15:40:49 pi2 python2[515]: weewx[515] CRITICAL __main__: **** File "/usr/share/weewx/weewx/engine.py", line 69, in __init__
Jul 09 15:40:49 pi2 python2[515]: weewx[515] CRITICAL __main__: **** self.setupStation(config_dict)
Jul 09 15:40:49 pi2 python2[515]: weewx[515] CRITICAL __main__: **** File "/usr/share/weewx/weewx/engine.py", line 92, in setupStation
Jul 09 15:40:49 pi2 python2[515]: weewx[515] CRITICAL __main__: **** __import__(driver)
Jul 09 15:40:49 pi2 python2[515]: weewx[515] CRITICAL __main__: **** File "/usr/share/weewx/user/weatherlinkliveudp.py", line 113
Jul 09 15:40:49 pi2 python2[515]: weewx[515] CRITICAL __main__: **** logdbg(f'Bucketsize is set at 0.1 in')
Jul 09 15:40:49 pi2 python2[515]: weewx[515] CRITICAL __main__: **** ^
Jul 09 15:40:49 pi2 python2[515]: weewx[515] CRITICAL __main__: **** SyntaxError: invalid syntax
Jul 09 15:40:49 pi2 python2[515]: weewx[515] CRITICAL __main__: **** Exiting.
root@pi2 ~ # python -V
Python 3.5.3
root@pi2 ~ #
Or does it only work with Python 3 when weewx is installed manually? Currently it is installed via package.
When I start programming I used the new f-strings a lot. These new strings where introduced in Python v3.6 (late 2016). If you are familiar with pyenv it is very easy to change Python versions.
i will change to an new systen with python 3 and debian 10. thanks in advance.
hi,
got a problem with your weewx driver.