[weewx-development] Re: WeeWX Version 4, beta 6

2020-01-02 Thread 'Johannes Ebner' via weewx-development
I had to use "python3 ./setup.py build" But as this is not that trivial to use python3 on a new raspbian buster and I am not the expert. Is there any advantage to move now to python3 for weewx? The only reason why I was trying to do it that way is because I anyhow have to newly setup weewx so

[weewx-development] Re: WeeWX Version 4, beta 6

2020-01-02 Thread Cameron D
I have changed the wmr300 driver: 1 minute to fix the code and 1 day trying to understand how to make git work. I may or may not have submitted a pull request on the development branch.If I haven't succeeded then let me know and I'll post the diffs. On Tuesday, 31 December 2019 17:53:47 UTC+10,

Re: [weewx-development] Is this a bug? 4.0.0.b5

2020-01-02 Thread KSKENYON
Probably need to wait for a rain event. Otherwise OK. Kevin On Monday, December 30, 2019 at 4:29:26 PM UTC-5, Tom Keffer wrote: > > Could you try beta 6, just posted? > > http://weewx.com/downloads/development_versions/ > > -tk > > On Mon, Dec 30, 2019 at 8:11 AM KSKENYON > > wrote: > >> Dec 30

[weewx-development] Re: WeeWX Version 4, beta 6

2020-01-02 Thread Cameron D
You should not need to uninstall python2. I have a working weewx3 install that requires it and I managed to get weewx4 testing under python3 on the same system. I will put my notes onto the wiki in the next hour or so. Cameron. On Friday, 3 January 2020 05:37:29 UTC+10, Patrick Tranchant wrote

Re: [weewx-development] WeeWx 4 and 1-wire

2020-01-02 Thread Thomas Keffer
Glad that's working out. Unfortunately, we can't always depend on six being around when running under Python 2. Another option would be try: ow.init(self.interface) except TypeError: ow.init(self.interface.encode()) On Thu, Jan 2, 2020 at 1:30 PM Jaap de Munck wrote: > Hi Tom, > > Th

Re: [weewx-development] Re: WeeWX Version 4, beta 6

2020-01-02 Thread Vince Skahan
On Thursday, January 2, 2020 at 12:17:57 PM UTC-8, Tom Keffer wrote: > > Respectively, disagree. At this point, editing the pages on weewx.conf is > not only more work, but would add to the confusion. Python 3? Version 3.x > supports Python 3? > > > No, I'm merely suggesting a change From:

Re: [weewx-development] WeeWx 4 and 1-wire

