Re: [weewx-user] weewx upgrade from python2 to python3

2020-09-08 Thread bgra...@umw.edu
Thanks, Tom, that seems to have fixed it. Sorry to have added to the confused thread. Bob On Monday, September 7, 2020 at 6:47:54 PM UTC-4 tke...@gmail.com wrote: > In the file emoncms.py, try changing lines 290-293 from > > def check_response(self, response): > txt =

Re: [weewx-user] weewx upgrade from python2 to python3

2020-09-07 Thread Tom Keffer
There are now three, unrelated, support issues scrambled together in this thread. If you are having problems transitioning from Python 2 to Python 3, please *start a new thread!* It's getting terribly confusing untangling the responses. On Mon, Sep 7, 2020 at 3:47 PM Tom Keffer wrote: > In the

Re: [weewx-user] weewx upgrade from python2 to python3

2020-09-07 Thread Tom Keffer
In the file emoncms.py, try changing lines 290-293 from def check_response(self, response): txt = response.read() if txt != 'ok' : raise weewx.restx.FailedPost("Server returned '%s'" % txt) to def check_response(self, response): txt =

Re: [weewx-user] weewx upgrade from python2 to python3

2020-09-07 Thread bgra...@umw.edu
To add to this, it seems my local server is being updated correctly as before even though the 3 failed attempts still appear in the log. Is it possible that the software is also trying to send data to emoncms.org? I only send data to my local server so could there be some code I need to remove

Re: [weewx-user] weewx upgrade from python2 to python3

2020-09-07 Thread Bob Grattan
Having another problem with the move to python3. This time it's the weewx-emoncms extension. I have installed the latest version which should run on python3, from what I understand. At bootup, I get the normal: Sep 7 16:04:07 n4mrv wee_reports[27467] INFO user.emoncms: service version is 0.17

Re: [weewx-user] weewx upgrade from python2 to python3

2020-09-06 Thread Susan Mackay
I'm working on it and it is being tested as time permits. Susan On Sunday, September 6, 2020 at 2:57:05 AM UTC+10, steeple ian wrote: > > HP1000 driver has not yet been ported to Python3 > -- You received this message because you are subscribed to the Google Groups "weewx-user" group. To

Re: [weewx-user] weewx upgrade from python2 to python3

2020-09-05 Thread steeple ian
The three options you have are to go back to Python2 until the driver has been updated or there may be a willing person able to help you update the driver yourself. There are some fantastically helpful people in this group who may be very willing. The third option is to use the interceptor driver

Re: [weewx-user] weewx upgrade from python2 to python3

2020-09-05 Thread steeple ian
HP1000 driver has not yet been ported to Python3 On Sat, 5 Sep 2020 at 17:53, 'Season Ticket' via weewx-user < weewx-user@googlegroups.com> wrote: > My upgrade to python3 is still causing me a few problems. I finally > managed to get weewx to start after removing weewx and re-installing it. >

Re: [weewx-user] weewx upgrade from python2 to python3

2020-09-05 Thread 'Season Ticket' via weewx-user
My upgrade to python3 is still causing me a few problems. I finally managed to get weewx to start after removing weewx and re-installing it. For some reason, despite saying that it would use my previous config, it changed the driver back to Simulator. I'm using HP1000.py (Aussie Susan's

Re: [weewx-user] weewx upgrade from python2 to python3

2020-09-03 Thread Timothy Buchanan
Thanks; that fixed the problem with Cheetah. I still have a problem with the skin I'm using (exfoliation), but that's for another thread. On Wednesday, September 2, 2020 at 5:12:04 PM UTC-6 tke...@gmail.com wrote: > You need Python 3 versions of all the prerequisites. To install them, > follow

Re: [weewx-user] weewx upgrade from python2 to python3

