bakerkj / weewx-purpleair

WeeWx Extension to pull data from the local interface of a Purple Air air quality sensor
GNU General Public License v2.0
17 stars 11 forks source link

Error restarting weewx #14

Closed mash55 closed 3 years ago

mash55 commented 3 years ago

Running the latest version of weewx (4.2) on a raspberry pi with Python 2.7.13 and Python 3.5.3. Installed pre-requisite, cloned repository and installed extension without errors. Restarting weewx results in the following error:

Dec 23 10:50:51 nimbus python2[24216]: weewx[24216] CRITICAL main: File "/usr/share/weewx/weewx/engine.py", line 81, in init Dec 23 10:50:51 nimbus python2[24216]: weewx[24216] CRITICAL main: self.loadServices(config_dict) Dec 23 10:50:51 nimbus python2[24216]: weewx[24216] CRITICAL main: File "/usr/share/weewx/weewx/engine.py", line 153, in loadServices Dec 23 10:50:51 nimbus python2[24216]: weewx[24216] CRITICAL main: obj = weeutil.weeutil.get_object(svc)(self, config_dict) Dec 23 10:50:51 nimbus python2[24216]: weewx[24216] CRITICAL main: File "/usr/share/weewx/weeutil/weeutil.py", line 1093, in get_object Dec 23 10:50:51 nimbus python2[24216]: weewx[24216] CRITICAL main: mod = import(module) Dec 23 10:50:51 nimbus python2[24216]: weewx[24216] CRITICAL main: File "/usr/share/weewx/user/purpleair.py", line 58, in Dec 23 10:50:51 nimbus python2[24216]: weewx[24216] CRITICAL main: import requests Dec 23 10:50:51 nimbus python2[24216]: weewx[24216] CRITICAL main: ImportError: No module named requests Dec 23 10:50:51 nimbus python2[24216]: weewx[24216] CRITICAL main: Exiting.

Appreciate any help...

mash55 commented 3 years ago

SOLVED: Enthought 'pip install requests' does a lot of things, I had to use 'apt install' to get it up and running.

bakerkj commented 3 years ago

@mash55 glad you solved it.