I just updated my Beaglebone Black to:
Linux beaglebone 3.8.13-bone70 #1 SMP Fri Jan 23 02:15:42 UTC 2015 armv7l 
GNU/Linux

I installed the PyBBIO library and created the following test program:

********************** begin code 
*******************************************
from bbio import *
from bbio.libraries.RotaryEncoder import RotaryEncoder

encoder = RotaryEncoder(RotaryEncoder.EQEP2b)

def setup():
    print "in setup"

def loop():
    print "in loop"

run(setup, loop)
************end code************************************

everything works as expected until I add the line:
encoder = RotaryEncoder(RotaryEncoder.EQEP2b)

When I ctrl-c to exit the loop I get errors. (see below)



in loop
in loop
in loop^C
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
  File "/usr/lib/python2.7/atexit.py", line 24, in _run_exitfuncs
    func(*targs, **kargs)
  File 
"/usr/local/lib/python2.7/dist-packages/PyBBIO-0.9.3-py2.7-linux-armv7l.egg/bbio/bbio.py",
 
line 21, in bbio_cleanup
    for cleanup in ADDITIONAL_CLEANUP:
TypeError: must be string, not int
Error in sys.exitfunc:
Traceback (most recent call last):
  File "/usr/lib/python2.7/atexit.py", line 24, in _run_exitfuncs
    func(*targs, **kargs)
  File 
"/usr/local/lib/python2.7/dist-packages/PyBBIO-0.9.3-py2.7-linux-armv7l.egg/bbio/bbio.py",
 
line 21, in bbio_cleanup
    for cleanup in ADDITIONAL_CLEANUP:
TypeError: must be string, not int
root@beaglebone:/kirkpy#


Any help figuring this out would be much appreciated,
Kirk




On Friday, February 13, 2015 at 4:24:45 PM UTC-8, Alexander Hiam wrote:

> I just released PyBBIO version 0.9.3 - details here: 
> http://graycat.io/beaglebone/pybbio-update-version-0-9-3/
>
> PyBBIO: https://github.com/graycatlabs/PyBBIO
>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to