2020-09-02 Thread Tom Keffer
You need Python 3 versions of all the prerequisites. To install them, follow step 1 (and only step 1) from the setup.py instructions . On Wed, Sep 2, 2020 at 2:34 PM Timothy Buchanan wrote: > I tried this procedure, and with python3 I get an error that

Re: [weewx-user] weewx upgrade from python2 to python3

2020-09-02 Thread Timothy Buchanan
I tried this procedure, and with python3 I get an error that Cheetah is not found. Log extract: Sep 2 15:28:18 raspberrypi weewx[1426] CRITICAL __main__: Caught unrecoverable exception: Sep 2 15:28:18 raspberrypi weewx[1426] CRITICAL __main__: No module named 'Cheetah' Sep 2

Re: [weewx-user] weewx upgrade from python2 to python3

2020-09-01 Thread bgra...@umw.edu
Thanks to everyone for the help. Bob On Tuesday, September 1, 2020 at 2:50:51 PM UTC-4 wwwd...@gmail.com wrote: > I just went through the same thing, as was mentioned above make sure all > of your plugins have been updated to the latest version. I had a few > plugins that I no longer run as

Re: [weewx-user] weewx upgrade from python2 to python3

2020-09-01 Thread wwwd...@gmail.com
I just went through the same thing, as was mentioned above make sure all of your plugins have been updated to the latest version. I had a few plugins that I no longer run as they hadn't been upgraded and after a look at the code the work to upgrade them was more than I was willing to tackle.

Re: [weewx-user] weewx upgrade from python2 to python3

2020-09-01 Thread Tom Keffer
Same issue, except this time, it's cmon. Your version has not been ported to Python 3. Fortunately, a newer version is available which has. On Tue, Sep 1, 2020 at 11:28 AM bgra...@umw.edu wrote: > Hello, > Seeing the discussion of python3, I thought I would do the switch myself > but ran into

Re: [weewx-user] weewx upgrade from python2 to python3

2020-09-01 Thread bgra...@umw.edu
Hello, Seeing the discussion of python3, I thought I would do the switch myself but ran into some errors. See below: +++ /var/log/weewx.log: Sep 1 11:51:21 n4mrv weewx[3283] INFO __main__: Initializing weewx version 4.1.1 Sep 1 11:51:21 n4mrv weewx[3283] INFO

Re: [weewx-user] weewx upgrade from python2 to python3

2020-09-01 Thread Tom Keffer
But PID 727 is the old instance, which still ran opsgenie. We want to see what happens without opsgenie. Try it again. This time, follow the directions in the Wiki article Help! Posting to weewx-user , except for step #6, start

Re: [weewx-user] weewx upgrade from python2 to python3

2020-09-01 Thread 'Season Ticket' via weewx-user
I've removed Opsgenie from the service list. however I still get nothing in the logs via the daemon. if you notice the time stamps at the end of each log are the same *"Sep 01 09:14:20 raspberrypi python3[727]: weewx[727] CRITICAL __main__: Exiting. " *- in both cases. On

Re: [weewx-user] weewx upgrade from python2 to python3

2020-09-01 Thread Tom Keffer
So, the log does say something! The extension 'opsgenie' has not been ported to Python 3. On Tue, Sep 1, 2020 at 6:13 AM 'Season Ticket' via weewx-user < weewx-user@googlegroups.com> wrote: > here are the logs > > pi@raspberrypi:~ $ sudo systemctl status weewx > ● weewx.service - LSB: weewx

Re: [weewx-user] weewx upgrade from python2 to python3

2020-09-01 Thread 'Season Ticket' via weewx-user
here are the logs pi@raspberrypi:~ $ sudo systemctl status weewx ● weewx.service - LSB: weewx weather system Loaded: loaded (/etc/init.d/weewx; generated; vendor preset: enabled) Active: active (exited) since Tue 2020-09-01 09:14:20 BST; 4h 57min ago Docs: man:systemd-sysv-generator(8)

Re: [weewx-user] weewx upgrade from python2 to python3

