# Import error

**URL:** <https://forums.pimoroni.com/t/import-error/5374>\
**Category:** Support\
**Created:** [July 21, 2017, 7:20pm UTC](https://forums.pimoroni.com/t/import-error/5374 "2017-07-21T19:20:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![daveyman123](https://avatars.discourse-cdn.com/v4/letter/d/85f322/32.png) [@daveyman123](https://forums.pimoroni.com/u/daveyman123)\
**Post date:** [July 21, 2017, 7:20pm UTC](https://forums.pimoroni.com/t/import-error/5374/1 "2017-07-21T19:20:16Z")

</div>

I am getting an error for both python3 and python2 with raspberry pi 0 and 3

I have tried installing from the git repo and enabled i2c.

i2c doesnt put out anything that is out of the ordinary

I am on retropie. I have tried it on multiple versions of retropie.

the one liner bash script doesnt work. I tried that first.

I am trying to use a scrollphat.

Here is the error:

```auto
  File "test-graph.py", line 5, in <module>
    import scrollphat
  File "/usr/lib/python3/dist-packages/scrollphat/ __init__.py", line 20, in <module>
    controller = IS31FL3730(smbus, font)
  File "/usr/lib/python3/dist-packages/scrollphat/IS31FL3730.py", line 21, in __init__
    self.set_mode(self.i2cConstants.MODE_5X11)
  File "/usr/lib/python3/dist-packages/scrollphat/IS31FL3730.py", line 62, in set_mode
    self.bus.write_i2c_block_data(self.i2cConstants.I2C_ADDR, self.i2cConstants.CMD_SET_MODE, [self.i2cConstants.MODE_5X11])
OSError: [Errno 5] Input/output error
```
