Olimex Support Forum

OLinuXino Android / Linux boards and System On Modules => A20 => Topic started by: Clic17 on December 14, 2014, 12:44:04 AM

Title: A20 Lime2 python module pyA20Lime2.gpio
Post by: Clic17 on December 14, 2014, 12:44:04 AM
I want to import the pyA20Lime2.gpio into my python script as described here:
https://pypi.python.org/pypi/pyA20Lime2

from pyA20Lime2.gpio import gpio
from pyA20Lime2.gpio import port

When running the script, I always get:

ImportError: No module named pyA20Lime2.gpio

I thought this module is included in the standard debian img file for the OLinuXino A20 Lime 2
see: https://www.olimex.com/wiki/A20-OLinuXino-LIME2#Python_library_for_GPIO.2C_I2C_and_SPI_control
Title: Re: A20 Lime2 python module pyA20Lime2.gpio
Post by: kantal on December 14, 2014, 12:25:22 PM
You can get the list of installed Python modules:
$ pydoc modules
Title: Re: A20 Lime2 python module pyA20Lime2.gpio
Post by: Gerrit on December 14, 2014, 06:16:47 PM
Quote from: Clic17 on December 14, 2014, 12:44:04 AM
I thought this module is included in the standard debian img file for the OLinuXino A20 Lime 2
see: https://www.olimex.com/wiki/A20-OLinuXino-LIME2#Python_library_for_GPIO.2C_I2C_and_SPI_control

No they are not installed by default

http://olimex.wordpress.com/2014/09/08/python-modules-for-access-to-gpio-i2c-and-spi-to-all-olinuxino-boards-and-soms-on-github/

https://github.com/OLIMEX/OLINUXINO/tree/master/SOFTWARE/Python