Community
cancel
Showing results for 
Search instead for 
Did you mean: 
NRuiz2
Novice
2,171 Views

Mraa error - ImportError: File not found

Hi, I need your help,

When I try to use mraa library for python, I have this error:

import mraa

 

Traceback (most recent call last):

 

File "", line 1, in

 

File "/usr/lib/python2.7/site-packages/mraa.py", line 32, in

 

_mraa = swig_import_helper()

 

File "/usr/lib/python2.7/site-packages/mraa.py", line 28, in swig_import_helper

 

_mod = imp.load_module('_mraa', fp, pathname, description)

 

ImportError: File not found

I used the steps in this page: https://github.com/intel-iot-devkit/mraa/blob/master/README.md https://github.com/intel-iot-devkit/mraa/blob/master/README.md

 

Installing on Intel 32bit Yocto based opkg image

For true, I've Intel Galileo 1Gen, and this SDImage is this: https://software.intel.com/en-us/iot/hardware/galileo/downloads https://software.intel.com/en-us/iot/hardware/galileo/downloads

Latest Yocto* Poky Image (210 MB)

Can you help me please?, Thanks!

0 Kudos
4 Replies
idata
Community Manager
110 Views

Hi NandaRuiz,

 

 

Thanks for your interest in the Intel® Galileo Platform.

 

 

We appreciate all the information provided. We'd love to help you with it, and we would like to suggest you to configure your Galileo to fetch packages from the AlexT's repo, please follow the instructions here: http://alextgalileo.altervista.org/package-repo-configuration-instructions.html AlexT's Galileo & Edison pages, then use opkg update and opkg install mraa. Additionally, could you please let us know the output of this command opkg info mraa?

 

 

We'll be waiting for your reply.

 

 

Regards,

 

-Yermi A.

 

idata
Community Manager
110 Views

Hi NandaRuiz,

 

 

We would like to know if you tried our suggestions, if so, could you please let us know the output of this command opkg info mraa?

 

 

Regards,

 

-Yermi A.

 

NRuiz2
Novice
110 Views

I, I'm sorry for late...

this is the answer:

https://github.com/intel-iot-devkit/mraa/issues/656 error with mraa library on Python from Galileo · Issue # 656 · intel-iot-devkit/mraa · GitHub

I was using a copy-paste version to run only little sketch of Arduino and no-Python programs of the Intel Galileo.

root@galileo:~# cat /etc/os-release

 

ID=iot-devkit

 

NAME=iot-devkit (Intel IoT Development Kit)

 

VERSION=3.5 (tarsier)

 

VERSION_ID=3.5

 

PRETTY_NAME=iot-devkit (Intel IoT Development Kit) 3.5 (tarsier)

Thanks!

idata
Community Manager
110 Views

Hi NandaRuiz,

We're happy to know your issue was solved. If you have any other question don't hesitate to open a new thread and we'll be happy to help you.

Have a nice day!

Regards,

-Yermi A.

Reply