Intel® Makers
Intel® Edison, Intel® Joule™, Intel® Curie™, Intel® Galileo
Announcements
Welcome - This is a Peer-to-Peer Forum only. Intel has discontinued these products but you may find support from other customers on this Forum
9880 Discussions

Problem using Upm library in Python

JHrib
New Contributor II
1,707 Views

Hello, everyone.

I am trying to use the upm library in Python on Intel Galileo Gen 2. More specifically I want to read data from ADS1115. The problem is that whenever I want to import upm, the Python returns me an error: "No module named upm". This means that my image does not have upm installed and for some reason, I can't install it.

I try to install upm using:

opkg install upm

results in error:

opkg_install_cmd: Cannot install package upm

I attached detail error. What is a workaround to install upm lib which will work in Python? I would like to avoid building the package as I have to install for few (5) devices.

My OS version:

3.8.7-yocto-standard

ID=iot-devkit

NAME=iot-devkit (Intel IoT Development Kit)

VERSION=1.5 (panda)

I would be willing to change OS for a different version if that would help me use upm.

Kind regards

Jernej

0 Kudos
1 Solution
JHrib
New Contributor II
301 Views

Hi, Fernando.

I solved my problem. The solution was using different OS image I got https://iotdk.intel.com/images/3.5/ here. I guess I was using wrong Intel Galileo image or something. With the new image opkg install upm works like a charm.

Kind regards

Jernej

View solution in original post

4 Replies
FTinetti
Honored Contributor I
301 Views

Hi JernejH,

I've not installed/used upm-python, but I found some references which may be useful:

https://software.intel.com/en-us/upm-sdk IoT UPM SDK - Overview | Intel® Software

https://iotdk.intel.com/docs/master/upm/installing.html upm: Installing UPM

https://github.com/intel-iot-devkit/upm/blob/master/docs/installing.md upm/installing.md at master · intel-iot-devkit/upm · GitHub

HTH,

Fernando.

JHrib
New Contributor II
301 Views

Hi, Fernando.

Thank you for your answer.

I tried this command:

bash echo "src intel-iotdk https://iotdk.intel.com/repos/3.5/intelgalactic/opkg/i586/" > /etc/opkg/intel-iotdk.conf opkg update opkg upgrade mraa upm

returns me this error:

/bin/echo: /bin/echo: cannot execute binary file

Any idea, how to fix this error?

Kind regards

Jernej

FTinetti
Honored Contributor I
301 Views

JernejH wrote:

Hi, Fernando.

Thank you for your answer.

I tried this command:

bash echo "src intel-iotdk https://iotdk.intel.com/repos/3.5/intelgalactic/opkg/i586/ https://iotdk.intel.com/repos/3.5/intelgalactic/opkg/i586/" > /etc/opkg/intel-iotdk.conf opkg update opkg upgrade mraa upm

returns me this error:

/bin/echo: /bin/echo: cannot execute binary file

Any idea, how to fix this error?

Kind regards

Jernej

Maybe you did not include all the ' and/or ` described at the page/url... try the one-step-by-line version, which I think is that described at https://github.com/intel-iot-devkit/upm/blob/master/docs/installing.md upm/installing.md at master · intel-iot-devkit/upm · GitHub:

echo "src intel-iotdk https://iotdk.intel.com/repos/3.5/intelgalactic/opkg/i586/" > /etc/opkg/intel-iotdk.conf

opkg update

opkg upgrade mraa upm

HTH,

Fernando.

PS: always try all the possibilities you find in different sites in case some of them do not work.

JHrib
New Contributor II
302 Views

Hi, Fernando.

I solved my problem. The solution was using different OS image I got https://iotdk.intel.com/images/3.5/ here. I guess I was using wrong Intel Galileo image or something. With the new image opkg install upm works like a charm.

Kind regards

Jernej

Reply