Page 1 of 1

Bridge and python 3.4

Posted: Thu Dec 15, 2016 7:13 pm
by Nolface
Hey guys, sorry, I'm kinda new to all this, but I'm running the bridge-simple example on a raspberry pi 2 B using python 3.4 and i just get this in return:

Code: Select all

Traceback (most recent call last):
  File "Bridge-simple.py", line 22, in <module>
    bridge = Bridge()
  File "/usr/local/lib/python3.4/dist-packages/Phidgets/Devices/Bridge.py", line 52, in __init__
    PhidgetLibrary.getDll().CPhidgetBridge_create(byref(self.handle))
  File "/usr/local/lib/python3.4/dist-packages/Phidgets/PhidgetLibrary.py", line 26, in getDll
    raise RuntimeError("Platform not supported")
RuntimeError: Platform not supported

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "Bridge-simple.py", line 24, in <module>
    print("Runtime Exception: %s" % e.details)
AttributeError: 'RuntimeError' object has no attribute 'details'
Exception ignored in: <bound method Bridge.__del__ of <Phidgets.Devices.Bridge.Bridge object at 0x76aa4770>>
Traceback (most recent call last):
  File "/usr/local/lib/python3.4/dist-packages/Phidgets/Devices/Bridge.py", line 64, in __del__
    Phidget.dispose(self)
  File "/usr/local/lib/python3.4/dist-packages/Phidgets/Phidget.py", line 287, in dispose
    result = PhidgetLibrary.getDll().CPhidget_delete(self.handle)
  File "/usr/local/lib/python3.4/dist-packages/Phidgets/PhidgetLibrary.py", line 26, in getDll
    raise RuntimeError("Platform not supported")
RuntimeError: Platform not supported

Whats the deal? is it because of python3?