2020-01-02 Thread Jaap de Munck
Hi Tom, Thanks for your quick reaction (mine took a bit too long). Good guess, you were right.. With a special treatment for Python2 like if six.PY2: ow.init(self.interface.encode()) else: ow.init(self.interface) It runs on all (Weewx4-python3; Weewx4-p

Re: [weewx-development] Re: WeeWX Version 4, beta 6

2020-01-02 Thread Thomas Keffer
Respectively, disagree. At this point, editing the pages on weewx.conf is not only more work, but would add to the confusion. Python 3? Version 3.x supports Python 3? -tk On Thu, Jan 2, 2020 at 12:45 PM Vince Skahan wrote: > On Thursday, January 2, 2020 at 11:32:21 AM UTC-8, Tom Keffer wrote: >

Re: [weewx-development] Re: WeeWX Version 4, beta 6

2020-01-02 Thread Vince Skahan
On Thursday, January 2, 2020 at 11:32:21 AM UTC-8, Tom Keffer wrote: > > The instructions that come with V4 invokes setup.py with an explicit call > to python. > > > Yes, it does indeed. But the legacy v3 web pages that most folks likely read along with (I know that's where I look) have the less

[weewx-development] Re: WeeWX Version 4, beta 6

2020-01-02 Thread Patrick Tranchant
sorry, i don't understand, what should i do, uninstall python 2.7? On Monday, December 30, 2019 at 10:28:50 PM UTC+1, Tom Keffer wrote: > > ... is up. In the usual spot. > http://weewx.com/downloads/development_versions/ > > -tk > -- You received this message because you are subscribed to the

Re: [weewx-development] Re: WeeWX Version 4, beta 6

2020-01-02 Thread Thomas Keffer
The instructions that come with V4 invokes setup.py with an explicit call to python. -tk On Thu, Jan 2, 2020 at 12:21 PM Vince Skahan wrote: > On Thursday, January 2, 2020 at 10:32:41 AM UTC-8, mwall wrote: >> >> >> >> On Thursday, January 2, 2020 at 1:16:06 PM UTC-5, Johannes Ebner wrote: >>>

[weewx-development] Re: WeeWX Version 4, beta 6

2020-01-02 Thread Patrick Tranchant
up ok, we erase everything i said. as in the logs I saw that it was python 2.7 which was used, I changed the python by default with this command, pi@raspberrypi:~ $ update-alternatives --config python Il existe 2 choix pour l'alternative python (qui fournit /usr/bin/python). Sélection Chemin

[weewx-development] Re: WeeWX Version 4, beta 6

2020-01-02 Thread Vince Skahan
On Thursday, January 2, 2020 at 10:32:41 AM UTC-8, mwall wrote: > > > > On Thursday, January 2, 2020 at 1:16:06 PM UTC-5, Johannes Ebner wrote: >> >> >> Then I tried to install weewx but getting the following error: >> >> pi@Weewx:~/weewx-4.0.0b6 $ ./setup.py build >> Traceback (most recent call la

Re: [weewx-development] WeeWx 4 and 1-wire

2020-01-02 Thread Jaap de Munck
Hi Tom, Thanks for your quick reaction (mine took a bit too long). CRITICAL weewx.engine: Caught unrecoverable exception: CRITICAL weewx.engine: in method 'init', argument 1 of type 'char const *' CRITICAL weewx.engine: Traceback (most recent call last): CRITICAL weewx.engine

Re: [weewx-development] Re: WeeWX Version 4, beta 6

2020-01-02 Thread Thomas Keffer
You're not giving much information, but it looks like you are trying to run weewx as a daemon. Unless you changed the in init.d file you are using (or systemd weewx.service), it is still invoking python 2. If you wish to run as a daemon, you will need to change that file. -tk On Thu, Jan 2, 2020

[weewx-development] Re: WeeWX Version 4, beta 6

2020-01-02 Thread Vince Skahan
On Thursday, January 2, 2020 at 11:07:22 AM UTC-8, Patrick Tranchant wrote: > I have python 2.7 and python 3.5 installed on my RPi, I can deactived > python 2.7 for test ? > > > You would have to reinstall weewx: - python3 setup.py build - python3 setup.py install - then restart weewx

[weewx-development] Re: WeeWX Version 4, beta 6

2020-01-02 Thread Patrick Tranchant
up installation done with setup.py = OK I try just now with "simulator" in weewx.conf => but I had an error in syslog Jan 2 19:57:02 raspberrypi weewx[5741] INFO weewx.engine: Initializing weewx version 4.0.0b6 Jan 2 19:57:02 raspberrypi weewx[5741] INFO weewx.engine: *Using Python 2.7.13 (d

Re: [weewx-development] Re: WeeWX Version 4, beta 6

2020-01-02 Thread Thomas Keffer
Teaching users to use virtualenv or pyenv sounds like a nightmare. I wish Python's package management system was up to the task. Things are so much easier in Javascript land. -tk On Thu, Jan 2, 2020 at 11:43 AM mwall wrote: > it has always been best practice to not modify the system's python.

[weewx-development] Re: WeeWX Version 4, beta 6

2020-01-02 Thread mwall
it has always been best practice to not modify the system's python. however, to do that strictly would mean that you must do one of these: * use python's virtualenv * install your own version of python, completely separately from the system python * install extensions to the system python using

[weewx-development] Re: WeeWX Version 4, beta 6

2020-01-02 Thread mwall
On Thursday, January 2, 2020 at 1:16:06 PM UTC-5, Johannes Ebner wrote: > > > Then I tried to install weewx but getting the following error: > > pi@Weewx:~/weewx-4.0.0b6 $ ./setup.py build > Traceback (most recent call last): > File "./setup.py", line 21, in > import configobj > ImportErro

[weewx-development] Re: WeeWX Version 4, beta 6

2020-01-02 Thread 'Johannes Ebner' via weewx-development
Hi, I am trying to install weewx 4 beta with python3 on my RPi with Rasbian Buster Lite. I was doing a basic installation of Raspbian (which includes Python 2.7 per default). Then I followed the docs (from the source) for Raspbian with Python3: sudo apt-get install python3-pil sudo apt-get i

[weewx-development] Re: WeeWX Version 4, beta 6

2020-01-02 Thread Andy
This issue seems to be resolved. Tested by tipping teeter-totter during spider eviction. Andy -- You received this message because you are subscribed to the Google Groups "weewx-development" group. To unsubscribe fr

[weewx-development] Re: WeeWX Version 4, beta 6

2020-01-02 Thread Patrick Tranchant
up if i still want to test before, i just replace this in the weewx file (in init.d) WEEWX_BIN = / usr / bin / weewxd with /home/pi/weewx-4.0.0b6/bin/weewxd (new directory). i have good patrick On Monday, December 30, 2019 at 10:28:50 PM UTC+1, Tom Keffer wrote: > > ... is up. In the usual spo

[weewx-development] Re: WeeWX Version 4, beta 6

2020-01-02 Thread Patrick Tranchant
ok, i will test version 4 using installation with setup.py, when it is available in .deb (final version), i will do the real update. tk patrick On Monday, December 30, 2019 at 10:28:50 PM UTC+1, Tom Keffer wrote: > > ... is up. In the usual spot. > http://weewx.com/downloads/development_versio

[weewx-development] Re: WeeWX Version 4, beta 6

2020-01-02 Thread Patrick Tranchant
it is better pi@rpi-bureau:~/weewx-4.0.0b6/bin $ ./weewxd --version 4.0.0b6 pi@rpi-bureau:~/weewx-4.0.0b6/bin $ On Monday, December 30, 2019 at 10:28:50 PM UTC+1, Tom Keffer wrote: > > ... is up. In the usual spot. > http://weewx.com/downloads/development_versions/ > > -tk > -- You received th

[weewx-development] Re: WeeWX Version 4, beta 6

2020-01-02 Thread Vince Skahan
On Thursday, January 2, 2020 at 8:19:18 AM UTC-8, Patrick Tranchant wrote: > > I done this command > > pi@rpi-bureau:~/weewx-4.0.0b6/bin $ weewxd --version > 3.8.2 > it is normal ? > > Patrick - given your recent questions and the fact that you have a previous apt-get installation, you might want

[weewx-development] Re: WeeWX Version 4, beta 6

2020-01-02 Thread Patrick Tranchant
I done this command pi@rpi-bureau:~/weewx-4.0.0b6/bin $ weewxd --version 3.8.2 it is normal ? patrick On Monday, December 30, 2019 at 10:28:50 PM UTC+1, Tom Keffer wrote: > > ... is up. In the usual spot. > http://weewx.com/downloads/development_versions/ > > -tk > -- You received this messa

[weewx-development] Re: WeeWX Version 4, beta 6

2020-01-02 Thread Patrick Tranchant
ok I go to try it patrick On Monday, December 30, 2019 at 10:28:50 PM UTC+1, Tom Keffer wrote: > > ... is up. In the usual spot. > http://weewx.com/downloads/development_versions/ > > -tk > -- You received this message because you are subscribed to the Google Groups "weewx-development" group.

[weewx-development] Re: WeeWX Version 4, beta 6

2020-01-02 Thread Patrick Tranchant
or can I just copy the new directories instead of the others? my previous installation was done by apt-get install. thanks patrick On Monday, December 30, 2019 at 10:28:50 PM UTC+1, Tom Keffer wrote: > > ... is up. In the usual spot. > http://weewx.com/downloads/development_versions/ > > -tk >

Re: [weewx-development] Re: WeeWX Version 4, beta 6

2020-01-02 Thread Thomas Keffer
Unfortunately, no. WeeWX V4 is only available for installation via the setup.py. However, it is easy enough to unpack the tarball someplace, then simply run the unpacked weewxd using your old weewx.conf file. It should work fine. -tk On Thu, Jan 2, 2020 at 8:35 AM Patrick Tranchant wrote: > >

[weewx-development] Re: WeeWX Version 4, beta 6

2020-01-02 Thread Patrick Tranchant
hello I can follow this procedure ? On Monday, December 30, 2019 at 10:28:50 PM UTC+1, Tom Keffer wrote: > > ... is up. In the usual spot. > http://weewx.com/downloads/development_versions/ > > -tk > -- You received this message because you are subscribed to the Google Groups "weewx-developm