2020-09-01 Thread Tom Keffer
What are the results of the command *sudo systemctl status weewx* Then try it again after trying to start weewxd: *sudo /etc/init.d/weewx start* *sudo systemctl status weewx* On Tue, Sep 1, 2020 at 5:08 AM 'Season Ticket' via weewx-user < weewx-user@googlegroups.com> wrote: > ok thanks I

Re: [weewx-user] weewx upgrade from python2 to python3

2020-09-01 Thread 'Season Ticket' via weewx-user
ok thanks I didn't know that the recompile would be done automatically. here is the content of /etc/default/weewx pi@raspberrypi:~ $ more /etc/default/weewx WEEWX_PYTHON=/usr/bin/python3 WEEWX_BINDIR=/usr/share/weewx WEEWX_BIN=/usr/bin/weewxd WEEWX_CFG=/etc/weewx/weewx.conf and pi@raspberrypi:~

Re: [weewx-user] weewx upgrade from python2 to python3

2020-09-01 Thread Tom Keffer
You're making things harder than it needs to be! No need to recompile anything. That is done automatically by the interpreter. 1. What is in /etc/default/weewx? 2. In /etc/default/weewx, the variable WEEWX_BIN points to the copy of weewxd to be used. *Make sure it exists*. If it does not, this

Re: [weewx-user] weewx upgrade from python2 to python3

2020-09-01 Thread 'Season Ticket' via weewx-user
thanks for your persistence with this. I reinstalled because I expected that the code would need to be recompiled with python3. I can revert back to python2 by, a) changing the /etc/defaults/weewx to reference python2 and then reinstall again using "sudo dpkg -i

Re: [weewx-user] weewx upgrade from python2 to python3

2020-08-31 Thread Tom Keffer
Any particular reason why you tried to reinstall weewx? And, the version you reinstalled is for python2. NB: there is only one code base for weewx. There is no separate Python 2 and Python 3 versions. The only difference between the two packages is in which prerequisites get installed. But, the

Re: [weewx-user] weewx upgrade from python2 to python3

2020-08-31 Thread 'Season Ticket' via weewx-user
I changed /etc/default/weewx to use /usr/bin/python3 then sudo dpkg -i python-weewx_4.1.1-1_all.deb but now weewx won't start and no logs in /var/log/syslog On Monday, 31 August 2020 at 23:06:15 UTC+1 tke...@gmail.com wrote: > I'm assuming you want to keep everything the same, except you want

Re: [weewx-user] weewx upgrade from python2 to python3

2020-08-31 Thread Tom Keffer
I'm assuming you want to keep everything the same, except you want to run under Python 3. So, all you have to do is make sure python3 gets invoked, instead of python2. How to do that depends on your install method. A, If you did a *package install* using apt-get, you will need to go into

Re: [weewx-user] weewx upgrade from python2 to python3

2020-08-31 Thread 'Season Ticket' via weewx-user
if I choose these instructions what do I change home to, weewx.conf is in /etc/weewx? To specify an install location different from the default /home/weewx, modify the parameter home in the setup.cfg file. Mac users will want to change it to /Users/Shared/weewx. On Monday, 31 August 2020 at

Re: [weewx-user] weewx upgrade from python2 to python3

2020-08-31 Thread Tom Keffer
Take a look at the prerequisite requirements for the setup.py instructions . Specifically: sudo apt update # Requiredsudo apt install python3-configobj sudo apt install python3-pil sudo apt install python3-serial sudo apt install python3-usb # The following

[weewx-user] weewx upgrade from python2 to python3

2020-08-31 Thread 'Season Ticket' via weewx-user
i'm running weewx on raspbian v9, with python 2.7 weewx 4.1.1, and I'm trying to upgrade to python3. I already have python version 3.5.3 installed. what do I need to do to run weewx under python3? PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)" NAME="Raspbian GNU/Linux" VERSION_ID="9"