Closed mohammedsiddique closed 10 years ago
I've exactly the same problem...
Uninstall PyBBIO, remove the installation files, and run git clone -b 3.8-support git://github.com/alexanderhiam/PyBBIO.git
Then run the setup normally. The problem is PyBBIO was written for linux kernel 3.2
Lisurgec, what would be the easiest way to uninstall PyBBIO and remove the installation files (rm and rmdir?) ? Sry, I'm kinda new to Beaglebone and Angstrom.
Thanks a lot
@hlmeS to uninstall:
# python
>>> import bbio
>>> bbio.__file__
then delete up to the .egg/
directory of what prints out, e.g. if it prints:
'/usr/local/lib/python2.7/dist-packages/PyBBIO-0.6-py2.7-linux-armv7l.egg/bbio/__init__.pyc'
then do:
# rm -r /usr/local/lib/python2.7/dist-packages/PyBBIO-0.6-py2.7-linux-armv7l.egg/
Then be sure to delete the current PyBBIO/ directory if it's still there, and then you can grab the 3.8-support
branch as @Lisurgec described. Note that the 3.8-support
branch is not complete, but I'll keep it up to date as I work on it.
@alexanderhiam, thank you tons for the advice and everything you're doing here ;)
Here is the problem I'm getting even after CLONING THE FIXED FOR 3.8Kernel LIBRARY:
ubuntu@arm:~/PyBBIO/examples$ python blink.py
Traceback (most recent call last):
File "blink.py", line 7, in
Serial1 = _UART_PORT('UART1')
File "/usr/local/lib/python2.7/dist-packages/PyBBIO-0.6-py2.7-linux-armv7l.egg/bbio/platform/beaglebone/uart.py", line 24, in init assert uart in UART, "*Invalid UART: %s" % uart NameError: global name 'UART' is not defined
What could possibly be the matter? I just ran the example BLINKY
There is no fixed for 3.8 version yet. The 3.8-support branch is where my working on support for the 3.8 kernel, which is still a work in progress.
I;m mainly considerate about this error>> NameError: global name 'UART' is not defined I don't think this error is caused due to kernel I think something more in generally being related to defining UART
You're right, the error is in PyBBIO, but it's there because the UART
configuration dictionary doesn't exist in installs on the 3.8 kernel from the 3.8-support branch, because, well, I haven't created it yet. Because the 3.8-support branch is more of an experimental development branch, I can't offer any guarantee that it is in a working state.
If you're looking for something that is currently working on the 3.8 kernel, @jwcooper has done some great work on the Adafruit_BBIO library.
Serial is working on 3.8 now, so this shouldn't be an issue anymore... closing.
thanks @Lisurgec &@alexanderhiam working now…
I went through issue #13
I am unable to run example program, when i execute example program
solution I got was:
Traceback (most recent call last): File "blink.py", line 7, in
from bbio import
File "/usr/lib/python2.7/site-packages/PyBBIO-0.6-py2.7-linux-armv7l.egg/bbio/init.py", line 4, in
from bbio import
File "/usr/lib/python2.7/site-packages/PyBBIO-0.6-py2.7-linux-armv7l.egg/bbio/bbio.py", line 28, in
from platform import
File "/usr/lib/python2.7/site-packages/PyBBIO-0.6-py2.7-linux-armv7l.egg/bbio/platform/init.py", line 5, in
from api import
File "/usr/lib/python2.7/site-packages/PyBBIO-0.6-py2.7-linux-armv7l.egg/bbio/platform/api.py", line 9, in
from bbio.platform.beaglebone import *
File "/usr/lib/python2.7/site-packages/PyBBIO-0.6-py2.7-linux-armv7l.egg/bbio/platform/beaglebone/init.py", line 3, in
import config
File "/usr/lib/python2.7/site-packages/PyBBIO-0.6-py2.7-linux-armv7l.egg/bbio/platform/beaglebone/config.py", line 410, in
for i in PWM_PINS.keys())
File "/usr/lib/python2.7/site-packages/PyBBIO-0.6-py2.7-linux-armv7l.egg/bbio/platform/beaglebone/config.py", line 410, in
for i in PWM_PINS.keys())
IOError: [Errno 2] No such file or directory: '/sys/class/pwm/ehrpwm.1:1/request'
"AFTER GOING THROUGH ISSUE #13
When i execute these commands I got the following results.
root@beaglebone:~# uname -a Linux beaglebone 3.8.13 #1 SMP Tue Jun 18 02:11:09 EDT 2013 armv7l GNU/Linux
root@beaglebone:~# ls /sys/class/pwm export unexport
It would be helpful if you could guide me through this.
Thank you
Note: I had updated the latest Angstrom image.with BBB-eMMC-flasher-2013.06.17.img.xz