graycatlabs / PyBBIO

A Python library for Arduino-style hardware IO support on the Beaglebone
https://github.com/graycatlabs/PyBBIO/wiki
MIT License
251 stars 87 forks source link

SystemError: NULL result without error in PyObject_Call when testing blink.py #110

Open jlewallen18 opened 7 years ago

jlewallen18 commented 7 years ago

Hi, I encounter this error after installing PyBBIO and testing blink.py to see if the library works. Here's what I see in the console after running python blink.py. Running the latest image of Debian and Kernel 3.8

root@beaglebone:/usr/local/lib/PyBBIO/examples# python blink.py
Traceback (most recent call last):
  File "blink.py", line 7, in <module>
    from bbio import *
  File "/usr/local/lib/python2.7/dist-packages/PyBBIO-0.10-py2.7-linux-armv7l.egg/bbio/__init__.py", line 5, in <module>
    from .bbio import run, stop
  File "/usr/local/lib/python2.7/dist-packages/PyBBIO-0.10-py2.7-linux-armv7l.egg/bbio/bbio.py", line 10, in <module>
    from .platform import platform_init, platform_cleanup
  File "/usr/local/lib/python2.7/dist-packages/PyBBIO-0.10-py2.7-linux-armv7l.egg/bbio/platform/__init__.py", line 6, in <module>
    from beaglebone import *
  File "/usr/local/lib/python2.7/dist-packages/PyBBIO-0.10-py2.7-linux-armv7l.egg/bbio/platform/beaglebone/__init__.py", line 9, in <module>
    from i2c import I2C1, I2C2, Wire1, Wire2
  File "/usr/local/lib/python2.7/dist-packages/PyBBIO-0.10-py2.7-linux-armv7l.egg/bbio/platform/beaglebone/i2c.py", line 63, in <module>
    Wire1 = I2C1 = I2CBus(1)
  File "/usr/local/lib/python2.7/dist-packages/PyBBIO-0.10-py2.7-linux-armv7l.egg/bbio/platform/beaglebone/i2c.py", line 15, in __init__
    super(I2CBus, self).__init__(bus)
SystemError: NULL result without error in PyObject_Call