Git Product home page Git Product logo

Comments (11)

dalmago avatar dalmago commented on July 30, 2024

I've exactly the same problem...

from pybbio.

zachChilders avatar zachChilders commented on July 30, 2024

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.

hsmidt avatar hsmidt commented on July 30, 2024

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.

alexanderhiam avatar alexanderhiam commented on July 30, 2024

@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.

hsmidt avatar hsmidt commented on July 30, 2024

@alexanderhiam,
thank you tons for the advice and everything you're doing here ;)

from pybbio.

NishantSood avatar NishantSood commented on July 30, 2024

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.

alexanderhiam avatar alexanderhiam commented on July 30, 2024

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.

NishantSood avatar NishantSood commented on July 30, 2024

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.

alexanderhiam avatar alexanderhiam commented on July 30, 2024

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.

alexanderhiam avatar alexanderhiam commented on July 30, 2024

Serial is working on 3.8 now, so this shouldn't be an issue anymore... closing.

from pybbio.

robertcedwards avatar robertcedwards commented on July 30, 2024

thanks @Lisurgec &@alexanderhiam working now…

from pybbio.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.