[opensuse-arm] Segmentation fault of python3-RPi.GPIO-0.6.5-lp151.4.1.aarch64.rpm
Hi I start doing GPIO test with the package on openSUSE 15.1 and Raspberry Pi 3B+. When I run the program in the document, I got "segmentation fault". My program is below. Python 2.7.14 (default, Oct 12 2017, 15:50:02) [GCC] on linux2 Type "help", "copyright", "credits" or "license" for more information.
import RPi.GPIO as GPIO GPIO.setmode(GPIO.BCM) GPIO.setup(25,GPIO.OUT) Segmentation fault (core dumped)
Does anyone work well with this gpio package? I want to know the workaround for this. And I know mraa library is the replacement for gpio. But I can't find how to write the code with mraa when we can write the code below with gpio. <gpio description> GPIO.set(24,GPIO.IN) GPIO.input(24) Does anyone tell me the hit for this? Best Regards. Ryo -- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org
I would recommend to use the standard libgpiod package which has python and C bindings. Guillaume
-----Original Message----- From: 村川 了 <FZZ01471@nifty.ne.jp> Sent: 07 June 2019 16:27 To: opensuse-arm@opensuse.org Subject: [opensuse-arm] Segmentation fault of python3-RPi.GPIO-0.6.5- lp151.4.1.aarch64.rpm
Hi
I start doing GPIO test with the package on openSUSE 15.1 and Raspberry Pi 3B+. When I run the program in the document, I got "segmentation fault". My program is below. Python 2.7.14 (default, Oct 12 2017, 15:50:02) [GCC] on linux2 Type "help", "copyright", "credits" or "license" for more information.
import RPi.GPIO as GPIO GPIO.setmode(GPIO.BCM) GPIO.setup(25,GPIO.OUT) Segmentation fault (core dumped)
Does anyone work well with this gpio package? I want to know the workaround for this.
And I know mraa library is the replacement for gpio. But I can't find how to write the code with mraa when we can write the code below with gpio. <gpio description> GPIO.set(24,GPIO.IN) GPIO.input(24)
Does anyone tell me the hit for this?
Best Regards.
Ryo
-- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org
IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.
participants (2)
-
Guillaume Gardet
-
村川 了