question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable install RPiO.GPIO

See original GitHub issue

Unable to install RPiO.GPIO on Raspberry Pi

pi@raspberrypi:~/Insurance-Tracker $ python3 -m pipenv install RPi.GPIO
Creating a virtualenv for this project…
Pipfile: /home/pi/Insurance-Tracker/Pipfile
Using /usr/bin/python3.5 (3.5.3) to create virtualenv…
⠙ Creating virtual environment...Using base prefix '/usr'
New python executable in /home/pi/.local/share/virtualenvs/Insurance-Tracker-BOxuNttJ/bin/python3.5
Also creating executable in /home/pi/.local/share/virtualenvs/Insurance-Tracker-BOxuNttJ/bin/python
Installing setuptools, pip, wheel...
done.
Running virtualenv with interpreter /usr/bin/python3.5
✔ Successfully created virtual environment!
Virtualenv location: /home/pi/.local/share/virtualenvs/Insurance-Tracker-BOxuNttJ
Installing RPi.GPIO…
✔ Installation Succeeded
Pipfile.lock (7ba4fa) out of date, updating to (703c34)…
Locking [dev-packages] dependencies…
Locking [packages] dependencies…
✘ Locking Failed!
[pipenv.exceptions.ResolutionFailure]:   File "/home/pi/.local/lib/python3.5/site-packages/pipenv/resolver.py", line 69, in resolve
[pipenv.exceptions.ResolutionFailure]:       req_dir=requirements_dir
[pipenv.exceptions.ResolutionFailure]:   File "/home/pi/.local/lib/python3.5/site-packages/pipenv/utils.py", line 726, in resolve_deps
[pipenv.exceptions.ResolutionFailure]:       req_dir=req_dir,
[pipenv.exceptions.ResolutionFailure]:   File "/home/pi/.local/lib/python3.5/site-packages/pipenv/utils.py", line 480, in actually_resolve_deps
[pipenv.exceptions.ResolutionFailure]:       resolved_tree = resolver.resolve()
[pipenv.exceptions.ResolutionFailure]:   File "/home/pi/.local/lib/python3.5/site-packages/pipenv/utils.py", line 395, in resolve
[pipenv.exceptions.ResolutionFailure]:       raise ResolutionFailure(message=str(e))
[pipenv.exceptions.ResolutionFailure]:       pipenv.exceptions.ResolutionFailure: ERROR: ERROR: Could not find a version that matches rpi
[pipenv.exceptions.ResolutionFailure]:       No versions found
[pipenv.exceptions.ResolutionFailure]: Warning: Your dependencies could not be resolved. You likely have a mismatch in your sub-dependencies.
  First try clearing your dependency cache with $ pipenv lock --clear, then try the original command again.
 Alternatively, you can use $ pipenv install --skip-lock to bypass this mechanism, then run $ pipenv graph to inspect the situation.
  Hint: try $ pipenv lock --pre if it is a pre-release dependency.
ERROR: ERROR: Could not find a version that matches rpi
No versions found
Was https://pypi.org/simple reachable?
[pipenv.exceptions.ResolutionFailure]:       req_dir=requirements_dir
[pipenv.exceptions.ResolutionFailure]:   File "/home/pi/.local/lib/python3.5/site-packages/pipenv/utils.py", line 726, in resolve_deps
[pipenv.exceptions.ResolutionFailure]:       req_dir=req_dir,
[pipenv.exceptions.ResolutionFailure]:   File "/home/pi/.local/lib/python3.5/site-packages/pipenv/utils.py", line 480, in actually_resolve_deps
[pipenv.exceptions.ResolutionFailure]:       resolved_tree = resolver.resolve()
[pipenv.exceptions.ResolutionFailure]:   File "/home/pi/.local/lib/python3.5/site-packages/pipenv/utils.py", line 395, in resolve
[pipenv.exceptions.ResolutionFailure]:       raise ResolutionFailure(message=str(e))
[pipenv.exceptions.ResolutionFailure]:       pipenv.exceptions.ResolutionFailure: ERROR: ERROR: Could not find a version that matches rpi
[pipenv.exceptions.ResolutionFailure]:       No versions found
[pipenv.exceptions.ResolutionFailure]: Warning: Your dependencies could not be resolved. You likely have a mismatch in your sub-dependencies.
  First try clearing your dependency cache with $ pipenv lock --clear, then try the original command again.
 Alternatively, you can use $ pipenv install --skip-lock to bypass this mechanism, then run $ pipenv graph to inspect the situation.
  Hint: try $ pipenv lock --pre if it is a pre-release dependency.
ERROR: ERROR: Could not find a version that matches rpi
No versions found
Was https://pypi.org/simple reachable?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

5reactions
frostmingcommented, Dec 21, 2018

@scwall Please read my previous comment. An issue closed does not necessarily mean that it is released, the issue gets closed by the merging of related PR. Please wait for the next release or use the master branch.

As a workaround, you can manually modify the package name in Pipfile to RPi.GPIO and all will work fine.

3reactions
lkgarrisoncommented, Sep 8, 2019

I just encountered this issue as well and was a bit surprised to see there hasn’t been a release in 9 months. Can one be expected in the near future?

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to correctly install the python RPi.GPIO library
How to correctly install the python RPi.GPIO library · the correct syntax is: import RPi.GPIO as GPIO. – user17589. Jun 19, 2014 at...
Read more >
I cannot install RPi.GPIO - Raspberry Pi Forums
Re: I cannot install RPi. GPIO. I would highly recommend grabbing the latest Raspbian image and re-doing your SD card.
Read more >
error while installing RPi.GPIO as "ERROR - Ask Ubuntu
I was able to fix the issue by installing RPi.gpio using pip3 . Type the following commands: export CFLAGS=-fcommon pip3 install RPi.GPIO.
Read more >
[Solved] Cannot install rpi.gpio - Raspberry Pi - OSMC Forums
I am running the latest stable release of OSMC (4.14.26-2-osmc) on my Raspberry Pi 2 Model B. I need to install the rpi.gpio...
Read more >
I can't install RPi-GPIO for windows in Pycharm - Stack Overflow
You cannot install RPi.GPIO , a library meant for Raspberry Pi computers running Linux, on Windows.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found