Comments (11)
I've exactly the same problem...
from pybbio.
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
from pybbio.
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
from pybbio.
@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.
from pybbio.
@alexanderhiam,
thank you tons for the advice and everything you're doing here ;)
from pybbio.
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
from bbio import *
File "/usr/local/lib/python2.7/dist-packages/PyBBIO-0.6-py2.7-linux-armv7l.egg/bbio/init.py", line 4, in
from bbio import *
File "/usr/local/lib/python2.7/dist-packages/PyBBIO-0.6-py2.7-linux-armv7l.egg/bbio/bbio.py", line 28, in
from platform import *
File "/usr/local/lib/python2.7/dist-packages/PyBBIO-0.6-py2.7-linux-armv7l.egg/bbio/platform/init.py", line 5, in
from api import *
File "/usr/local/lib/python2.7/dist-packages/PyBBIO-0.6-py2.7-linux-armv7l.egg/bbio/platform/api.py", line 9, in
from bbio.platform.beaglebone import *
File "/usr/local/lib/python2.7/dist-packages/PyBBIO-0.6-py2.7-linux-armv7l.egg/bbio/platform/beaglebone/init.py", line 9, in
from uart import *
File "/usr/local/lib/python2.7/dist-packages/PyBBIO-0.6-py2.7-linux-armv7l.egg/bbio/platform/beaglebone/uart.py", line 154, 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
from pybbio.
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.
from pybbio.
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
from pybbio.
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.
from pybbio.
Serial is working on 3.8 now, so this shouldn't be an issue anymore... closing.
from pybbio.
thanks @Lisurgec &@alexanderhiam working now…
from pybbio.
Related Issues (20)
- I2C Library
- Unable to use PWM1A and PWM1B at the same time HOT 2
- Analog In not recognized HOT 4
- pwmFrequency int division vs float division
- GPIO resource busy error
- SPI0.write crashes Beagleblone HOT 1
- SPI0.write crashes Beagleblone HOT 1
- Questions about Contributions HOT 1
- Pull-ups, pull-down configuration issue
- GPIO configuration bug HOT 2
- SystemError: NULL result without error in PyObject_Call when testing blink.py
- example blink.py error with beaglebone black HOT 2
- BBIOServer_test.py error HOT 4
- MAX31855_test.py problem HOT 4
- importing bbio causes immediate segfault HOT 8
- WebCam - no module named gst HOT 1
- GPIO does not work after "bbio.pinMode" HOT 3
- no module named WebCam HOT 9
- Problem running PyBBIO ADC code on BBB attached to 4D Systems 4DCAPE HOT 8
- not an issue but a doubt HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pybbio.