Hi,
I’ve upgraded to the latest Debian release for the Dragonboard 410c (#246-e4b1bcf6) and now the mraa library will not load into Python.
After installing the release I did a sudo apt update
and sudo apt upgrade
and then installed mraa following the instructions at: https://github.com/intel-iot-devkit/mraa
This gives me access to the mraa tools and it can detect the i2c device I have attached to the GPIO:
$ sudo mraa-i2c detect 0
00: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: 70 -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
However when I try to load mraa into Python I get the following error:
$ sudo python3
Python 3.5.3 (default, Jan 19 2017, 14:11:04)
[GCC 6.3.0 20170118] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import mraa
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/mraa.py", line 20, in swig_import_helper
return importlib.import_module(mname)
File "/usr/lib/python3.5/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 986, in _gcd_import
File "<frozen importlib._bootstrap>", line 969, in _find_and_load
File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 666, in _load_unlocked
File "<frozen importlib._bootstrap>", line 577, in module_from_spec
File "<frozen importlib._bootstrap_external>", line 914, in create_module
File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed
ImportError: /usr/local/lib/python3.5/dist-packages/_mraa.so: undefined symbol: mraa_i2c_lookup
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.5/dist-packages/mraa.py", line 23, in <module>
_mraa = swig_import_helper()
File "/usr/local/lib/python3.5/dist-packages/mraa.py", line 22, in swig_import_helper
return importlib.import_module('_mraa')
File "/usr/lib/python3.5/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ImportError: /usr/local/lib/python3.5/dist-packages/_mraa.so: undefined symbol: mraa_i2c_lookup
Is anyone else seeing an issue with mraa on this release?
Or do I have an issue somewhere else?
Thanks,
Barry