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

--
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/ffa3be32-ae94-c6a7-1bae-22ffe03ffb71%40gmail.com.

Reply via email to