# Problem installing Automation HAT Python library

**URL:** <https://forums.pimoroni.com/t/problem-installing-automation-hat-python-library/6625>\
**Category:** Support\
**Created:** [December 13, 2017, 5:49pm UTC](https://forums.pimoroni.com/t/problem-installing-automation-hat-python-library/6625 "2017-12-13T17:49:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![besimple](https://avatars.discourse-cdn.com/v4/letter/b/da6949/32.png) [@besimple](https://forums.pimoroni.com/u/besimple)\
**Post date:** [December 13, 2017, 5:49pm UTC](https://forums.pimoroni.com/t/problem-installing-automation-hat-python-library/6625/1 "2017-12-13T17:49:00Z")

</div>

I followed instructions provided here:

> **[pimoroni/automation-hat](https://github.com/pimoroni/automation-hat)**
>
> Python library and examples for the Pimoroni Automation HAT & pHAT - pimoroni/automation-hat

First I tried automated install. While it did do quite a lot of things it also reported some errors:  
pip-3.2: error: No command by the name pip-3.2 list  
(maybe you meant “pip-3.2 install list”)  
Unable to install RPi.GPIO for python 3!

But if I try running ‘pip-3.2 list’ on the command line it works fine.

Later the execution completelly stops at the step where it is asking if I want to install complete package with examples.

Then I tried manual setup with  
sudo apt-get install python-automationhat  
and got:  
E: Unable to locate package python-automationhat

I then installed sources manualy using zip file from github.  
When I try running an example  
sudo python relay.py  
I get:  
Traceback (most recent call last):  
File “relay.py”, line 5, in   
import automationhat  
File “/usr/local/lib/python2.7/dist-packages/automationhat-0.0.4-py2.7.egg/automationhat/ **init**.py”, line 50, in   
i2c = SMBus(1)  
IOError: [Errno 2] No such file or directory

Any ideas what is wrong and what I can do?

---

<div class="post-metadata">

**Author:** ![gadgetoid](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/gadgetoid/32/13_2.png) [@gadgetoid](https://forums.pimoroni.com/u/gadgetoid)\
**Post date:** [December 13, 2017, 6:12pm UTC](https://forums.pimoroni.com/t/problem-installing-automation-hat-python-library/6625/2 "2017-12-13T18:12:23Z")

</div>

What version of Raspbian are you running? What do you see if you run: `lsb_release -a`?

---

<div class="post-metadata">

**Author:** ![cyysky](https://avatars.discourse-cdn.com/v4/letter/c/ac8455/32.png) [@cyysky](https://forums.pimoroni.com/u/cyysky)\
**Post date:** [October 24, 2019, 7:00am UTC](https://forums.pimoroni.com/t/problem-installing-automation-hat-python-library/6625/3 "2019-10-24T07:00:38Z")

</div>

I have similar issue for python 3 with raspberry pi 4 and raspbian buster  
I solved it by Turn On I2C interface in Raspberry Pi Configuration  
and sudo pip3 install smbus.

I reply this old thread for documentation and just in case anybody face same issue again.
