johnwargo / pi-weather-station

Raspberry Pi Sense HAT, Weather Underground station
MIT License
64 stars 25 forks source link

Pi Weather Station Problem #5

Closed n6egy closed 4 years ago

n6egy commented 4 years ago

In running pi_weather_station I receive the following debug note:

Python 3.7.3 (/usr/bin/python3)

%cd /home/pi/pi_weather_station %Run weather_station.py Traceback (most recent call last): File "/home/pi/pi_weather_station/weather_station.py", line 17, in from urllib import urlencode ImportError: cannot import name 'urlencode' from 'urllib' (/usr/lib/python3.7/urllib/init.py)

Using an RPi 4, RPi AstroPi Sense hat, current upgrade of Raspbian Buster and Python 3.7.

Any ideas where "urlencode" resides so it can be imported?

n6egy commented 4 years ago

Installed a new Raspbian image and pi_weather_station. Works fine. Have no idea why not working before but problem now solved.

johnwargo commented 4 years ago

@n6egy glad it worked out for you. I've had three or four people reach out to me with weird errors and I think it's mostly because of installation issues. Enjoy the weather station.