# Scroll phat : ImportError: No module named 'scrollphat'

**URL:** <https://forums.pimoroni.com/t/scroll-phat-importerror-no-module-named-scrollphat/7560>\
**Category:** Raspberry Pi\
**Created:** [April 18, 2018, 12:33pm UTC](https://forums.pimoroni.com/t/scroll-phat-importerror-no-module-named-scrollphat/7560 "2018-04-18T12:33:12Z")\
**Posts on this page:** 8\
**Page:** 2

<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:** [April 18, 2018, 2:40pm UTC](https://forums.pimoroni.com/t/scroll-phat-importerror-no-module-named-scrollphat/7560/21 "2018-04-18T14:40:58Z")

</div>

That’s bizarre. Is it possible the image itself could be corrupted? Seems unlikely! I’d bet you had a separate issue.

---

<div class="post-metadata">

**Author:** ![anon83280986](https://avatars.discourse-cdn.com/v4/letter/a/8e7dd6/32.png) [@anon83280986](https://forums.pimoroni.com/u/anon83280986)\
**Post date:** [April 18, 2018, 2:45pm UTC](https://forums.pimoroni.com/t/scroll-phat-importerror-no-module-named-scrollphat/7560/22 "2018-04-18T14:45:36Z")

</div>

OK.

Progress.

Thanks Tomm.

I had cloned the repo so I ran your suggestion:

> pi@HAL9000:~/Pimoroni/scroll-phat/examples $ python3 test-all.py  
> Traceback (most recent call last):  
> File “test-all.py”, line 10, in   
> scrollphat.set\_brightness(2)  
> File “/usr/local/lib/python3.5/dist-packages/scrollphat-0.0.7-py3.5.egg/scrollphat/ **init**.py”, line 60, in set\_brightness  
> File “/usr/local/lib/python3.5/dist-packages/scrollphat-0.0.7-py3.5.egg/scrollphat/ **init**.py”, line 26, in \_get\_controller  
> File “/usr/local/lib/python3.5/dist-packages/scrollphat-0.0.7-py3.5.egg/scrollphat/IS31FL3730.py”, line 21, in **init**  
> File “/usr/local/lib/python3.5/dist-packages/scrollphat-0.0.7-py3.5.egg/scrollphat/IS31FL3730.py”, line 62, in set\_mode  
> OSError: [Errno 121] Remote I/O error

Still errors…but different ones!

---

<div class="post-metadata">

**Author:** ![anon83280986](https://avatars.discourse-cdn.com/v4/letter/a/8e7dd6/32.png) [@anon83280986](https://forums.pimoroni.com/u/anon83280986)\
**Post date:** [April 18, 2018, 2:47pm UTC](https://forums.pimoroni.com/t/scroll-phat-importerror-no-module-named-scrollphat/7560/23 "2018-04-18T14:47:46Z")

</div>

To be fair, the Google AIY images are not exactly bombproof.

The last one worked out of the box, but disables the microphone if you did an `apt-get update` !

---

<div class="post-metadata">

**Author:** ![anon83280986](https://avatars.discourse-cdn.com/v4/letter/a/8e7dd6/32.png) [@anon83280986](https://forums.pimoroni.com/u/anon83280986)\
**Post date:** [April 18, 2018, 3:03pm UTC](https://forums.pimoroni.com/t/scroll-phat-importerror-no-module-named-scrollphat/7560/24 "2018-04-18T15:03:05Z")

</div>

OK. Going to reflash an older image.

I’ll post back here if I have any joy or not.

Thanks!

---

<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:** [April 18, 2018, 3:16pm UTC](https://forums.pimoroni.com/t/scroll-phat-importerror-no-module-named-scrollphat/7560/25 "2018-04-18T15:16:38Z")

</div>

I’m not sure if the OSError is due to the two separate i2c modules you have running, or an electrical issue.

Assuming you haven’t reflashed yet, what do you see if you run: `sudo i2cdetect -y 1`

---

<div class="post-metadata">

**Author:** ![anon83280986](https://avatars.discourse-cdn.com/v4/letter/a/8e7dd6/32.png) [@anon83280986](https://forums.pimoroni.com/u/anon83280986)\
**Post date:** [April 18, 2018, 5:34pm UTC](https://forums.pimoroni.com/t/scroll-phat-importerror-no-module-named-scrollphat/7560/26 "2018-04-18T17:34:04Z")

</div>

Hi,

Yeah not re-flashed yet but running that gives me:

> pi@HAL9000:~/Pimoroni/scroll-phat/examples $ 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: – – – – – – – – – – – – – – – –  
> 50: – – – – – – – – – – – – – – – –  
> 60: 60 – – – – – – – – – – – – – – –  
> 70: – – – – – – – –

I’m going to try a different couple of images until everything play nice together.

---

<div class="post-metadata">

**Author:** ![anon83280986](https://avatars.discourse-cdn.com/v4/letter/a/8e7dd6/32.png) [@anon83280986](https://forums.pimoroni.com/u/anon83280986)\
**Post date:** [April 19, 2018, 3:45pm UTC](https://forums.pimoroni.com/t/scroll-phat-importerror-no-module-named-scrollphat/7560/27 "2018-04-19T15:45:01Z")

</div>

Quick update:

Just re-flashed `aiyprojects-2017-09-11` which I know works with Google.

Getting these errors:

> pi@HAL9000:~/Pimoroni/scroll-phat/examples $ python3 test-all.py  
> Traceback (most recent call last):  
> File “test-all.py”, line 10, in   
> scrollphat.set\_brightness(2)  
> File “/usr/local/lib/python3.4/dist-packages/scrollphat-0.0.7-py3.4.egg/scrollphat/ **init**.py”, line 60, in set\_brightness  
> File “/usr/local/lib/python3.4/dist-packages/scrollphat-0.0.7-py3.4.egg/scrollphat/ **init**.py”, line 26, in \_get\_controller  
> File “/usr/local/lib/python3.4/dist-packages/scrollphat-0.0.7-py3.4.egg/scrollphat/IS31FL3730.py”, line 21, in **init**  
> File “/usr/local/lib/python3.4/dist-packages/scrollphat-0.0.7-py3.4.egg/scrollphat/IS31FL3730.py”, line 62, in set\_mode  
> OSError: [Errno 121] Remote I/O error

I’m going to do a fresh Raspbian install any try to put the AIY stuff on top.

---

<div class="post-metadata">

**Author:** ![anon83280986](https://avatars.discourse-cdn.com/v4/letter/a/8e7dd6/32.png) [@anon83280986](https://forums.pimoroni.com/u/anon83280986)\
**Post date:** [April 24, 2018, 5:16pm UTC](https://forums.pimoroni.com/t/scroll-phat-importerror-no-module-named-scrollphat/7560/28 "2018-04-24T17:16:33Z")

</div>

Quick update.

A fresh Raspbian install got it all working.

i also found out that you can’t use GPIO cables to connect a HAT to the Pi !

Cheers all!

[Previous page](https://forums.pimoroni.com/t/scroll-phat-importerror-no-module-named-scrollphat/7560.md?page=1)
