On Tue, 29 Nov 2016 01:56:36 -0800 (PST), malkowki
<
bmb.tec...@gmail.com> 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?
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.
--
Wulfraed Dennis Lee Bieber AF6VN
wlf...@ix.netcom.com HTTP://wlfraed.home.netcom.com/