-
-
Notifications
You must be signed in to change notification settings - Fork 147
SystemError: This module can only be run on a Raspberry Pi! #53
Comments
Hi, same problem :( |
Hi! Could you solve this error...? I'm now trying to import RPi.GPIO with 0.5.11.egg version, and the same error... |
Hi, This issue is caused by the hardware changes in Pi 2. Some hardcoded parts are not working on Pi2. I forked it and fixed the problems. Now it is running on my Pi2, but it is not fully tested so I cannot guarantee its quality. So you can clone from my repo and install it. https://github.com/tylerwowen/RPIO To install
|
Thanks!! I finally solved this error deleting all RPi.GPIO files in the system and then installing from scratch the 0.5.11 version. Anyway, thank you very much! |
@netelbcn how do I delete RPI.GPIO files in the system and install 0.5.11 version from scratch |
@HasiKP: Scan your filesystem for all copies of RPi.GPIO
|
Hi, I tried using your RPIO library, but the servo methods and PWM methods did not work. |
@yah86 |
Thanks. |
@HasiKP |
The Pi2 peripherals are exactly the same as the earlier Pis. See the bcm3835 documentation. The peripheral base address has moved from 0x20000000 to 0x3F000000. DMA memory is now at offset 0xC0000000 rather than 0x40000000. For RPIO.GPIO you should be allocating DMA memory via the mailbox interface. |
@joan2937 |
I'm busy with other software and don't actually use RPIO.GPIO. For examples of the needed changes have a look at servoblaster, pi-blaster, or pigpio (they each use PWM/PCM and DMA to generate PWM and servo pulses). |
@tylerwowen |
any updates on this issue? |
Any update on the issue? Having the same problem :( |
Hi, me too. I'm building a robot and without RPIO working I have too much jitter. Do you have a working version for the RPi2 yet? Thanks so much for your efforts! |
same problem |
There are quite a few alternatives to RPIO.GPIO. For instance, if all you want is servo pulses look at servoblaster. If you want a general Python gpio module including PWM/servo pulses plus much more look at my pigpio here and here. |
@joan2937 Hi, I tried to use servoblaster in Rpi - 2 Model B. Didn't work. Even pi-blaster didn't work. Looks like DMA controller address for Rpi-2 is different from the previous model. Should try your pigpio library. ! |
@Vijayenthiran servoblaster and pi-blaster (and my pigpio) have been updated to work on the Pi2. The servoblaster github repository has not been updated. You can find a link to the updated software by searching for servoblaster on the rasperrypi.org forums. |
Thank you so much! I will try them. |
Thank you Joan.. Will try them.
|
Joan, the RPIO.add_channel_pulse(dma_channel, gpio, start, width) method has a start argument that allows you to specify when pulses start during the pwm period. Does pigpio offer this functionality? If not, is it something you would consider adding? Thanks for the great library. |
Probably best to raise an issue at https://github.com/joan2937/pigpio/tree/master unless it relates directly to RPIO. |
no update for PWM for rpi2 yet ?? |
I spoke to Eben Upton at PiWars he said that there is a setting for /boot/config.txt which uses the memory addressing from the original PI. This should fix issues for PI2 but at the same time halves your RAM. |
@alexellis I'm skeptical that it could work. I took a quick look at the library several months ago and the pwm issues were more than just changes in address locations. I don't recall specifically but I remember something about the need for a rewrite using the mailbox interface. Still let us know if you have any luck. |
Good afternoon. I, too, was faced with this problem. I looked at forks RPIO library, and found the right fork. Good afternoon. I propose to use the current fork: |
I take it thats its because I have a Pi 3 that I also get the msg , only runs on a raspberry Pi |
I face the same problem with RasPi3, any solution yet? |
@DonRecardo @ludusrusso I've forked @tylerwowen 's fork and added support for Pi 3, working for my Pi 3 now, get it at https://github.com/limuxy/RPIO |
@limuxy Firstly thanks for letting me know you have it sorted which is very good of you . Cheers EDIT I think I have worked it out for myself . I right clicked on the zip and said extract Have I done it correctly and do I need to keep the directory RPIO and its contents or has |
@limuxy I have now removed the old version , but still dont know how or where to install your fork of it |
@limuxy After uninstalling the old version of RPIO I again did sudo python setup.py install Don |
Hi all, I came here with the same problem. tried both versions from @tylerwoven and @limuxy and neither work on my raspberry 2. They both load fine, but add_channel_pulse does not seem to do anything, at least no change on the GPIO pin is visible. Any clues? |
I have faced the same problem, this solution make it work: This helped me to install RPIO for several RPI3s. |
same problem on archlinux arm 64bits because cpuinfo have no Hardware part in it's return so the system can't figure it's a raspberry pi |
Exactly. Archlinux on Raspberry 3B+ not working. |
Same problem on RPi 3B+ with Ubuntu 18.04.2 64bit. |
Also running into this issue with 0.6.5 (PyPI) module on 3B with Ubuntu 18.04.2 64bit. Problem is fixed in 0.6.6a but a push to PyPI soon would be awesome! |
I had installed python3-rpi.gpio with pip. I realized the version was wrong. I uninstalled it, downloaded from the source ( https://sourceforge.net/p/raspberry-gpio-python/code/ci/default/tree/RPi/ ) and built and installed manually (python3 setup.py build && python3 setup.py install), and now it works - even on my Raspberry Pi 4 . The last version has a better handling of the last models of raspberry pis and their revision codes ( https://www.raspberrypi.org/documentation/hardware/raspberrypi/revision-codes/README.md ). |
Hi,
I have a Raspberry Pi 2 and am getting the error below when trying to import the RPIO module. Should. Was getting this error when trying to import RPi.GPIO as well until recently, but that imports OK after some recent updates? Only just worked out that these are two different things - being a newbie and all that!
@raspberrypi ~ $ python
Python 2.7.3 (default, Mar 18 2014, 05:13:23)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
The text was updated successfully, but these errors were encountered: