|
Post by phuc0208 on Apr 21, 2019 23:57:59 GMT -8
Hello,
We have a GroveWeatherPi kit (no solar panel add-on) that we trying to install at our school in Vietnam.
We have followed tutorial instructions up to part 11 (but we were a bit confused about the last part about apscheduler)
When we follow the instructions for the beginning of part 12, we get stuck.
Here's the error:
sudo python GroveWeatherPi.py
Traceback (most recent call last):
File "GroveWeatherPi.py", line 64, in <module>
from apscheduler.schedulers.background import BackgroundScheduler
ImportError: No module named apscheduler.schedulers.background
Can you help us please!
TIA
|
|
|
Post by SDL on Apr 22, 2019 8:41:27 GMT -8
What version of GWP software are you running? Make sure you have the latest version. github.com/switchdoclabs/SDL_Pi_GroveWeatherPiWhat version of Apscheduler are you using? Make sure you have the latest version. What version of the Raspberry Pi Operating system are you using? Run cat /etc/os-release Please post this information. BP
|
|
|
Post by phuc0208 on May 5, 2019 23:54:32 GMT -8
What version of GWP software are you running? Make sure you have the latest version. github.com/switchdoclabs/SDL_Pi_GroveWeatherPi
What version of Apscheduler are you using? Make sure you have the latest version. We reinstall use the Apscheduler 3.6.0 What version of the Raspberry Pi Operating system are you using? Run cat /etc/os-release We use the version 9 rasbian Pi sofware
|
|
|
Post by phuc0208 on May 5, 2019 23:55:44 GMT -8
PS:After that we try the code on python 2 and there is an problem: >>>>>>>>>>>>>>>>>>><<<<<<<<<<< TCA9545 I2C Mux Not Present >>>>>>>>>>>>>>>>>>><<<<<<<<<<< Rain Interrupt Service Routine
Traceback (most recent call last): File "/home/pi/SDL_Pi_GroveWeatherPi/GroveWeatherPi.py", line 274, in <module> weatherStation = SDL_Pi_WeatherRack.SDL_Pi_WeatherRack(anemometerPin, rainPin, 0,0, SDL_MODE_I2C_ADS1015) File "./SDL_Pi_WeatherRack/SDL_Pi_WeatherRack.py", line 200, in __init__ self.ads1015 = ADS1x15(ic=ADS1015, address=0x48) File "./SDL_Adafruit_ADS1x15/SDL_Adafruit_ADS1x15.py", line 138, in __init__ self.i2c = Adafruit_I2C(address) File "./SDL_Adafruit_ADS1x15/Adafruit_I2C.py", line 43, in __init__ self.bus = smbus.SMBus(busnum if busnum >= 0 else Adafruit_I2C.getPiI2CBusNumber()) IOError: [Errno 2] No such file or directory >>>
|
|
|
Post by SDL on May 6, 2019 15:41:26 GMT -8
please show the results of cat /etc/os-release
What version of GWP are you running?
Based on what you just showed in the previous posting, I would say you have a wiring problem. Check your wiring. You aren't even seeing the I2C Mux.
BP
|
|
|
Post by phuc0208 on May 12, 2019 23:21:02 GMT -8
The results is : PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)" NAME="Raspbian GNU/Linux" VERSION_ID="9" VERSION="9 (stretch)" ID=raspbian ID_LIKE=debian HOME_URL="http://www.raspbian.org/" SUPPORT_URL="http://www.raspbian.org/RaspbianForums" BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
|
|
|
Post by SDL on May 14, 2019 6:52:32 GMT -8
OK, your problem is you haven't wired the system correctly. Show the results of running "i2cdetect -y 1"
BP
|
|