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
You can get the list of installed Python modules:
$ pydoc modules
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