Raspbian Stretch
Python v2.7, v3.5, v3.8.3
Default (for root) v3.8.3
Raspberry Pi  2 Model B
WeeWX v4.1.1

Following WeeWX using setup.py
used "sudo ./bin/weewxd" from inside the /home/weewx directory.
had some problems loading the following - 
sudo apt update 
 # Required 
sudo apt install python3-distutils - *pi@raspberrypi:/ $ sudo apt install 
python3-distutils*
*Reading package lists... Done*
*Building dependency tree       *
*Reading state information... Done*
*E: Unable to locate package python3-distutils*
I was able to download and install "python-distutils-extra" from Debian.  
Could not download "python3-distutils-extra_2.40_all.deb."

sudo apt install python3-configobj  -Loaded without issue
 sudo apt install python3-pil - Loaded without issue
sudo apt install python3-serial - Loaded without issue
sudo apt install python3-usb - Loaded without issue
sudo apt install python3-pip - Loaded without issue
sudo pip3 install cheetah3 - Loaded without issue
 # Optional: for extended almanac information 
sudo apt install python3-ephem - Loaded with out issue
 # Required if you are using MySQL (MariaDB): 
sudo apt install mysql-client - Did not install by choice
sudo apt install python3-mysqldb  - Did not install by choice

When I run the start command (as above and as below) I got :
pi@raspberrypi:/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 69, in __init__
    self.setupStation(config_dict)
  File "/home/weewx/bin/weewx/engine.py", line 87, in setupStation
    driver = config_dict[station_type]['driver']
  File "/usr/lib/python2.7/dist-packages/configobj.py", line 554, in 
__getitem__
    val = dict.__getitem__(self, key)
KeyError: u'unspecified'

Checking the syslog -
pi@raspberrypi:/ $ sudo tail -f /var/log/syslog
Jul 11 14:04:26 raspberrypi weewx[941] CRITICAL __main__:     ****    File 
"./bin/weewxd", line 148, in main
Jul 11 14:04:26 raspberrypi weewx[941] CRITICAL __main__:     ****      
engine = weewx.engine.StdEngine(config_dict)
Jul 11 14:04:26 raspberrypi weewx[941] CRITICAL __main__:     ****    File 
"/home/weewx/bin/weewx/engine.py", line 69, in __init__
Jul 11 14:04:26 raspberrypi weewx[941] CRITICAL __main__:     ****      
self.setupStation(config_dict)
Jul 11 14:04:26 raspberrypi weewx[941] CRITICAL __main__:     ****    File 
"/home/weewx/bin/weewx/engine.py", line 87, in setupStation
Jul 11 14:04:26 raspberrypi weewx[941] CRITICAL __main__:     ****      
driver = config_dict[station_type]['driver']
Jul 11 14:04:26 raspberrypi weewx[941] CRITICAL __main__:     ****    File 
"/usr/lib/python2.7/dist-packages/configobj.py", line 554, in __getitem__
Jul 11 14:04:26 raspberrypi weewx[941] CRITICAL __main__:     ****      val 
= dict.__getitem__(self, key)
Jul 11 14:04:26 raspberrypi weewx[941] CRITICAL __main__:     ****  
KeyError: u'unspecified'
Jul 11 14:04:26 raspberrypi weewx[941] CRITICAL __main__:     ****  Exiting.

It appears that the python-configobj is the problem. It appears to think 
that it should be a version for Python2.7.

In checking the file structure, I find that I have:
/home/weewx
/var/run/weewx.pid 
 /var/log/syslog

Based on this it looks like the install just dumped it all into the 
/home/weewx folder as all the other "required" folders are there.

Suggestions appreciated.

TIA - Michael

-- 
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/36322a19-72f6-4136-b62f-77c8336884dfn%40googlegroups.com.

Reply via email to