Hello there fellow Devs :)
I want to listen for the information given by the MMA8452 acceleration sensor with python. To do this i want to use the libiio package for python.
To install it I manually built it following the instructions given in this guide
It seemed to be installed fine, cuz I have no Problem importing the Package because it is located in my site-packages folder.
However if I want to do the initial step of creating a context with the "iio.context()"-function, I get this error:
Traceback (most recent call last):
File "./bindings/python/examples/iio_info.py", line 89, in <module>
main()
File "./bindings/python/examples/iio_info.py", line 34, in main
ctx = iio.Context(uri)
File "/usr/local/lib/python2.7/dist-packages/iio.py", line 730, in __init__
self._context = _new_default()
File "/usr/local/lib/python2.7/dist-packages/iio.py", line 33, in _checkNull
raise OSError(err, _strerror(err))
OSError: [Errno 2] No such file or directory
Can someone help me get the iio package working?
For my hardware: I use the Raspberry Pi3 model B, with Raspberian-stretch-lite v4.9
Thanks in advance, Holger