Thanks Dennis for your quick reply.
Le mardi 29 novembre 2016 14:00:42 UTC+1, Dennis Lee Bieber a écrit : > > On Tue, 29 Nov 2016 01:56:36 -0800 (PST), malkowki > <[email protected] <javascript:>> declaimed the > following: > > >Dear, > > > >I am using beaglebone black revision C running kernel 4.1.21-bone-rt-r20 > >,re4lease Debian Jessie. > >I have installed the Adafruit BBIO and check that the installation was > >successfull by doing the follwing > >>>> import Adafruit_BBIO.GPIO as GPIO; print GPIO > ><module 'Adafruit_BBIO.GPIO' from > >'/root/.python-eggs/Adafruit_BBIO-1.0.0-py2.7-linux-armv7l.egg-tmp/Adafruit_BBIO/GPIO.so' > > > > >> > >>>> > > > >whne I try to run a python program example like below: > >#!/usr/bin/python > > > ># Blinks one of the Beaglebone Black's on-board LEDs until CTRL-C is > >pressed. T$ > > > ># Import PyBBIO library > >from bbio import * > > > WHICH library are you using? > I have installed PyBBIO as well, and this one is failing when testing the package: ~# python -c "import bbio as GPIO; print GPIO" Segmentation fault I don't know if they have already updated this library for kernel 4.1.x on? The Adafruit_BBIO installation works.... > > PyBBIO and Adafruit_BBIO are two separate libraries, from > different > sources. Oh, and above you imported Adafruit_BBIO while here you imported > just bbio -- so that's a third possible library (older name for > Adafruit_BBIO). > > https://github.com/graycatlabs/PyBBIO/wiki/Installing-PyBBIO > > For PyBBIO note that this page specifies 3.8 kernel -- which was the older > Debian Wheezy (very much -- the page says 3.14 won't work... And Jessie > ships with a 4.x kernel as I recall). > > Short answer: you've referenced three different BBIO libraries > just in > the above, so it is difficult to know exactly which is being used. > > > <SNIP> > >I got a segmentaion fault. > > > >Can you tell me what could be wrong here? > > Were you running from a privileged account (root)? By default, the > BBB > tends to configure the sysfs nodes (which most of the libraries use to > access I/O pins, channels, etc.) such that a user account has no > permission > -- and they tend to hard-crash rather then bring up a Python exception. > I was running from root account. > -- > Wulfraed Dennis Lee Bieber AF6VN > [email protected] <javascript:> HTTP://wlfraed.home.netcom.com/ > > -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/65e4fde0-49d2-4cb8-b7f9-3d5149525d26%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
