I'm running daemon python file in virtualenv and has a Error:

File "rpi_daemon.py", line 5, in <module>
    import RPIO
  File "/home/pi/python_virtualenv/local/lib/python2.7/site-packages/RPIO/__init__.py", line 115, in <module>
    import RPIO._GPIO as _GPIO
SystemError: This module can only be run on a Raspberry Pi!

So what should I do? I'm use raspberry pi3 model B, I'm not a native English speaker, so I'm sorry for every mistake.

  • How did you install RPIO? Did you use Pip? Do you know which version you have installed? – Aurora0001 Aug 7 '18 at 9:03
  • yes, I did. I used: "pip install RPIO", verison installed is 0.10.0 – Hữu Linh Nguyễn Aug 13 '18 at 2:31

The standard release of RPIO does not support the Pi Zero, Pi2, or Pi3.

You will need to build RPIO from the github of RPIO version 2.


Go to that github choose Clone or download and select Download ZIP.

Then do the following on the Pi where you saved the ZIP.

sudo apt-get install python-dev python3-dev
unzip RPIO-2.zip
cd RPIO-2/
sudo python setup.py install
sudo python3 setup.py install
| improve this answer | |
  • I cloned and installed setup RPIO but it has stilled error . sad – Hữu Linh Nguyễn Aug 13 '18 at 2:59
  • Did you use RPIO-2 ? – joan Aug 13 '18 at 7:20
  • Yes, I did. I installed both python and python3 – Hữu Linh Nguyễn Aug 13 '18 at 10:01
  • Perhaps it's the virtual environment. If it works on the Pi itself then I guess the virtual environment is the problem. – joan Aug 13 '18 at 11:57
  • I tried it works on Pi without virtual environment, but it stilled has that error – Hữu Linh Nguyễn Aug 14 '18 at 2:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.