|
Post by riffelrw on Apr 26, 2020 21:06:54 GMT -8
Have completed wiring and component test in SkyWeather, now trying to do self-detection. When I ran SkyWeather.py first time, it was missing matlab etc. Got that up and running and installed MySQL (MariaDB now I guess). However, even after successfully getting pypmyadmin to work, I now get the following error on startup: pi@Skyweather:~/SDL_Pi_SkyWeather $ sudo python SkyWeather.py Traceback (most recent call last): File "SkyWeather.py", line 66, in <module> import doAllGraphs File "/home/pi/SDL_Pi_SkyWeather/doAllGraphs.py", line 16, in <module> import TemperatureHumidityGraph File "./graphs/TemperatureHumidityGraph.py", line 25, in <module> import MySQLdb as mdb ImportError: No module named MySQLdb pi@Skyweather:~/SDL_Pi_SkyWeather $ I installed MySQL using instructions at howtoraspberrypi.com/how-to-install-web-server-raspberry-pi-lamp/Any thoughts?
|
|
smurphy
Full Member
Posts: 169
Raspberry Pi: Yes
Other Device: many ...
|
Post by smurphy on Apr 27, 2020 1:58:18 GMT -8
I suppose you are missing: python-mysqldb install it with: "sudo apt install python-mysqldb"
and try again.
|
|
|
Post by riffelrw on Apr 30, 2020 6:48:00 GMT -8
Thanks, this fixed the problem. Appreciate the insight!
|
|