0

BBW 16.04 : PWM Runtime Error: Problem with the cape manager
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

BBW 16.04 : PWM Runtime Error: Problem with the cape manager

by Stavros23 on Sun Mar 25, 2018 10:47 am

I have a beagleboneblack wireless with Ubuntu xenial 16.04. I am trying to use the Adafruit_BBIO library and I am following these instructions : https://learn.adafruit.com/setting-up-i ... -on-ubuntu .

Following the tutorials provided in adafruit's webpage, I set up some GPIO ports successfully. However, when I try to set up a PWM port, the following runtime error occurs:
https://www.dropbox.com/s/nw8dbwl04rjgu ... r.png?dl=0

I have found similar threads here: https://github.com/adafruit/adafruit-be ... issues/136, https://github.com/adafruit/adafruit-be ... issues/125, https://github.com/adafruit/adafruit-be ... issues/230. I have tried most of the solutions suggested in these forums, without any luck so far.

Stavros23
 
Posts: 1
Joined: Sun Mar 25, 2018 7:47 am

Re: BBW 16.04 : PWM Runtime Error: Problem with the cape man

by drewfustini on Tue Mar 27, 2018 11:06 pm

I would suggest running the latest BeagleBoard.org Debian image:
https://beagleboard.org/latest-images

If you do need to stay on Ubuntu 16.04, then please paste the output for the following commands:
Code: Select all | TOGGLE FULL SIZE
cat /etc/dogtag

cat /etc/debian_version

cat /boot/uEnv.txt

sudo /opt/scripts/tools/version.sh

sudo python -c "import Adafruit_BBIO; print Adafruit_BBIO"

Please paste the code for the Python script that you trying to run.

It would also be good to see what system calls the Python script makes. Install strace and run python with strace:
Code: Select all | TOGGLE FULL SIZE
sudo apt-get install strace
sudo strace -f -o /tmp/strace-python.txt python filename.py

Attach /tmp/strace-python.txt to your reply or paste it into a GitHub gist.

drewfustini
 
Posts: 944
Joined: Sat Dec 26, 2015 1:19 pm

Re: BBW 16.04 : PWM Runtime Error: Problem with the cape man

by drewfustini on Tue Mar 27, 2018 11:31 pm

I see that you have opened a GitHub issue so I will follow up there.
https://github.com/adafruit/adafruit-be ... issues/246

drewfustini
 
Posts: 944
Joined: Sat Dec 26, 2015 1:19 pm

Please be positive and constructive with your questions and comments.