# # required apt-get install python3-configobj apt-get install python3-pil apt-get install python3-cheetah apt-get install python3-usb apt-get install python3-serial # optional apt-get install python3-ephem apt-get install mariadb-client apt-get install python3-mysqldb # weewx apt-get install python3-weewx
Seems to be a bit risky and not for the faint of heart. What say, gurus? I can leave it at python 2.7.16 for now, although at some point that's going away . . .
Seems to be a bit risky and not for the faint of heart. What say, gurus? I can leave it at python 2.7.16 for now, although at some point that's going away . . .
The first few lines after a WeeWX startup tell you exactly what python version is being used by WeeWX, eg:
Jun 3 11:15:55 weewx weewx[2712] INFO __main__: Initializing weewx version 4.1.1
Jun 3 11:15:55 weewx weewx[2712] INFO __main__: Using Python 3.8.2 (default, Apr 27 2020, 15:53:34) #012[GCC 9.3.0]
Jun 3 11:15:55 weewx weewx[2712] INFO __main__: Platform Linux-5.4.0-33-generic-x86_64-with-glibc2.29
Gary
| Dan Rich <dr...@employees.org> | http://www.employees.org/~drich/ |
| "Step up to red alert!" "Are you sure, sir? | |
| It means changing the bulb in the sign..." | |
| - Red Dwarf (BBC) |
--
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/26d4b49f-0478-450c-8879-0c1ba52e63a9%40googlegroups.com.
weewxd /etc/weewx/weewx.conf
python3 weewxd /etc/weewx/weewx.conf
--
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/7e72ef46-3368-4f26-ad42-ac3cc89c92aao%40googlegroups.com.
That worked, Neville:
python --version
Python 3.7.3
However, weewx still grabs python 2.7 . . . perhaps it's a bit too early (new Raspberry Pi O/S and a new weewx version 4.1.1 for someone at my level of expertise to monkey around with this yet. It's working, and while I have a "just made" backup on a separate SD card, there seem to be a lot of threads discussing this. I don't run anything but weewx on the Pi (i.e. no other python scripts), but experience has taught me not to change too many things at the same time. I suspect this is more related to the O/S that's only a week or so old as opposed to weewx. 2.7 seems to be working OK. I don't understand why weewx is not picking up 3.7.3, but there's no rush.
--
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/678b895a-5097-4e86-be6b-98af8dbbe003o%40googlegroups.com.
except KeyError, e:
^
SyntaxError: invalid syntax
To unsubscribe from this group and stop receiving emails from it, send an email to weewx...@googlegroups.com.
Progress! One issue left:python3[8081]: weewx[8081] INFO user.sftp: sftpgenerator: upload not possible: No module named 'pysftp'Any thoughts on how to fix this?