Community
cancel
Showing results for 
Search instead for 
Did you mean: 
AJado
Novice
1,339 Views

Import error : no module named pyupm_lm35

Hi ,

i just got started with Intel Galileo Gen2 , i decided to interface the lm35 sensor using the upm library in python

i started with

import pyupm_lm35 ( as given in the examples, in the upm repo)

it returns the following error

Import Error : no module named pyupm_lm35

same goes for the module pyupm_xbee

How do i fix it ?

I am using the stock yocto image provided by intel

5 Replies
Sergio_A_Intel
Employee
46 Views

Hi,

That error is caused because of the library location. The libraries you imported are possibly in a different directory and when you run your program, libraries are missing. How did you install these libraries and where?

Sergio

AJado
Novice
46 Views

That might have been the case if mraa and other pyupm modules such as pyupm_grove threw the same error on importing , but importing pyupm_grove and mraa does not throw any error. Also , i didnt install the libraries , i downloaded the image that had these libraries pre installed .

Sergio_A_Intel
Employee
46 Views

Hi,

Are you using the Yocto standard image or the IoT image? What is your mraa version and upm version?

Sergio

AJado
Novice
46 Views

I am using the EGLIBC image listed on this page .

https://software.intel.com/en-us/iot/hardware/galileo/downloads https://software.intel.com/en-us/iot/hardware/galileo/downloads

I am not sure about the versions , i dont have the access to my boards right now . Will revert later

Sergio_A_Intel
Employee
46 Views

Hi,

Did you have a chance to look at your mraa and upm versions? Have you made any progress with the lm35?

Sergio