...
File "/home/weewx/_base/bin/weewx/units.py", line 1190, in convert conversion_func = conversionDict[val_t[1]][target_unit_type]KeyError: 'km'
DEBUG weewx.units: Unable to convert from meter to km
--
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-developm...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-development/df802b4a-2833-4536-8133-797987f5e4cf%40googlegroups.com.
... is up. In the usual spot. http://weewx.com/downloads/development_versions/
root@debian:/home/src/weewx-4.0.0b6# service weewx start[....] Starting weewx weather system: weewxTraceback (most recent call last):File "/home/weewx/bin/weewxd", line 16, in <module>import weewx.engineFile "/home/weewx/bin/weewx/engine.py", line 30, in <module>import weewx.accumFile "/home/weewx/bin/weewx/accum.py", line 95, in <module>defaults_dict = configobj.ConfigObj(StringIO(DEFAULTS_INI), encoding='utf-8')File "/usr/lib/python2.7/dist-packages/configobj.py", line 1230, in __init__self._load(infile, configspec)File "/usr/lib/python2.7/dist-packages/configobj.py", line 1290, in _loadinfile = self._handle_bom(infile)File "/usr/lib/python2.7/dist-packages/configobj.py", line 1430, in _handle_bomif not line.startswith(BOM):UnicodeDecodeError: 'ascii' codec can't decode byte 0xef in position 0: ordinal not in range(128)failed!
On Monday, December 30, 2019 at 1:28:50 PM UTC-8, Tom Keffer wrote:... is up. In the usual spot. http://weewx.com/downloads/development_versions/Does b6 have a minimum python version ?
File "/usr/lib/python2.7/dist-packages/configobj.py", line 1430, in _handle_bomif not line.startswith(BOM):UnicodeDecodeError: 'ascii' codec can't decode byte 0xef in position 0: ordinal not in range(128)failed!
i am seeing the same exception, in the same place. but with python 2.6 (i know, we are only going to support python 2.7, but its an old system and i cannot update python on it)
I'm running fine with 4.0.0b5 and the newest version of the Ultimeter driver on two different RPi4 stations. Knowing just enough unix & python to be dangerous, I thought maybe I should clarify a few things before using Vince's script to update to beta 6.
python -c "import configobj; print(configobj.__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-developm...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-development/c71931fd-e57d-4f7d-94ec-60648a934f98%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-de...@googlegroups.com.
Not sure what the problem is. Are you two using an old version of configobj? That could do it. Trypython -c "import configobj; print(configobj.__version__)"
It was relatively painless to convert/upgrade my python code to 3.7. A few stumbles as the great internet has many wrong examples and "solutions". For instance trying to install pyehem - what worked is sudo pip3 install ephem
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-developm...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-development/a7445948-6163-47d6-ad1b-5ec25e46e27b%40googlegroups.com.
Mine's python 2.7.3 and configobj 4.7.2
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-development/a7445948-6163-47d6-ad1b-5ec25e46e27b%40googlegroups.com.
Mine's python 2.7.3 and configobj 4.7.2Does the problem go away if you upgrade configobj to the current version, 5.0.6?
Working on upgrading to python3 but need to rebuild it all after installing a newer openssl from sources (sigh) because there's no way to get 'there' either otherwise, so I can eventually 'pip3 install' all the python modules I'll need to try it again under python3. Given it taking 5 hours to get through a make test+build+install the first time, this might take a while.....
Thanks, Cameron1. Can you post the log where this happened?2. Conversion from meter to km was never possible. Meter is a member of group_altitude, and km is a member of group_distance. Can you give me the context where this happened?-tk
On Tue, Dec 31, 2019 at 12:53 AM Cameron D <Cgo...@davidsoncj.id.au> wrote:
I have just started messing around with the beta 4 code.--1. the WMR300 driver seems to be basically working, both standalone under python3 and as part of weewx to a new sqlite db. There is one small problem - it is not reading the history from the console because there is no time to which data was previously stored. It's only a once-off problem but I'll see if there's an easy fix. Once the database has a "last time" then the read history works as expected. I would expect the bug is also present in the old version.2. My system was based on METRICWX - If I configure v4 for that then it raises a KeyError exception:...
File "/home/weewx/_base/bin/weewx/units.py", line 1190, in convertconversion_func = conversionDict[val_t[1]][target_unit_type]KeyError: 'km'and the log file reports:DEBUG weewx.units: Unable to convert from meter to kmUsing METRIC seems to work fine.Happy to provide more logs if necessary.
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 unsubscribe from this group and stop receiving emails from it, send an email to weewx-developm...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-development/9bcb976a-af3e-4cb5-8854-08262a0508b7%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-developm...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-development/775a2da5-5f18-4848-8ff4-0b0af20b1b7c%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-developm...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-development/f55b6216-a9ec-42d2-b9f6-e1230502498b%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-developm...@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.
I done this commandpi@rpi-bureau:~/weewx-4.0.0b6/bin $ weewxd --version
3.8.2
it is normal ?
sudo apt-get install python3-pil
sudo apt-get install python3-configobj
sudo apt-get install python3-cheetah
sudo apt-get install python3-ephem
alias python='/usr/bin/python3'alias pip=pip3source ~/.bashrcpi@Weewx:~ $ python -V
Python 3.7.3
pi@Weewx:~ $ pip --version
pip 18.1 from /usr/lib/python3/dist-packages/pip (python 3.7)pi@Weewx:~/weewx-4.0.0b6 $ ./setup.py build
Traceback (most recent call last):
File "./setup.py", line 21, in <module>
import configobj
ImportError: No module named configobjThen 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 <module>
import configobj
ImportError: No module named configobjAny hints?
--
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-developm...@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.
I have python 2.7 and python 3.5 installed on my RPi, I can deactived python 2.7 for test ?
--
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-developm...@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.
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 <module>
import configobj
ImportError: No module named configobjAny 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 installand this:python ./setup.py installi find it best to do this:python2 ./setup.py installor, if you want to use python3:python3 ./setup.py install
--
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-developm...@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.
The instructions that come with V4 invokes setup.py with an explicit call to python.
--
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-developm...@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.
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?
./setup.py build
sudo ./setup.py install
To:
python setup.py build
sudo python setup.py install
Basically to reinforce best practices as Matthew mentioned earlier.
Always specify the python you want to use.
But no biggie either way. Thanks.
I have just started messing around with the beta 4 code.1. the WMR300 driver seems to be basically working, both standalone under python3 and as part of weewx to a new sqlite db. There is one small problem - it is not reading the history from the console because there is no time to which data was previously stored. It's only a once-off problem but I'll see if there's an easy fix. Once the database has a "last time" then the read history works as expected. I would expect the bug is also present in the old version.
thanks
can you give me URL of wiki ?
patrick
--
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-developm...@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.
thanks
can you give me URL of wiki ?
patrick
Le 03/01/2020 à 00:52, Cameron D a écrit :
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:
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.
ok CameronI follow your procedure, and it is ok for installationI choose "Simulator" in weewx.conf for test; and it is ok but I have this errors message in syslog
...
Jan 3 11:57:22 raspberrypi weewx[2332] ERROR weewx.reportengine: **** File "/home/weewx/bin/user/belchertown_highchartsSearchX.py", line 460, in get_extension_list
Jan 3 11:57:22 raspberrypi weewx[2332] ERROR weewx.reportengine: **** rain_count = rain_count + rain
Jan 3 11:57:22 raspberrypi weewx[2332] ERROR weewx.reportengine: **** TypeError: unsupported operand type(s) for +: 'int' and 'NoneType'
Jan 3 11:57:22 raspberrypi weewx[2332] ERROR weewx.reportengine: **** Generator terminated
I run my current 3.8.0 in a docker container, any plans on creating a docker image? That would be way cool!