eclipse / upm

UPM is a high level repository that provides software drivers for a wide variety of commonly used sensors and actuators. These software drivers interact with the underlying hardware platform through calls to MRAA APIs.
MIT License
663 stars 411 forks source link

Having trouble with import statement import pyupm #424

Closed kswain1 closed 8 years ago

kswain1 commented 8 years ago

This is the current error when trying to import. No module named pyupm_ili9341 Maybe it is something I did wrong with the python build. Is there anyway I can specifically build this python module?

Propanu commented 8 years ago

Hi, yes there is. When you configure the build with cmake first of all make sure BUILDSWIG=ON and BUILDSWIGPYTHON=ON. They are usually on by default. You also have the option to do Pyhon3 builds with BUILDPYTHON3=ON and this one is off by default. If you use command line, you can define these when you run cmake. With the curses interface (ccmake) you can simply toggle the options you need.

Once the makefiles have been generated now you can build a specific Python target by typing make _pyupm_<name>. In your case this would be make _pyupm_ili9341. If you also need to install the sensor driver you can descend into build/src/ili9341 and simply make install.

Propanu commented 8 years ago

@kswain1 were you able to build the module?

kswain1 commented 8 years ago

I was able to able to build the module. currently running into a mraa unspecified error?

On Tue, Jul 19, 2016 at 12:02 PM, Mihai Tudor Panu <notifications@github.com

wrote:

@kswain1 https://github.com/kswain1 were you able to build the module?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/intel-iot-devkit/upm/issues/424#issuecomment-233698722, or mute the thread https://github.com/notifications/unsubscribe-auth/AItw9OM6-qXFYV4LZ4i-N8ssBVYL_remks5qXQMJgaJpZM4ImIIk .

Propanu commented 8 years ago

Do you get the error while using this module or is it unrelated?

kswain1 commented 8 years ago

Yes it is related to the module. When I run an example program I am receiving this error. Will try deleted and redownloading the code. Currently followed this module to build the process https://learn.sparkfun.com/tutorials/using-an-lcd-on-the-edison.

Thank you for your time!

On Wed, Jul 20, 2016 at 3:06 PM, Mihai Tudor Panu notifications@github.com wrote:

Do you get the error while using this module or is it unrelated?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/intel-iot-devkit/upm/issues/424#issuecomment-234065885, or mute the thread https://github.com/notifications/unsubscribe-auth/AItw9HOGmKgaCWJWc-PjXC61vSzWzOpSks5qXn_RgaJpZM4ImIIk .

Propanu commented 8 years ago

By the way you can also use opkg to update/install our libraries from the IOTDK repository. It will save you the hassle of a build and the ili9341 module is there in our latest library. You can find more on this in the Intel® Edison Board User Guide.

Propanu commented 8 years ago

Considering this resolved for now. Let us know if you have more questions!