Installing mraa for using with Python3



As it appears that mraa is the preferred GPIO library so I’ve tried to install it on my Dragonboard.

I’ve found a number of different documented ways of install it for 96boards. Sadly none of them seems to have worked for me.

linaro@linaro-alip:~$ 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
>>> mraa.Gpio(1)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: module 'mraa' has no attribute 'Gpio'

What is the primarily supported installation method?
Is it from source? Is there a Debian package? Is it there by default or do I have to add a new repository?

Thanks in advance,


I have been following the build instructions in the mraa repository which are at:

My issue was with a missing build dependancy for python3. I needed python3-dev e.g:

sudo apt-get install git build-essential swig3.0 python3-dev nodejs-dev cmake libjson-c-dev

Not python-dev as documented:

sudo apt-get install git build-essential swig3.0 python-dev nodejs-dev cmake libjson-c-dev