I’m trying to get a Pi zero w to work with Scroll pHAT HD and am running into problems. Here’s what I’ve done so far.
Imaged an sd card with the latest version of raspbian stretch light. Got that up and running and connected to my network and have ssh access. Then expanded the file system, updated everything and enabled I2C. Then I installed the Python library using this command “curl https://get.pimoroni.com/scrollphathd | bash”
Then when I go into Python and try to do this “import scrollphathd as sphd” I get this error:
import scrollphathd as sphd
Traceback (most recent call last):
File “”, line 1, in
File “/usr/lib/python2.7/dist-packages/scrollphathd/init.py”, line 2, in
from .api.http import start_background_thread, scrollphathd_blueprint
File “/usr/lib/python2.7/dist-packages/scrollphathd/api/http.py”, line 21, in
raise ImportError(“flask must be installed in order to use the api. Install with pip install flask”)
ImportError: flask must be installed in order to use the api. Install with pip install flask
I’ve been using the instructions on this page as reference : https://learn.pimoroni.com/tutorial/sandyj/getting-started-with-scroll-phat-hd
There was an error msg when installing the python library ie
Checking packages required by I2C interface…
…Unable to install smbus for python 2!
Unable to install smbus for python 3!
Any assistance is appreciated.