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

pip uninstall RPi.GPIO required with latest RPi 4 and Debian Buster 10 #4

Open
luciust opened this issue Sep 7, 2020 · 0 comments
Open

Comments

@luciust
Copy link

luciust commented Sep 7, 2020

With latest iteration of Debian on Raspberry Pi 4 - Buster, you need to unistall library. Default installation after satisfying the README.md requirements returns:

# python lightning_web.py
Traceback (most recent call last):
  File "lightning_web.py", line 5, in <module>
    import RPi.GPIO as GPIO

Proceed to:

# pip uninstall RPi.GPIO
Uninstalling RPi.GPIO-0.5.11:
  Would remove:
    /usr/local/lib/python2.7/dist-packages/RPi.GPIO-0.5.11.dist-info/*
    /usr/local/lib/python2.7/dist-packages/RPi/*
Proceed (y/n)? y
  Successfully uninstalled RPi.GPIO-0.5.11

which gives us:

# pip install RPi.GPIO
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: RPi.GPIO in /usr/lib/python2.7/dist-packages (0.7.0)

and finally:

# python lightning_web.py
 * Running on http://0.0.0.0:5000/
 * Restarting with stat
192.168.1.121 - - [2020-09-08 00:06:09] "GET / HTTP/1.1" 200 5788 0.120335
192.168.1.121 - - [2020-09-08 00:06:09] "GET /static/css/bootstrap-theme.min.css HTTP/1.1" 200 20123 0.002817
192.168.1.121 - - [2020-09-08 00:06:09] "GET /static/css/lightning-sensor.css HTTP/1.1" 200 394 0.002117
192.168.1.121 - - [2020-09-08 00:06:09] "GET /static/css/bootstrap.min.css HTTP/1.1" 200 113788 0.022944
192.168.1.121 - - [2020-09-08 00:06:09] "GET /favicon.ico HTTP/1.1" 404 342 0.016334
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

1 participant