Bug 1471731
Summary: | SystemError: This module can only be run on a Raspberry Pi! | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Aleksandra Fedorova <alpha> |
Component: | kernel | Assignee: | Peter Robinson <pbrobinson> |
Status: | CLOSED CANTFIX | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 27 | CC: | airlied, bskeggs, ewk, hdegoede, ichavero, itamar, jarodwilson, jeff, jeremy, jglisse, john.j5live, jonathan, josef, kernel-maint, linville, mail, mail, mchehab, mjg59, pbrobinson, steved, surkum, trailtotale, wb8rcr |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2018-07-23 15:05:51 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Aleksandra Fedorova
2017-07-17 11:02:52 UTC
I can confirm this with Fedora 27 and python3-RPi.GPIO-0.6.3-4.fc27.armv7hl. I was able to use this module on the same hardware back with Fedora 23 albeit I was using python-rpi-gpio-0.5.11-1.fc23.armv7hl (for Python 2). $ python3 Python 3.6.3 (default, Oct 9 2017, 11:35:41) [GCC 7.2.1 20170915 (Red Hat 7.2.1-2)] on linux Type "help", "copyright", "credits" or "license" for more information. Tab completion has been enabled. >>> import RPi.GPIO Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python3.6/site-packages/RPi/GPIO/__init__.py", line 23, in <module> from RPi._GPIO import * RuntimeError: This module can only be run on a Raspberry Pi! >>> It does appear that the difference in /proc/cpuinfo determines whether this module works or fails. This case has no problem importing the module: $ grep PRETTY_NAME= /etc/os-release ; grep -A9 '^Hardware' /proc/cpuinfo PRETTY_NAME="Fedora 23 (Twenty Three)" Hardware : BCM2709 Revision : a02082 Serial : 00000000f82def87 Whereas this case fails to import the module (on the same hardware): $ grep PRETTY_NAME= /etc/os-release ; grep -A9 '^Hardware' /proc/cpuinfo PRETTY_NAME="Fedora 27 (Twenty Seven)" Hardware : Generic DT based system Revision : 0000 Serial : 0000000030a816e4 Given this difference, I think reassigning this bug to the kernel is appropriate. I also bumped the package version to 27 since the problem is still reproducible there. *********** MASS BUG UPDATE ************** We apologize for the inconvenience. There are a large number of bugs to go through and several of them have gone stale. Due to this, we are doing a mass bug update across all of the Fedora 27 kernel bugs. Fedora 27 has now been rebased to 4.17.7-100.fc27. Please test this kernel update (or newer) and let us know if you issue has been resolved or if it is still present with the newer kernel. If you have moved on to Fedora 28, and are still experiencing this issue, please change the version to Fedora 28. If you experience different issues, please open a new bug report for those. The RPIO._GPIO module needs to be updated to work with the new kernel interfaces, probably via libgpio so it will work with distros other than Raspbian plus what ever kernel hacks they have in place |