Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pi_weather_station #6

Open
ronadt opened this issue Sep 10, 2020 · 1 comment
Open

pi_weather_station #6

ronadt opened this issue Sep 10, 2020 · 1 comment

Comments

@ronadt
Copy link

ronadt commented Sep 10, 2020

Rasp pi 4, python 2.x or 3.x
stops with this error: ImportError: cannot import name 'urlencode' from 'urllib' (/usr/lib/python3.7/urllib/init.py)
Can't find much info on this, I am very new to this...

@johnwargo
Copy link
Owner

johnwargo commented Sep 11, 2020

I assume that you're running Python 2 for this project, because that's the default for Raspbian. You're running Python 3 and I did a quick google search on the error message (which you should do any time you encounter an error) and came up with this:
https://stackoverflow.com/questions/44031471/importerror-cannot-import-name-urlencode-when-trying-to-install-flask-ext-sto

So you'll either run the server process using Python 2, or modify line 19 pf weather_station.py as described in the linked article.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants