Barenkeys
Posts: 3
Joined: Fri Nov 11, 2016 8:36 am

SystemError: This module can only be run on a Raspberry Pi!

Fri Nov 11, 2016 8:52 am

Hi all, I keep getting this error code when I try and run something with GPIOs:
Traceback (most recent call last):
File "capture-positives.py", line 14, in <module>
import hardware
File "/home/pi/pi-facerec-box-master/hardware.py", line 8, in <module>
import RPIO
File "/usr/local/lib/python2.7/dist-packages/RPIO/__init__.py", line 115, in <module>
import RPIO._GPIO as _GPIO
SystemError: This module can only be run on a Raspberry Pi!

If anyone could help that would be great, I've updated and upgraded my Raspberry Pi 3, Model B, but nothing has worked. Thanks.

B.Goode
Posts: 6543
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: SystemError: This module can only be run on a Raspberry

Fri Nov 11, 2016 12:25 pm

Is RPIO (which is not the same thing as RPi.GPIO) being actively maintained so that it recognises recently released hardware?

Do you have a specific reason for wanting to use that particular library?


B.Goode
Posts: 6543
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: SystemError: This module can only be run on a Raspberry

Fri Nov 11, 2016 12:40 pm

If you are using gpio features for the first time the gpiozero Python module would be a good place to start:

http://gpiozero.readthedocs.io/en/latest/index.html


https://www.raspberrypi.org/learning/ph ... worksheet/

Barenkeys
Posts: 3
Joined: Fri Nov 11, 2016 8:36 am

Re: SystemError: This module can only be run on a Raspberry

Sat Nov 12, 2016 4:04 am

joan wrote:You need a later release.

viewtopic.php?p=1046060#p1046060
I've tried this and got the following updated message:

Traceback (most recent call last):
File "capture-positives.py", line 14, in <module>
import hardware
File "/home/pi/pi-facerec-box-master/hardware.py", line 8, in <module>
import RPIO
File "build/bdist.linux-armv7l/egg/RPIO/__init__.py", line 115, in <module>
File "build/bdist.linux-armv7l/egg/RPIO/_GPIO.py", line 7, in <module>
File "build/bdist.linux-armv7l/egg/RPIO/_GPIO.py", line 6, in __bootstrap__
SystemError: This module can only be run on a Raspberry Pi!

Barenkeys
Posts: 3
Joined: Fri Nov 11, 2016 8:36 am

Re: SystemError: This module can only be run on a Raspberry

Sat Nov 12, 2016 4:12 am

B.Goode wrote:Is RPIO (which is not the same thing as RPi.GPIO) being actively maintained so that it recognises recently released hardware?

Do you have a specific reason for wanting to use that particular library?
I believe it's being maintained, is there anyway to be certain? The library is actually defaulted from OpenCV, I'm trying to build facial recognition software but I keep getting hung up on this error. I have followed another person's recomendation and used a later version, getting this error now:

Traceback (most recent call last):
File "capture-positives.py", line 14, in <module>
import hardware
File "/home/pi/pi-facerec-box-master/hardware.py", line 8, in <module>
import RPIO
File "build/bdist.linux-armv7l/egg/RPIO/__init__.py", line 115, in <module>
File "build/bdist.linux-armv7l/egg/RPIO/_GPIO.py", line 7, in <module>
File "build/bdist.linux-armv7l/egg/RPIO/_GPIO.py", line 6, in __bootstrap__
SystemError: This module can only be run on a Raspberry Pi!

B.Goode
Posts: 6543
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: SystemError: This module can only be run on a Raspberry

Sat Nov 12, 2016 7:33 am

The last change made by the developer was 18 months ago. This predates the release of the RPi 3 (and the Zero) so in its current state will not support that hardware.

https://github.com/metachris/RPIO

Other users have reported the RPi3 compatibility problem and have suggested possible solutions.

https://github.com/metachris/RPIO/issues/86

https://github.com/metachris/RPIO/issues/80

User avatar
joan
Posts: 13579
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK

Re: SystemError: This module can only be run on a Raspberry

Sat Nov 12, 2016 8:49 am

Barenkeys wrote:
joan wrote:You need a later release.

viewtopic.php?p=1046060#p1046060
I've tried this and got the following updated message:

Traceback (most recent call last):
File "capture-positives.py", line 14, in <module>
import hardware
File "/home/pi/pi-facerec-box-master/hardware.py", line 8, in <module>
import RPIO
File "build/bdist.linux-armv7l/egg/RPIO/__init__.py", line 115, in <module>
File "build/bdist.linux-armv7l/egg/RPIO/_GPIO.py", line 7, in <module>
File "build/bdist.linux-armv7l/egg/RPIO/_GPIO.py", line 6, in __bootstrap__
SystemError: This module can only be run on a Raspberry Pi!
You didn't follow the instructions.

Return to “HATs and other add-ons”