Hi Vince, To clarify, I am the original poster. After the first post, I did some digging with Google. I found the github discussion by Matthew Wall et al. about the permutations and combinations of various Linux distros combined with either Python 2.7 and Python 3. I did do the upgrade of my Pi to Raspberry Pi O/S from Raspian Buster 10. As you suggest, it automagically upgraded weewx to 4.1.1 at the same time. Everything seems to be working well. On my system I have both versions of Python:
$ python --version Python 2.7.16 $ python3 --version Python 3.7.3 What's confusing me is the log says python2 at the beginning of each line: Jun 03 16:30:16 rhubarb python2[1164]: weewx[1164] INFO weewx.manager: Added record 2020-06-03 16:30:00 ADT (1591212600) to database 'weewx.sdb' Jun 03 16:30:16 rhubarb python2[1164]: weewx[1164] INFO weewx.manager: Added record 2020-06-03 16:30:00 ADT (1591212600) to daily summary in 'weewx.sdb' Jun 03 16:30:19 rhubarb weewxd[1164]: restx: Weather365: Data uploaded to https://channel1.weather365.net/stations/index.php is: (dew2m=6.0&datum=202006031630&humidex=8.5&lat=44.73794&soiltemp=-66.7&prec_time=60&et=0.00000&alt=85.0&soilmoisture=4.0&t2m=8.5&leafwetness=4.0&soiltemp2=-67.8&soiltemp3=-66.7&soiltemp4=-67.8&long=-63.37766&rainh=0.00&rxsignal=96&soilmoisture2=8.0&soilmoisture3=4.0&soilmoisture4=40.0&windrun=0.3&utcstamp=1591212600&wchill=8.5&txbattery=0&winddir=158&windspeed=0.9&windgust=2.7&press=1003.658&relhum=84&appTemp=6.9&heat=8.5&stationid=RN5CDP36Y3&leafwetness2=8.0&raind=10.00&rainrate=0.00&cloudbase=336.5) Jun 03 16:30:19 rhubarb python2[1164]: weewx[1164] INFO weewx.restx: WOW: Published record 2020-06-03 16:30:00 ADT (1591212600) Jun 03 16:30:19 rhubarb python2[1164]: weewx[1164] INFO weewx.restx: AWEKAS: Published record 2020-06-03 16:30:00 ADT (1591212600) Jun 03 16:30:19 rhubarb python2[1164]: weewx[1164] INFO weewx.restx: Weather365: Published record 2020-06-03 16:30:00 ADT (1591212600) Jun 03 16:30:19 rhubarb python2[1164]: weewx[1164] INFO weewx.restx: WeatherCloud: Published record 2020-06-03 16:30:00 ADT (1591212600) Jun 03 16:30:20 rhubarb python2[1164]: weewx[1164] INFO weewx.restx: PWSWeather: Published record 2020-06-03 16:30:00 ADT (1591212600) Jun 03 16:30:20 rhubarb python2[1164]: weewx[1164] INFO weewx.cheetahgenerator: Generated 14 files for report StandardReport in 0.92 seconds Jun 03 16:30:20 rhubarb python2[1164]: weewx[1164] INFO weewx.imagegenerator: Generated 13 images for report StandardReport in 0.46 seconds Jun 03 16:30:20 rhubarb python2[1164]: weewx[1164] INFO weewx.reportengine: Copied 0 files to /var/www/html/weewx Jun 03 16:30:20 rhubarb python2[1164]: weewx[1164] INFO paramiko.transport: Connected (version 2.0, client OpenSSH_7.2p2) Jun 03 16:30:21 rhubarb python2[1164]: weewx[1164] INFO paramiko.transport: Authentication (publickey) successful! Jun 03 16:30:21 rhubarb python2[1164]: weewx[1164] INFO paramiko.transport.sftp: [chan 0] Opened sftp connection (server version 3) Jun 03 16:30:26 rhubarb python2[1164]: weewx[1164] INFO paramiko.transport.sftp: [chan 0] sftp session closed. Jun 03 16:30:26 rhubarb python2[1164]: weewx[1164] INFO user.sftp: sftpgenerator: transferred 29 files in 5.77 seconds Jun 03 16:30:28 rhubarb python2[1164]: weewx[1164] INFO weeutil.rsyncupload: rsync'd 30 files (1,217,636 bytes) in 2.05 seconds Jun 03 16:30:39 rhubarb python2[1164]: weewx[1164] INFO weewx.restx: CWOP: Published record 2020-06-03 16:30:00 ADT (1591212600) That python2[1164] reference might be a hiccup in the log. If my system is using both of the new versions pf python and Cheetah, then all is good. If it's using python 2.7, then I might have inadvertently created some kind of hybrid. The reference to paramiko is new, and that's because I am using Matthew's sftp extension. I was doing so well before before the upgrade, and the log didn't mention paramiko. That's probably a red herring in the sense that I went from weewx 3.9.3 to 4.1.1 and likely has nothing to do with the python version weewx is using. I don't want to have created something that will break on future upgrades, and that's my only concern. Is there an easy way to tell which version of python and Cheetah that weewx is using? - Paul VE1DX https://www.ve1dx.net <https://www.google.com/url?q=https%3A%2F%2Fwww.ve1dx.net&sa=D&sntz=1&usg=AFQjCNHfiLypr9COL3G4nZH4lD2_TNTPDQ> On Wednesday, June 3, 2020 at 10:24:20 AM UTC-3, WindnFog wrote:I updated my Pi 4 to Raspberry Pi OS and weewx to version 4.1.1. Everything seems A-OK. Great job, fellows! To move entirely into the 21st century, I want to start using python 3 (already installed) instead of python 2.7. Where do I find the documentation to make the switch? Any "gotchas" I of which I need to be aware? - Paul VE1DX https://www.ve1dx.net On Wednesday, June 3, 2020 at 10:24:20 AM UTC-3, WindnFog wrote: > > I updated my Pi 4 to Raspberry Pi OS and weewx to version 4.1.1. > Everything seems A-OK. Great job, fellows! > > To move entirely into the 21st century, I want to start using python 3 > (already installed) instead of python 2.7. Where do I find the > documentation to make the switch? Any "gotchas" I of which I need to be > aware? > > - Paul VE1DX > > https://www.ve1dx.net > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/e2f52d2b-0f01-4be9-b658-70e63c39274c%40googlegroups.com.
