Automation Phat, on Octoprint server


#1

When trying to run the examples after a successful download of the automation hat file I get this error.

Traceback (most recent call last):
File “/home/pi/Pimoroni/automationhat/examples/output.py”, line 5, in
import automationhat
ImportError: No module named automationhat
Not sure what the issue is.


#2

Just checked continuity on all of my pins, and they are good. (going from Pi to pHat), I also plugged in the 5v from the power supply to the normally closed spot on the relay, and it powers up just like I want. I don’t understand why the python code will not work, but it seems to be having trouble mounting the directory.

Any thing helps!


#3

I also found a similar issue and ran this code.

i2cdetect -y 1 Here are the results

sudo i2cdetect -y 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: – -- – -- – -- – -- – -- – -- –
10: – -- – -- – -- – -- – -- – -- – -- – --
20: – -- – -- – -- – -- – -- – -- – -- – --
30: – -- – -- – -- – -- – -- – -- – -- – --
40: – -- – -- – -- – -- 48 – -- – -- – -- –
50: – -- – -- – -- – -- – -- – -- – -- – --
60: – -- – -- – -- – -- – -- – -- – -- – --
70: – -- – -- – -- – --


#4

How did you install the Python library?


#5

I tried a few different methods. I tried the curl link, and it installed all the directories and I can see them. I also tried from the desktop by installing pimoroni, and then going through the GUI to install automationhat