using the rpi gpio python module

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



what kernel modules need to be loaded, configuration file changes

on Fedora 27 32 bit on pi2 I get
# python2 blinkled.py
Segmentation fault (core dumped)
# python3 blinkled.py
Segmentation fault (core dumped)
# uname -a
Linux f27-arm7-32-rpi2.dmz1.ipa.tnss.com 4.14.3-300.fc27.armv7hl #1 SMP
Mon Dec 4 18:55:57 UTC 2017 armv7l armv7l armv7l GNU/Linux
# rpmq -i gpio
python2-RPi.GPIO:0.6.3:4.fc27:armv7hl:Fedora Project:Fedora Project
python3-RPi.GPIO:0.6.3:4.fc27:armv7hl:Fedora Project:Fedora Project
sgpio:1.2.0.10:19.fc27:armv7hl:Fedora Project:Fedora Project

on Fedora 26 64 bit on pi 3 I get
# python2 blinkled.py
Traceback (most recent call last):
  File "blinkled.py", line 14, in <module>
    import RPi.GPIO as GPIO
  File "/usr/lib64/python2.7/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!
# python3 blinkled.py
Traceback (most recent call last):
  File "blinkled.py", line 14, in <module>
    import RPi.GPIO as GPIO
  File "/usr/lib64/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!
# uname -a
Linux f26-arm8-64-aak.dmz1.ipa.tnss.com 4.14.4-200.fc26.aarch64 #1 SMP
Fri Dec 8 20:34:59 UTC 2017 aarch64 aarch64 aarch64 GNU/Linux

Thanks in advance for any help
Arno
_______________________________________________
arm mailing list -- arm@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to arm-leave@xxxxxxxxxxxxxxxxxxxxxxx




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux ARM (Vger)]     [Linux ARM]     [ARM Kernel]     [Fedora User Discussion]     [Older Fedora Users Discussion]     [Fedora Advisory Board]     [Fedora Security]     [Fedora Maintainers]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Mentors]     [Fedora Package Announce]     [Fedora Package Review]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Coolkey]     [Yum Users]     [Tux]     [Yosemite News]     [Linux Apps]     [KDE Users]     [Fedora Tools]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]

Powered by Linux