scott
New Member
Posts: 3
|
Post by scott on May 4, 2018 14:48:40 GMT -8
Any thoughts on this one??
pi@raspberrypi:~/SDL_Pi_GroveWeatherPi $ sudo python GroveWeatherPi.py
Traceback (most recent call last): File "GroveWeatherPi.py", line 114, in <module> import WeatherUnderground File "/home/pi/SDL_Pi_GroveWeatherPi/WeatherUnderground.py", line 9, in <module> import requests ImportError: No module named requests
|
|
|
Post by SDL on May 5, 2018 14:56:33 GMT -8
This is an installation problem. This will fix it:
Use $ sudo pip install requests if you have pip installed
Alternatively you can also use sudo easy_install -U requests if you have easy_install installed.
BP
|
|
scott
New Member
Posts: 3
|
Post by scott on May 22, 2018 17:38:00 GMT -8
Thank you. I had some other issues other than this. I needed to enable GPIO on the PI and also manually create the DB. The script I had was missing the create Database command.
|
|
|
Post by SDL on May 23, 2018 8:47:14 GMT -8
Which Script are we talking about? Is this one of ours?
BP
|
|
|
Post by Scarr on Jan 25, 2021 22:27:44 GMT -8
I am repeatedly getting the following error while following this setup (https://www.switchdoc.com/wp-content/uploads/2020/08/SmartGardenSystemAssemblyAndTestManual_20200802CD.pdf):
Traceback (most recent call last): File "/home/pi/SDL_Pi_SmartGardenSystem2/pclogging.py", line 48, in systemlog con = mdb.connect('localhost', 'root', config.MySQL_Password, 'SmartGardenSystem'); File "/usr/local/lib/python3.7/dist-packages/MySQLdb/__init__.py", line 130, in Connect return Connection(*args, **kwargs) File "/usr/local/lib/python3.7/dist-packages/MySQLdb/connections.py", line 185, in __init__ super().__init__(*args, **kwargs2) MySQLdb._exceptions.OperationalError: (1049, "Unknown database 'SmartGardenSystem'")
Is there a script I am missing that is supposed to set up the database?
|
|
|
Post by SDL on Jan 26, 2021 10:07:23 GMT -8
Scarr, Got it. You must not have our SDCard, which has the database on it. cd down into the SGS directory and execute the following command to load the database into your MySQL local database. sudo mysql -u root < SmartGardenSystem.sql password should be set to "password" for the mysql root user. Look in the README.md for detailed installation instructions and make sure you have the latest version. (git pull). github.com/switchdoclabs/SDL_Pi_SmartGardenSystem2BP
|
|