Import automationhat error


#1

Used the Linux script “curl -sS https://get.pimoroni.com/automationhat | bash” to load the automation HAT library. After the install is complete the window says " All Done! Enjoy your Automation HAT"

When using the “import automationhat” statement in Python 3.4.2 to load the Automation HAT library I get an error that says:

"from ads1015 import from ads1015
import error: no module named ‘ads1015’

How can I fix this?
Jim Wagoner


#2

hum, yes, I’m afraid critical fixes for Python3 made a few months back have not been pushed out to the regular channels yet.

… I’ll remind @gadgetoid in the morning but in the interim, you might want to grab the repository and install the library that way:

git clone https://github.com/pimoroni/automation-hat
cd ./automation-hat/library
sudo python3 setup.py install