Upgrade to 4.1.1 landed me with a big problem

151 views
Skip to first unread message

J.L. Blom

unread,
Jul 14, 2020, 9:55:02 AM7/14/20
to weewx-user
I upgrade yesterday finally to version 4.1.1 coming from 3.8.2 and ended
in total disaster. Weewx doesn't work anymore (after > 5 years working
flawlessly).
The log (rather long says:
_________________________________________________________________
Jul 14 14:01:00 kangoo weewx[417] INFO __main__: Initializing weewx
version 4.1.1
Jul 14 14:01:00 kangoo weewx[417] INFO __main__: Using Python 3.5.3
(default, Sep 27 2018, 17:25:39) #012[GCC 6.3.0 20170516]
Jul 14 14:01:00 kangoo weewx[417] INFO __main__: Platform
Linux-4.19.66-v7+-armv7l-with-debian-9.11
Jul 14 14:01:00 kangoo weewx[417] INFO __main__: Locale is 'en_GB.UTF-8'
Jul 14 14:01:00 kangoo weewx[417] INFO __main__: PID file is
/var/run/weewx.pid
Jul 14 14:01:01 kangoo weewx[423] INFO __main__: Using configuration
file /home/weewx/weewx.conf
Jul 14 14:01:01 kangoo weewx[423] INFO __main__: Debug is 1
Jul 14 14:01:01 kangoo weewx[303]: Starting weewx weather system: weewx.
Jul 14 14:01:01 kangoo weewx[423] DEBUG __main__: Initializing engine
Jul 14 14:01:01 kangoo weewx[423] INFO weewx.engine: Loading station
type Vantage (weewx.drivers.vantage)
Jul 14 14:01:01 kangoo weewx[423] DEBUG weewx.drivers.vantage: Driver
version is 3.2.1
Jul 14 14:01:01 kangoo weewx[423] DEBUG weewx.drivers.vantage: Opened up
serial port /dev/ttyUSB0; baud 19200; timeout 4.00
Jul 14 14:01:03 kangoo weewx[423] ERROR weewx.drivers.vantage:
SerialException on read.
Jul 14 14:01:03 kangoo weewx[423] ERROR weewx.drivers.vantage: ****
read failed: device reports readiness to read but returned no data
(device disconnected or multiple access on port?)
Jul 14 14:01:03 kangoo weewx[423] ERROR weewx.drivers.vantage: ****
Is there a competing process running??
Jul 14 14:01:03 kangoo weewx[423] DEBUG weewx.drivers.vantage: Retry #0
failed
Jul 14 14:01:03 kangoo weewx[423] ERROR weewx.drivers.vantage:
SerialException on read.
Jul 14 14:01:03 kangoo weewx[423] ERROR weewx.drivers.vantage: ****
read failed: device reports readiness to read but returned no data
(device disconnected or multiple access on port?)
Jul 14 14:01:03 kangoo weewx[423] ERROR weewx.drivers.vantage: ****
Is there a competing process running??
Jul 14 14:01:03 kangoo weewx[423] DEBUG weewx.drivers.vantage: Retry #1
failed
Jul 14 14:01:03 kangoo weewx[423] DEBUG weewx.drivers.vantage: Gentle
wake up of console successful
Jul 14 14:01:07 kangoo weewx[423] ERROR weewx.drivers.vantage:
SerialException on read.
Jul 14 14:01:07 kangoo weewx[423] ERROR weewx.drivers.vantage: ****
read failed: device reports readiness to read but returned no data
(device disconnected or multiple access on port?)
Jul 14 14:01:07 kangoo weewx[423] ERROR weewx.drivers.vantage: ****
Is there a competing process running??
Jul 14 14:01:07 kangoo weewx[423] ERROR weewx.drivers.vantage:
_determine_hardware; retry #0: 'read failed: device reports readiness to
read but returned no data (device disconnected or multiple access on port?)'
Jul 14 14:01:07 kangoo weewx[423] ERROR weewx.drivers.vantage:
SerialException on read.
Jul 14 14:01:07 kangoo weewx[423] ERROR weewx.drivers.vantage: ****
read failed: device reports readiness to read but returned no data
(device disconnected or multiple access on port?)
Jul 14 14:01:07 kangoo weewx[423] ERROR weewx.drivers.vantage: ****
Is there a competing process running??
Jul 14 14:01:07 kangoo weewx[423] ERROR weewx.drivers.vantage:
_determine_hardware; retry #1: 'read failed: device reports readiness to
read but returned no data (device disconnected or multiple access on port?)'
Jul 14 14:01:07 kangoo weewx[423] ERROR weewx.drivers.vantage:
SerialException on read.
Jul 14 14:01:07 kangoo weewx[423] ERROR weewx.drivers.vantage: ****
read failed: device reports readiness to read but returned no data
(device disconnected or multiple access on port?)
Jul 14 14:01:07 kangoo weewx[423] ERROR weewx.drivers.vantage: ****
Is there a competing process running??
Jul 14 14:01:07 kangoo weewx[423] ERROR weewx.drivers.vantage:
_determine_hardware; retry #2: 'read failed: device reports readiness to
read but returned no data (device disconnected or multiple access on port?)'
Jul 14 14:01:07 kangoo weewx[423] ERROR weewx.drivers.vantage:
SerialException on read.
Jul 14 14:01:07 kangoo weewx[423] ERROR weewx.drivers.vantage: ****
read failed: device reports readiness to read but returned no data
(device disconnected or multiple access on port?)
Jul 14 14:01:07 kangoo weewx[423] ERROR weewx.drivers.vantage: ****
Is there a competing process running??
Jul 14 14:01:07 kangoo weewx[423] ERROR weewx.drivers.vantage:
_determine_hardware; retry #3: 'read failed: device reports readiness to
read but returned no data (device disconnected or multiple access on port?)'
Jul 14 14:01:07 kangoo weewx[423] ERROR weewx.drivers.vantage: Unable to
read hardware type; raise WeeWxIOError
Jul 14 14:01:07 kangoo weewx[423] ERROR weewx.engine: Import of driver
failed: Unable to read hardware type (<class 'weewx.WeeWxIOError'>)
Jul 14 14:01:07 kangoo weewx[423] CRITICAL weewx.engine: ****
Traceback (most recent call last):
Jul 14 14:01:07 kangoo weewx[423] CRITICAL weewx.engine: ****
File "/home/weewx/bin/weewx/engine.py", line 103, in setupStation
Jul 14 14:01:07 kangoo weewx[423] CRITICAL weewx.engine: ****
self.console = loader_function(config_dict, self)
Jul 14 14:01:07 kangoo weewx[423] CRITICAL weewx.engine: ****
File "/home/weewx/bin/weewx/drivers/vantage.py", line 39, in loader
Jul 14 14:01:07 kangoo weewx[423] CRITICAL weewx.engine: ****
return VantageService(engine, config_dict)
Jul 14 14:01:07 kangoo weewx[423] CRITICAL weewx.engine: ****
File "/home/weewx/bin/weewx/drivers/vantage.py", line 1897, in __init__
Jul 14 14:01:07 kangoo weewx[423] CRITICAL weewx.engine: ****
Vantage.__init__(self, **config_dict[DRIVER_NAME])
Jul 14 14:01:07 kangoo weewx[423] CRITICAL weewx.engine: ****
File "/home/weewx/bin/weewx/drivers/vantage.py", line 514, in __init__
Jul 14 14:01:07 kangoo weewx[423] CRITICAL weewx.engine: ****
self._setup()
Jul 14 14:01:07 kangoo weewx[423] CRITICAL weewx.engine: ****
File "/home/weewx/bin/weewx/drivers/vantage.py", line 1320, in _setup
Jul 14 14:01:07 kangoo weewx[423] CRITICAL weewx.engine: ****
self.hardware_type = self._determine_hardware()
Jul 14 14:01:07 kangoo weewx[423] CRITICAL weewx.engine: ****
File "/home/weewx/bin/weewx/drivers/vantage.py", line 1311, in
_determine_hardware
Jul 14 14:01:07 kangoo weewx[423] CRITICAL weewx.engine: ****
raise weewx.WeeWxIOError("Unable to read hardware type")
Jul 14 14:01:07 kangoo weewx[423] CRITICAL weewx.engine: ****
weewx.WeeWxIOError: Unable to read hardware type
Jul 14 14:01:07 kangoo weewx[423] CRITICAL __main__: Unable to load
driver: Unable to read hardware type
Jul 14 14:01:07 kangoo weewx[423] CRITICAL __main__: **** Exiting...
Jul 14 14:05:54 kangoo weewx[1081]: Stopping weewx weather system: weewx
not running....
Jul 14 14:06:05 kangoo weewx[1139] INFO __main__: Initializing weewx
version 4.1.1
Jul 14 14:06:05 kangoo weewx[1139] INFO __main__: Using Python 3.5.3
(default, Sep 27 2018, 17:25:39) #012[GCC 6.3.0 20170516]
Jul 14 14:06:05 kangoo weewx[1139] INFO __main__: Platform
Linux-4.19.66-v7+-armv7l-with-debian-9.11
Jul 14 14:06:05 kangoo weewx[1139] INFO __main__: Locale is 'en_GB.UTF-8'
Jul 14 14:06:05 kangoo weewx[1139] INFO __main__: PID file is
/var/run/weewx.pid
Jul 14 14:06:05 kangoo weewx[1144] INFO __main__: Using configuration
file /home/weewx/weewx.conf
Jul 14 14:06:05 kangoo weewx[1144] INFO __main__: Debug is 1
______________________________________________________________________
I haven't programmed in the last 3 years and most of my programming
skills are with FORTRAN an PASCAL ( so you see I'm a rather old user &
programmer). But weewx is used 24/7 and indispensable for me and several
other users therefore I hope somebody can help me out.
One question is do I have to remove all old weewx files except the ,sdb
files and reload the version of weewx also or can I reinstall using the
recently loaded installation file.
Technical background:
Weewx runs on an old raspberry pi, the weather-station is a Vantage Pro
and the network and all systems are Linux (Ubuntu).

Tom Keffer

unread,
Jul 14, 2020, 10:33:44 AM7/14/20
to weewx-user
As the message says, do you have a competing process running? 

Try running the command

lsof /dev/ttyUSB0

to identify all programs claiming your serial interface.



--
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 weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/79461f0e-b1c5-61a7-631d-d0e6bef20cb5%40gmail.com.

J.L. Blom

unread,
Jul 17, 2020, 6:58:58 AM7/17/20
to weewx-user
On 15-07-2020 02:19, Tom Keffer wrote:
> Try
>
> *sudo lsof /dev/ttyUSB0*
>
> -tk
>
Well I've tried a lot of things but I think there is somewhere a
programming error (or error in the config file) as whene trying to run
weewxd th following is the result:
_________________________________________
NFO __main__: Initializing weewx version 4.1.1
Jul 17 12:06:08 kangoo weewx[20549] INFO __main__: Using Python 2.7.13
(default, Sep 26 2018, 18:42:22) #012[GCC 6.3.0 20170516]
Jul 17 12:06:08 kangoo weewx[20549] INFO __main__: Platform
Linux-4.19.66-v7+-armv7l-with-debian-9.11
Jul 17 12:06:08 kangoo weewx[20549] INFO __main__: Locale is
'LC_CTYPE=en_GB.UTF-8;LC_NUMERIC=nl_NL.UTF-8;LC_TIME=nl_NL.UTF-8;LC_COLLATE=en_GB.UTF-8;LC_MONETARY=nl_NL.UTF-8;LC_MESSAGES=en_GB.UTF-8;LC_PAPER=nl_NL.UTF-8;LC_NAME=nl_NL.UTF-8;LC_ADDRESS=nl_NL.UTF-8;LC_TELEPHONE=nl_NL.UTF-8;LC_MEASUREMENT=nl_NL.UTF-8;LC_IDENTIFICATION=nl_NL.UTF-8'
Jul 17 12:06:08 kangoo weewx[20549] INFO __main__: Using configuration
file /home/joep/Downloads/weewx-4.1.1/weewx.conf
Jul 17 12:06:08 kangoo weewx[20549] INFO __main__: Debug is 0
Jul 17 12:06:08 kangoo weewx[20549] CRITICAL __main__: Caught
unrecoverable exception:
Jul 17 12:06:08 kangoo weewx[20549] CRITICAL __main__:     ****
u'unspecified'
Jul 17 12:06:08 kangoo weewx[20549] CRITICAL __main__:     ****
Traceback (most recent call last):
Jul 17 12:06:08 kangoo weewx[20549] CRITICAL __main__:     **** File
"./bin/weewxd", line 148, in main
Jul 17 12:06:08 kangoo weewx[20549] CRITICAL __main__:     **** engine =
weewx.engine.StdEngine(config_dict)
Jul 17 12:06:08 kangoo weewx[20549] CRITICAL __main__:     **** File
"/home/joep/Downloads/weewx-4.1.1/bin/weewx/engine.py", line 69, in __init__
Jul 17 12:06:08 kangoo weewx[20549] CRITICAL __main__:     ****
self.setupStation(config_dict)
Jul 17 12:06:08 kangoo weewx[20549] CRITICAL __main__:     **** File
"/home/joep/Downloads/weewx-4.1.1/bin/weewx/engine.py", line 87, in
setupStation
Jul 17 12:06:08 kangoo weewx[20549] CRITICAL __main__:     **** driver =
config_dict[station_type]['driver']
Jul 17 12:06:08 kangoo weewx[20549] CRITICAL __main__:     **** File
"/usr/lib/python2.7/dist-packages/configobj.py", line 554, in __getitem__
Jul 17 12:06:08 kangoo weewx[20549] CRITICAL __main__:     **** val =
dict.__getitem__(self, key)
Jul 17 12:06:08 kangoo weewx[20549] CRITICAL __main__:     ****
KeyError: u'unspecified'
Jul 17 12:06:08 kangoo weewx[20549] CRITICAL __main__:     **** Exiting.
__________________________________________________________
In the configobj.py routine some variable is unspecified meaning it
isn't available where it is expected so wonder is this a program error a
config file error or a compile error and what is the best way to solve
it. Is recompilation the best solution and what do I have to remove
before compiling as many subroutines are recompiled but others not. (You
can see I'm not very familiar with Python).
Joep

Tom Keffer

unread,
Jul 17, 2020, 8:03:06 AM7/17/20
to weewx-user
The station type is not specified in your weewx.conf file. Looking at your stack trace, it appears that you are trying to run weewx directly from the download directory without installing first. Hence, it does not know what kind of station you have.

If you are using the setup.py install method, make sure you follow the install directions.

-tk

--
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 weewx-user+...@googlegroups.com.

Tom Keffer

unread,
Jul 17, 2020, 11:24:40 AM7/17/20
to weewx-user
No. Forecast does not automatically update.

You will have to download the latest version. Basically, just reinstall, following the directions on the wiki: https://github.com/weewx/weewx/wiki/forecasting

On Fri, Jul 17, 2020 at 8:13 AM J.L. Blom <jloui...@gmail.com> wrote:
On 17-07-2020 16:39, Tom Keffer wrote:
> Your copy of forecast is an old one. It has not been upgraded to Python 3.
>
> On Fri, Jul 17, 2020 at 7:20 AM J.L. Blom <jloui...@gmail.com
> <mailto:jloui...@gmail.com>> wrote:
>
>     On 17-07-2020 15:45, Tom Keffer wrote:
>     > You are still trying to run the version in the Downloads folder.
>     >
>     Tom,
>     Thanks, yes I saw that also but running van the installed
>     directory he
>     gave another error with the forecast module:
>     ______________________
>     /home/weewx# sudo ./bin/weewxd

>     Traceback (most recent call last):
>        File "./bin/weewxd", line 261, in <module>
>          main()

>        File "./bin/weewxd", line 148, in main
>          engine = weewx.engine.StdEngine(config_dict)
>        File "/home/weewx/bin/weewx/engine.py", line 75, in __init__
>          self.loadServices(config_dict)
>        File "/home/weewx/bin/weewx/engine.py", line 138, in loadServices
>          obj = weeutil.weeutil.get_object(svc)(self,config_dict)
>        File "/home/weewx/bin/weeutil/weeutil.py", line 1093, in get_object
>          mod = __import__(module)
>        File "/home/weewx/bin/user/forecast.py", line 495
>          except OSError, e:
>                        ^
>     SyntaxError: invalid syntax
>     _________________________________
>     And the only thing I can understand that the forecast unit is in
>     error.
>     It is recently compiled (actually last monday) so that is not
>     outdated
>     but the error I don't understand.
>
I didn't know that. But does it mean I have to update it from the site?
I thought it automatically came with the new version.
(sorry I was a little slow: social obligations!).
Joep

Reply all
Reply to author
Forward
0 new messages