Automation hat install issues on pi3


#1

IC2 detected at 48, but when I run any of the examples it cant find ads module ‘ads1015’


#2

have you installed the library itself? if so how (manually or using the one-line installer mentioned in the github repo)?

another possibility is that you have a file named automation.py in the same folder as the examples, that is a common stumbling block and python will try to import that file as opposed to the real library, buried in your system.


#3

one liner in git hub for install, I will check the file


#4

only example files input output and relay.


#5

I started fresh with a clean image updated etc. one line easy install Curl -sS… Still thinks that :
from ads1015 import ads1015
Import Error: No module named ‘ads1015’

Is there another way to install such that this will not happen?


#6

ok so if you run the moule in python 2 no problem python 3 is where the error shows up?


#7

great detective work!

@gadgetoid just fixed the issue.

To install, pending packaging and release you should make a clone of the repo and run sudo python3 setup.py install from within in the /library folder.


#8

Works like a charm, Thanks