[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 I wanted to take the advantage and go immediatly 
with weewx 4 and python 3.

But maybe it is better to stay with weewx stable and python2 for the time 
beeing?

Am Donnerstag, 2. Januar 2020 19:32:41 UTC+1 schrieb 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
>> ImportError: No module named configobj
>>
>>
>> Any hints?
>>
>
> you might want to be explicit about everything, at least until we get all 
> the dependencies sorted out.  if you 'source' an rc file you may not get 
> what you expect.
>
> there can be a huge difference between this:
>
> ./setup.py install
>
> and this:
>
> python ./setup.py install
>
> i find it best to do this:
>
> python2 ./setup.py install
>
> or, if you want to use python3:
>
> python3 ./setup.py install
>
> then be sure that you do not mix!  when you do an 'install' using 
> setup.py, the shebang line in every entry point in weewx is modified to use 
> the python with which you invoked it.  since some python installations are 
> python2 and others are python3, it may not be obvious which one you'll get 
> when you just do 'python'.  also, it gets even more complicated if you have 
> multiple instances of python on the system and they were built to use 
> shared libraries (i think that is the default?).  then the LD_LIBRARY_PATH 
> also affects which python you'll end up getting.
>
> m 
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-development+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-development/91bedd42-804d-4d30-b8b3-1d14aaa8bc2e%40googlegroups.com.


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 00:00:04 mythtv weewxd[1011003]: *weewx[1011003] CRITICAL 
>> weewx.engine: File "/home/weewx/bin/weewx/engine.py", line 892, 
>> in main*
>>
>> Dec 30 00:00:04 mythtv weewxd[1011003]: *weewx[1011003] CRITICAL 
>> weewx.engine:   engine.run()*
>>
>> Dec 30 00:00:04 mythtv weewxd[1011003]: *weewx[1011003] CRITICAL 
>> weewx.engine: File "/home/weewx/bin/weewx/engine.py", line 196, 
>> in run*
>>
>> Dec 30 00:00:04 mythtv weewxd[1011003]: *weewx[1011003] CRITICAL 
>> weewx.engine:   
>> self.dispatchEvent(weewx.Event(weewx.NEW_LOOP_PACKET, packet=packet))*
>>
>> Dec 30 00:00:04 mythtv weewxd[1011003]: *weewx[1011003] CRITICAL 
>> weewx.engine: File "/home/weewx/bin/weewx/engine.py", line 229, 
>> in dispatchEvent*
>>
>> Dec 30 00:00:04 mythtv weewxd[1011003]: *weewx[1011003] CRITICAL 
>> weewx.engine:   callback(event)*
>>
>> Dec 30 00:00:04 mythtv weewxd[1011003]: *weewx[1011003] CRITICAL 
>> weewx.engine: File "/home/weewx/bin/weewx/wxservices.py", line 
>> 88, in new_loop_packet*
>>
>> Dec 30 00:00:04 mythtv weewxd[1011003]: *weewx[1011003] CRITICAL 
>> weewx.engine:   self.calc.new_loop_packet(event.packet)*
>>
>> Dec 30 00:00:04 mythtv weewxd[1011003]: *weewx[1011003] CRITICAL 
>> weewx.engine: File "/home/weewx/bin/weewx/wxservices.py", line 
>> 153, in new_loop_packet*
>>
>> Dec 30 00:00:04 mythtv weewxd[1011003]: *weewx[1011003] CRITICAL 
>> weewx.engine:   self.rain_rater.add_loop_packet(loop_packet, 
>> self.db_manager)*
>>
>> Dec 30 00:00:04 mythtv weewxd[1011003]: *weewx[1011003] CRITICAL 
>> weewx.engine: File "/home/weewx/bin/weewx/wxservices.py", line 
>> 608, in add_loop_packet*
>>
>> Dec 30 00:00:04 mythtv weewxd[1011003]: *weewx[1011003] CRITICAL 
>> weewx.engine:   rain = weewx.units.convertStd((record['rain'], 
>> u, g), self.unit_system)[0]*
>>
>> Dec 30 00:00:04 mythtv weewxd[1011003]: *weewx[1011003] CRITICAL 
>> weewx.engine: File "/home/weewx/bin/weewx/units.py", line 1222, 
>> in convertStd*
>>
>> Dec 30 00:00:04 mythtv weewxd[1011003]: *weewx[1011003] CRITICAL 
>> weewx.engine:   return 
>> StdUnitConverters[target_std_unit_system].convert(val_t)*
>>
>> Dec 30 00:00:04 mythtv weewxd[1011003]: *weewx[1011003] CRITICAL 
>> weewx.engine:   KeyError: None*
>>
>> Dec 30 00:00:04 mythtv weewxd[1011003]: *weewx[1011003] CRITICAL 
>> weewx.engine:   Exiting.*
>>
>> Dec 30 00:00:04 mythtv python[1011003]: detected unhandled Python 
>> exception in '/home/weewx/bin/weewxd'
>>
>> Dec 30 00:00:04 mythtv systemd[1]: *weewx.service: Main process exited, 
>> code=exited, status=1/FAILURE*
>>
>>
>> *It happens every night at midnight during a report generate.  Running 
>> standard Simulator engine.*
>>
>> *Kevin*
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "weewx-development" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to weewx-de...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/weewx-development/ab1b3430-6d0a-41a6-af70-02b426873a8e%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-development+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-development/9bd65da6-459a-4c69-a5d8-f7061b94f532%40googlegroups.com.


[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:
>
>
>
> 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 Google Groups 
"weewx-development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-development+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-development/6509b838-b097-4b92-9447-971953bc7027%40googlegroups.com.


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,
>
> 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-python2.7 and Weewx3.9-python2.7)
>
> Here is the new version (attached).
>
> Jaap
>
>
> Op dinsdag 24 december 2019 01:50:40 UTC+1 schreef Tom Keffer:
>>
>> I'm just guessing, but you could try to change line 488 in owfs.py from
>> this
>>
>> ow.init(self.interface)
>>
>> to this
>>
>> ow.init(self.interface.encode())
>>
>> -tk
>>
>>
>> On Mon, Dec 23, 2019 at 3:46 PM Jaap de Munck  wrote:
>>
>>> Hello,
>>>
>>> No problems with Vantage (Pro) and Weewx 4!
>>> But I also have a 1-wire sensor. OWFS isn't Python3 ready yet, so I
>>> tried to do that myself.
>>> The result seemed not so bad. It is running on Python3!
>>> It's also running on Python2.7: I copied it back to the 'production'
>>> system running weewx 3.9.2.
>>> Later the Weewx 4 test environment was switched back to Python2
>>> resulting in:
>>>
>>> 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: File
>>> "/home/weewx/bin/weewx/engine.py", line 886, in main
>>> CRITICAL weewx.engine:   engine = StdEngine(config_dict)
>>> CRITICAL weewx.engine: File
>>> "/home/weewx/bin/weewx/engine.py", line 83, in __init__
>>> CRITICAL weewx.engine:   self.loadServices(config_dict)
>>> CRITICAL weewx.engine: File
>>> "/home/weewx/bin/weewx/engine.py", line 143, in loadServices
>>> CRITICAL weewx.engine:   obj =
>>> weeutil.weeutil.get_object(svc)(self,config_dict)
>>> CRITICAL weewx.engine: File "/home/weewx/bin/user/owfs.py",
>>> line 488, in __init__
>>> CRITICAL weewx.engine:   ow.init(self.interface)
>>> CRITICAL weewx.engine: File
>>> "/usr/lib/python2.7/dist-packages/ow/__init__.py", line 220, in init
>>> CRITICAL weewx.engine:   if not _OW.init( iface ):
>>> CRITICAL weewx.engine:   TypeError: in method 'init', argument 1
>>> of type 'char const *'
>>> CRITICAL weewx.engine:   Exiting.
>>>
>>> The logging (attached) is from a (virtual) Debian10 environment and
>>> Weewx4 + Simulator driver. But it also occurs with Ubuntu 19.04 and Weewx4
>>> + Vantage driver.
>>>
>>> Best wishes,
>>> Jaap
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "weewx-development" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to weewx-de...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/weewx-development/a160e60b-57fd-444f-bfb2-7bb9fb139366%40googlegroups.com
>>> 
>>> .
>>>
>> --
> You received this message because you are subscribed to the Google Groups
> "weewx-development" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to weewx-development+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/weewx-development/679a0365-7b70-4915-b7b7-0bc0f0ad8a83%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-development+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-development/CAPq0zEBD73cVONj0VDFwhR43imkyzWWKMcLhS9UDw1fKMhOq6Q%40mail.gmail.com.


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:
>>
>> 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 preferred syntax.   In the days of only
> python2 that was probably ok, but I was just suggesting that perhaps a
> quick edit on the web pages might help lessen confusion.  It's not always
> self-evident to dig down into the html-formated docs subdirectory when
> trying to install the v4 beta.
>
> --
> You received this message because you are subscribed to the Google Groups
> "weewx-development" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to weewx-development+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/weewx-development/abf24a39-0e18-4d95-baa2-6e20ad955ecb%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-development+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-development/CAPq0zECEHne%3DaqDaOxNTdjSb-6H4THXeRhZWD45DUC3BfHa6mw%40mail.gmail.com.


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 preferred syntax.   In the days of only 
python2 that was probably ok, but I was just suggesting that perhaps a 
quick edit on the web pages might help lessen confusion.  It's not always 
self-evident to dig down into the html-formated docs subdirectory when 
trying to install the v4 beta.

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-development+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-development/abf24a39-0e18-4d95-baa2-6e20ad955ecb%40googlegroups.com.


[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 Google Groups 
"weewx-development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-development+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-development/9e9ff76d-f0f3-4d49-be5c-814e4e61202f%40googlegroups.com.


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:
>>>
>>>
>>> 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
>>> ImportError: No module named configobj
>>>
>>>
>>> Any hints?
>>>
>>
>> you might want to be explicit about everything, at least until we get all
>> the dependencies sorted out.  if you 'source' an rc file you may not get
>> what you expect.
>>
>> there can be a huge difference between this:
>>
>> ./setup.py install
>>
>> and this:
>>
>> python ./setup.py install
>>
>> i find it best to do this:
>>
>> python2 ./setup.py install
>>
>> or, if you want to use python3:
>>
>> python3 ./setup.py install
>>
>>
>
> Matthew - the 'installation using setup.py' instructions on the web show
> "./setup.py" as the recommended syntax, not prefaced with "python".
>
> Might be worth a quick edit to specify your preferred syntax on what
> people see on the web, just in case people don't dig into the development
> branch docs for the v4 syntax (which looks ok to me)
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "weewx-development" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to weewx-development+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/weewx-development/9f2a87cc-b2c3-4159-be6a-56bb935a780e%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-development+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-development/CAPq0zEBXOtfiJGwdFLhq80E4a2E-YLKO9crXBm33k7Tbq-DgtQ%40mail.gmail.com.


[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  Priorité  État

* 0/usr/bin/python3.5   2 mode automatique
  1/usr/bin/python2.7   1 mode manuel
  2/usr/bin/python3.5   2 mode manuel

Appuyez sur  pour conserver la valeur par défaut[*] ou choisissez 
le numéro sélectionné :
pi@raspberrypi:~ $

after I want to reinstall everything, and now I have this error !!! 
pi@raspberrypi:~/weewx-4.0.0b6 $ ./setup.py build
Traceback (most recent call last):
  File "./setup.py", line 21, in 
import configobj
ImportError: No module named 'configobj'

I didn't have it with python 2.7 !!!

why, I rebooted my RPi
pi@raspberrypi:~ $ python --version
Python 3.5.3


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.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-development+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-development/58ef8f80-d87e-49f3-800c-677b45c66c32%40googlegroups.com.


[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 last):
>>   File "./setup.py", line 21, in 
>> import configobj
>> ImportError: No module named configobj
>>
>>
>> Any hints?
>>
>
> you might want to be explicit about everything, at least until we get all 
> the dependencies sorted out.  if you 'source' an rc file you may not get 
> what you expect.
>
> there can be a huge difference between this:
>
> ./setup.py install
>
> and this:
>
> python ./setup.py install
>
> i find it best to do this:
>
> python2 ./setup.py install
>
> or, if you want to use python3:
>
> python3 ./setup.py install
>
>

Matthew - the 'installation using setup.py' instructions on the web show 
"./setup.py" as the recommended syntax, not prefaced with "python".

Might be worth a quick edit to specify your preferred syntax on what people 
see on the web, just in case people don't dig into the development branch 
docs for the v4 syntax (which looks ok to me)



-- 
You received this message because you are subscribed to the Google Groups 
"weewx-development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-development+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-development/9f2a87cc-b2c3-4159-be6a-56bb935a780e%40googlegroups.com.


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: File "/home/weewx/bin/weewx/engine.py", 
line 897, in main
CRITICAL weewx.engine:   engine = StdEngine(config_dict)
CRITICAL weewx.engine: File "/home/weewx/bin/weewx/engine.py", 
line 83, in __init__
CRITICAL weewx.engine:   self.loadServices(config_dict)
CRITICAL weewx.engine: File "/home/weewx/bin/weewx/engine.py", 
line 144, in loadServices
CRITICAL weewx.engine:   obj = 
weeutil.weeutil.get_object(svc)(self,config_dict)
CRITICAL weewx.engine: File "/home/weewx/bin/user/owfs.py", 
line 488, in __init__
CRITICAL weewx.engine:   ow.init(self.interface.decode())
CRITICAL weewx.engine: File 
"/usr/lib/python2.7/dist-packages/ow/__init__.py", line 220, in init
CRITICAL weewx.engine:   if not _OW.init( iface ):
CRITICAL weewx.engine:   TypeError: in method 'init', argument 1 of 
type 'char const *'
CRITICAL weewx.engine:   Exiting.

I did try some other things, not getting any further.
Probably this is something for someone with more Python knowledge.

Jaap


Op dinsdag 24 december 2019 01:50:40 UTC+1 schreef Tom Keffer:
>
> I'm just guessing, but you could try to change line 488 in owfs.py from 
> this
>
> ow.init(self.interface)
>
> to this
>
> ow.init(self.interface.encode())
>
> -tk
>
>
> On Mon, Dec 23, 2019 at 3:46 PM Jaap de Munck  > wrote:
>
>> Hello,
>>  
>> No problems with Vantage (Pro) and Weewx 4!
>> But I also have a 1-wire sensor. OWFS isn't Python3 ready yet, so I tried 
>> to do that myself.
>> The result seemed not so bad. It is running on Python3!
>> It's also running on Python2.7: I copied it back to the 'production' 
>> system running weewx 3.9.2.
>> Later the Weewx 4 test environment was switched back to Python2 resulting 
>> in:
>>
>> 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: File 
>> "/home/weewx/bin/weewx/engine.py", line 886, in main
>> CRITICAL weewx.engine:   engine = StdEngine(config_dict)
>> CRITICAL weewx.engine: File 
>> "/home/weewx/bin/weewx/engine.py", line 83, in __init__
>> CRITICAL weewx.engine:   self.loadServices(config_dict)
>> CRITICAL weewx.engine: File 
>> "/home/weewx/bin/weewx/engine.py", line 143, in loadServices
>> CRITICAL weewx.engine:   obj = 
>> weeutil.weeutil.get_object(svc)(self,config_dict)
>> CRITICAL weewx.engine: File "/home/weewx/bin/user/owfs.py", 
>> line 488, in __init__
>> CRITICAL weewx.engine:   ow.init(self.interface)
>> CRITICAL weewx.engine: File 
>> "/usr/lib/python2.7/dist-packages/ow/__init__.py", line 220, in init
>> CRITICAL weewx.engine:   if not _OW.init( iface ):
>> CRITICAL weewx.engine:   TypeError: in method 'init', argument 1 
>> of type 'char const *'
>> CRITICAL weewx.engine:   Exiting.
>>
>> The logging (attached) is from a (virtual) Debian10 environment and 
>> Weewx4 + Simulator driver. But it also occurs with Ubuntu 19.04 and Weewx4 
>> + Vantage driver.
>>
>> Best wishes,
>> Jaap
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "weewx-development" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to weewx-de...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/weewx-development/a160e60b-57fd-444f-bfb2-7bb9fb139366%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-development+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-development/c8b5cef2-7897-413c-945a-bc45414b2482%40googlegroups.com.


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 at 12:07 PM Patrick Tranchant 
wrote:

> 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 (default, Sep 26 2018, 18:42:22*)
> #012[GCC 6.3.0 20170516]
> Jan  2 19:57:02 raspberrypi weewx[5741] INFO weewx.engine: Platform
> Linux-4.14.71-v7+-armv7l-with-debian-9.4
> Jan  2 19:57:02 raspberrypi weewx[5741] INFO weewx.engine: Locale is
> 'fr_FR.UTF-8'
> Jan  2 19:57:02 raspberrypi weewx[5741] INFO weewx.engine: PID file is
> /var/run/weewx.pid
> Jan  2 19:57:02 raspberrypi weewx[5729]: Starting weewx weather system:
> weewx.
> Jan  2 19:57:02 raspberrypi systemd[1]: Started LSB: weewx weather system.
> Jan  2 19:57:02 raspberrypi weewx[5746] INFO weewx.engine: Using
> configuration file /home/weewx/weewx.conf
> Jan  2 19:57:02 raspberrypi weewx[5746] INFO weewx.engine: Loading station
> type Simulator (weewx.drivers.simulator)
>
> I have python 2.7 and python 3.5 installed on my RPi, I can deactived
> python 2.7 for test ?
>
> 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.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to weewx-development+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/weewx-development/05cedf4d-2ca3-4af7-b473-de8b2a4c87a0%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-development+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-development/CAPq0zECSthdh%2B%3Dez-runjwbZs0SsaQrTwnsjkETUrXbdNrfZrQ%40mail.gmail.com.


[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
   

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-development+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-development/7416f9fa-4f18-4676-8a78-277a67956a23%40googlegroups.com.


[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 (default, Sep 26 2018, 18:42:22*) 
#012[GCC 6.3.0 20170516]
Jan  2 19:57:02 raspberrypi weewx[5741] INFO weewx.engine: Platform 
Linux-4.14.71-v7+-armv7l-with-debian-9.4
Jan  2 19:57:02 raspberrypi weewx[5741] INFO weewx.engine: Locale is 
'fr_FR.UTF-8'
Jan  2 19:57:02 raspberrypi weewx[5741] INFO weewx.engine: PID file is 
/var/run/weewx.pid
Jan  2 19:57:02 raspberrypi weewx[5729]: Starting weewx weather system: 
weewx.
Jan  2 19:57:02 raspberrypi systemd[1]: Started LSB: weewx weather system.
Jan  2 19:57:02 raspberrypi weewx[5746] INFO weewx.engine: Using 
configuration file /home/weewx/weewx.conf
Jan  2 19:57:02 raspberrypi weewx[5746] INFO weewx.engine: Loading station 
type Simulator (weewx.drivers.simulator)

I have python 2.7 and python 3.5 installed on my RPi, I can deactived 
python 2.7 for test ?

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.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-development+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-development/05cedf4d-2ca3-4af7-b473-de8b2a4c87a0%40googlegroups.com.


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.
> 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 the --user option to 'pip
> install'
>
> none of those are particularly user-friendly.
>
> since weewx has minimal requirements, the docs use instructions that
> result in modification of the system's python installation.  typically that
> mean 'sudo pip install xxx'.  but on some systems you would have to first
> install pip, or you would have to use easy_install.
>
> i think we can continue this pattern - use the system's python - instead
> of complicating things for weewx users.  but only if we can keep the weewx
> dependencies to a minimum.
>
> --
> You received this message because you are subscribed to the Google Groups
> "weewx-development" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to weewx-development+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/weewx-development/37665692-184e-4087-b31a-198e618d7336%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-development+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-development/CAPq0zEAvQxw7DMDZHZR6zN4cSRb%2BaWuR35YWWjv8cF-3Cdsj%2BA%40mail.gmail.com.


[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 the --user option to 'pip 
install'

none of those are particularly user-friendly.

since weewx has minimal requirements, the docs use instructions that result 
in modification of the system's python installation.  typically that mean 
'sudo pip install xxx'.  but on some systems you would have to first 
install pip, or you would have to use easy_install.

i think we can continue this pattern - use the system's python - instead of 
complicating things for weewx users.  but only if we can keep the weewx 
dependencies to a minimum.

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-development+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-development/37665692-184e-4087-b31a-198e618d7336%40googlegroups.com.


[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
> ImportError: No module named configobj
>
>
> Any hints?
>

you might want to be explicit about everything, at least until we get all 
the dependencies sorted out.  if you 'source' an rc file you may not get 
what you expect.

there can be a huge difference between this:

./setup.py install

and this:

python ./setup.py install

i find it best to do this:

python2 ./setup.py install

or, if you want to use python3:

python3 ./setup.py install

then be sure that you do not mix!  when you do an 'install' using setup.py, 
the shebang line in every entry point in weewx is modified to use the 
python with which you invoked it.  since some python installations are 
python2 and others are python3, it may not be obvious which one you'll get 
when you just do 'python'.  also, it gets even more complicated if you have 
multiple instances of python on the system and they were built to use 
shared libraries (i think that is the default?).  then the LD_LIBRARY_PATH 
also affects which python you'll end up getting.

m 

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-development+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-development/d9c7dbba-3bf7-46c6-b0a0-e42fb3377d3b%40googlegroups.com.


[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 install python3-configobj
sudo apt-get install python3-cheetah
sudo apt-get install python3-ephem


after that I added the follwoing to .bashrc

alias python='/usr/bin/python3'
alias pip=pip3

followed by

source ~/.bashrc

I can see now:

pi@Weewx:~ $ python -V
Python 3.7.3
pi@Weewx:~ $ pip --version
pip 18.1 from /usr/lib/python3/dist-packages/pip (python 3.7)

So this should be correct.

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
ImportError: No module named configobj


Any hints?

Br,
Johannes

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-development+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-development/66891750-2441-49fb-ac97-09d61bf57bbd%40googlegroups.com.


[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_versions/
>
> -tk
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-development+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-development/92bbdcb9-685c-4143-bf5d-4fa10baf148e%40googlegroups.com.


[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 this message because you are subscribed to the Google Groups 
"weewx-development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-development+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-development/c891070f-6536-4ec0-9b21-2f3c77c44457%40googlegroups.com.


[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 to just wait until the v4 version 
comes out in a packaged version.

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-development+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-development/640985e4-75e8-47bf-a31f-726bf289dbdc%40googlegroups.com.


[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 message because you are subscribed to the Google Groups 
"weewx-development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-development+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-development/10454826-6665-41f7-8223-b8c5a3d26cbe%40googlegroups.com.


[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.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-development+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-development/201bb9da-7802-4efe-a675-7646968086c2%40googlegroups.com.


[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
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-development+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-development/5bf13891-607c-4298-9500-4501457952e7%40googlegroups.com.


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:

>
> 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-development" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to weewx-development+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/weewx-development/4e9f5ef6-9c26-48c4-8238-26b6bd968b68%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-development+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-development/CAPq0zEAqE%2BDygUOa8r1FOwtFKu535S5sJTS3GyZZ_yNrEOw5mw%40mail.gmail.com.


[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-development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-development+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-development/4e9f5ef6-9c26-48c4-8238-26b6bd968b68%40googlegroups.com.