Inky Phat isn't working

I got my Raspberry Pi 4 Model B set up today, and have attached my inkyphat via the pins. I ran the install on the command line that is referenced in the pimoroni guide here; https://learn.pimoroni.com/tutorial/sandyj/getting-started-with-inky-phat
however it doesn’t install some of the parts.
Everything installs up until python-geocoder, and from there, everything such as python3-geocoder, python-beautifulsoup4, python3-beautifulsoup4, python-fonts, python3-fonts, python-font_hanken-grotesk etc etc do not install. It simply says Apt failed to install them.

How can I install these things? Running the name-badge example simply doesn’t do anything and I’m assuming it is because of this.

Any help is much appreciated!

I had that issue a couple of days ago, it took ages but if I remember right it eventually falls back on pypy and successfully installs through there? Sometimes (P )HATs need a reboot after hardware is installed, have you rebooted since installing?

Try
sudo pip install inky
and or
sudo pip3 install inky

I’m not sure, because at the end of the command it tells me that some of the packages didn’t install and to look over the output. I can paste in a copy of the cmd output if you want?

For both of those commands, it tells me requirements already satisfied for everything it tries.

Ok, I don’t know why your getting those failed to install messages?
Maybe Sandy knows @sandyjmacdonald

Thank you for trying anyway!
The strange thing is that when I go to the python folders in file explorer, /usr/local/lib/ and look at the three python folders there, they all have the packages there?
I’m beginning to suspect I have some sort of hardware problem - I’ve ordered a new inky phat and Raspberry pi Zero W to see if I can make it work on that. Also ordered an inky what to see if that works better.

I don’t own an inky. I had a bit of a struggle getting a small SPI screen working on my Breakout garden. I’m not sure it will help you but I’ll post the link anyway.

Yeah, I’m pretty sure I got told the same but it works fine. I’ll try again later on today and check.

Sure, let me know if yours works! :)

Still not able to get my inky phat to work AT ALL. Anyone able to help me?

This is the output I get when inputting to the command line on my pi4 to install the library.

pi@raspberrypi:~ $ curl https://get.pimoroni.com/inky | bash
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 38605  100 38605    0     0   147k      0 --:--:-- --:--:-- --:--:--  147k

This script will install everything needed to use
Inky pHAT & wHAT

Always be careful when running scripts and commands copied
from the internet. Ensure they are from a trusted source.

If you want to see what this script does before running it,
you should run: 'curl https://get.pimoroni.com/inky'

Note: Inky pHAT & wHAT requires SPI communication

Do you wish to continue? [y/N] y

Checking environment...
Updating apt indexes...
.....................

Checking hardware requirements...

Checking for packages required for GPIO control...
raspi-gpio is already installed
RPi.GPIO installed and up-to-date

SPI already enabled

Checking packages required by SPI interface...
spidev installed and up-to-date

Inky pHAT & wHAT comes with examples and documentation that you may wish to install.
Performing a full install will ensure those resources are installed,
along with all required dependencies. It may however take a while!

Do you wish to perform a full install? [y/N] y

Checking for dependencies...
python-numpy is already installed
python3-numpy is already installed
python-pil is already installed
python3-pil is already installed
python-lxml is already installed
python3-lxml is already installed
python-smbus is already installed
python3-smbus is already installed

Installing Inky pHAT & wHAT library for Python 2...

Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: inky in /usr/local/lib/python2.7/dist-packages (0.0.5)
Requirement already satisfied: RPi.GPIO in /usr/lib/python2.7/dist-packages (from inky) (0.7.0)
Requirement already satisfied: smbus2 in /usr/local/lib/python2.7/dist-packages (from inky) (0.3.0)
Requirement already satisfied: spidev in /usr/lib/python2.7/dist-packages (from inky) (3.4)
Requirement already satisfied: numpy in /usr/lib/python2.7/dist-packages (from inky) (1.16.2)

Installing Inky pHAT & wHAT library for Python 3...

Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: inky in /usr/local/lib/python3.7/dist-packages (0.0.5)
Requirement already satisfied: spidev in /usr/lib/python3/dist-packages (from inky) (3.4)
Requirement already satisfied: numpy in /usr/lib/python3/dist-packages (from inky) (1.16.2)
Requirement already satisfied: smbus2 in /usr/local/lib/python3.7/dist-packages (from inky) (0.3.0)
Requirement already satisfied: RPi.GPIO in /usr/lib/python3/dist-packages (from inky) (0.7.0)

Checking for additional software...
python-geocoder is required
Installing python-geocoder...
E: Unable to locate package python-geocoder
Apt failed to install python-geocoder!
Falling back on pypi...
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: geocoder in /usr/local/lib/python2.7/dist-packages (1.38.1)
Requirement already satisfied: click in /usr/lib/python2.7/dist-packages (from geocoder) (7.0)
Requirement already satisfied: ratelim in /usr/local/lib/python2.7/dist-packages (from geocoder) (0.1.6)
Requirement already satisfied: requests in /usr/lib/python2.7/dist-packages (from geocoder) (2.21.0)
Requirement already satisfied: six in /usr/lib/python2.7/dist-packages (from geocoder) (1.12.0)
Requirement already satisfied: future in /usr/local/lib/python2.7/dist-packages (from geocoder) (0.18.2)
Requirement already satisfied: decorator in /usr/local/lib/python2.7/dist-packages (from ratelim->geocoder) (4.4.2)
python3-geocoder is required
Installing python3-geocoder...
E: Unable to locate package python3-geocoder
Apt failed to install python3-geocoder!
Falling back on pypi...
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: geocoder in /usr/local/lib/python3.7/dist-packages (1.38.1)
Requirement already satisfied: click in /usr/lib/python3/dist-packages (from geocoder) (7.0)
Requirement already satisfied: requests in /usr/lib/python3/dist-packages (from geocoder) (2.21.0)
Requirement already satisfied: ratelim in /usr/local/lib/python3.7/dist-packages (from geocoder) (0.1.6)
Requirement already satisfied: six in /usr/lib/python3/dist-packages (from geocoder) (1.12.0)
Requirement already satisfied: future in /usr/local/lib/python3.7/dist-packages (from geocoder) (0.18.2)
Requirement already satisfied: decorator in /usr/lib/python3/dist-packages (from ratelim->geocoder) (4.3.0)
python-beautifulsoup4 is required
Installing python-beautifulsoup4...
E: Unable to locate package python-beautifulsoup4
Apt failed to install python-beautifulsoup4!
Falling back on pypi...
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: beautifulsoup4 in /usr/lib/python2.7/dist-packages (4.7.1)
python3-beautifulsoup4 is required
Installing python3-beautifulsoup4...
E: Unable to locate package python3-beautifulsoup4
Apt failed to install python3-beautifulsoup4!
Falling back on pypi...
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: beautifulsoup4 in /usr/lib/python3/dist-packages (4.7.1)
python-qrcode is already installed
python3-qrcode is already installed
python-icalendar is already installed
python3-icalendar is already installed
python-fonts is required
Installing python-fonts...
E: Unable to locate package python-fonts
Apt failed to install python-fonts!
Falling back on pypi...
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: fonts in /usr/local/lib/python2.7/dist-packages (0.0.3)
python3-fonts is required
Installing python3-fonts...
E: Unable to locate package python3-fonts
Apt failed to install python3-fonts!
Falling back on pypi...
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: fonts in /usr/local/lib/python3.7/dist-packages (0.0.3)
python-font_hanken_grotesk is required
Installing python-font_hanken_grotesk...
E: Unable to locate package python-font_hanken_grotesk
Apt failed to install python-font_hanken_grotesk!
Falling back on pypi...
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: font_hanken_grotesk in /usr/local/lib/python2.7/dist-packages (0.0.2)
python3-font_hanken_grotesk is required
Installing python3-font_hanken_grotesk...
E: Unable to locate package python3-font_hanken_grotesk
Apt failed to install python3-font_hanken_grotesk!
Falling back on pypi...
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: font_hanken_grotesk in /usr/local/lib/python3.7/dist-packages (0.0.2)
python-font_intuitive is required
Installing python-font_intuitive...
E: Unable to locate package python-font_intuitive
Apt failed to install python-font_intuitive!
Falling back on pypi...
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: font_intuitive in /usr/local/lib/python2.7/dist-packages (0.0.4)
python3-font_intuitive is required
Installing python3-font_intuitive...
E: Unable to locate package python3-font_intuitive
Apt failed to install python3-font_intuitive!
Falling back on pypi...
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: font_intuitive in /usr/local/lib/python3.7/dist-packages (0.0.4)
python-font_fredoka_one is required
Installing python-font_fredoka_one...
E: Unable to locate package python-font_fredoka_one
Apt failed to install python-font_fredoka_one!
Falling back on pypi...
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: font_fredoka_one in /usr/local/lib/python2.7/dist-packages (0.0.4)
python3-font_fredoka_one is required
Installing python3-font_fredoka_one...
E: Unable to locate package python3-font_fredoka_one
Apt failed to install python3-font_fredoka_one!
Falling back on pypi...
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: font_fredoka_one in /usr/local/lib/python3.7/dist-packages (0.0.4)
python-font_source_serif_pro is required
Installing python-font_source_serif_pro...
E: Unable to locate package python-font_source_serif_pro
Apt failed to install python-font_source_serif_pro!
Falling back on pypi...
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: font_source_serif_pro in /usr/local/lib/python2.7/dist-packages (0.0.1)
python3-font_source_serif_pro is required
Installing python3-font_source_serif_pro...
E: Unable to locate package python3-font_source_serif_pro
Apt failed to install python3-font_source_serif_pro!
Falling back on pypi...
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: font_source_serif_pro in /usr/local/lib/python3.7/dist-packages (0.0.1)
python-font_source_sans_pro is required
Installing python-font_source_sans_pro...
E: Unable to locate package python-font_source_sans_pro
Apt failed to install python-font_source_sans_pro!
Falling back on pypi...
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: font_source_sans_pro in /usr/local/lib/python2.7/dist-packages (0.0.1)
python3-font_source_sans_pro is required
Installing python3-font_source_sans_pro...
E: Unable to locate package python3-font_source_sans_pro
Apt failed to install python3-font_source_sans_pro!
Falling back on pypi...
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: font_source_sans_pro in /usr/local/lib/python3.7/dist-packages (0.0.1)
python-wikiquotes is required
Installing python-wikiquotes...
E: Unable to locate package python-wikiquotes
Apt failed to install python-wikiquotes!
Falling back on pypi...
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: wikiquotes in /usr/local/lib/python2.7/dist-packages (1.4)
Requirement already satisfied: slacker in /usr/local/lib/python2.7/dist-packages (from wikiquotes) (0.14.0)
Requirement already satisfied: bs4 in /usr/local/lib/python2.7/dist-packages (from wikiquotes) (0.0.1)
Requirement already satisfied: requests in /usr/lib/python2.7/dist-packages (from wikiquotes) (2.21.0)
Requirement already satisfied: unidecode in /usr/local/lib/python2.7/dist-packages (from wikiquotes) (1.1.1)
Requirement already satisfied: lxml in /usr/lib/python2.7/dist-packages (from wikiquotes) (4.3.2)
Requirement already satisfied: beautifulsoup4 in /usr/lib/python2.7/dist-packages (from bs4->wikiquotes) (4.7.1)
python3-wikiquotes is required
Installing python3-wikiquotes...
E: Unable to locate package python3-wikiquotes
Apt failed to install python3-wikiquotes!
Falling back on pypi...
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: wikiquotes in /usr/local/lib/python3.7/dist-packages (1.4)
Requirement already satisfied: unidecode in /usr/local/lib/python3.7/dist-packages (from wikiquotes) (1.1.1)
Requirement already satisfied: requests in /usr/lib/python3/dist-packages (from wikiquotes) (2.21.0)
Requirement already satisfied: lxml in /usr/lib/python3/dist-packages (from wikiquotes) (4.3.2)
Requirement already satisfied: bs4 in /usr/local/lib/python3.7/dist-packages (from wikiquotes) (0.0.1)
Requirement already satisfied: slacker in /usr/local/lib/python3.7/dist-packages (from wikiquotes) (0.14.0)
Requirement already satisfied: beautifulsoup4 in /usr/lib/python3/dist-packages (from bs4->wikiquotes) (4.7.1)

Downloading examples and documentation...

The examples directory already exists on your system!
We've backed them up as examples-backup, just in case you've changed anything!

Resources for your Inky pHAT & wHAT were copied to
/home/pi/Pimoroni/inky

Finalising Install...


Some packages could not be installed, review the output for details!

I need this for a project and can’t get any of it to work - nothing happens on the inky phat when I run the name-badge.py example in cmd.

Would the problems in the install above result in the inky phat not doing anything?

Any help is greatly appreciated!

Alright, I did a clean install of Inky on a fresh install of Raspbian. I got the exact same error messages as you, but both InkyPHAT and InkyWHAT work perfectly fine.

Exactly which command are you running? How have you connected the board to your Pi?

unable to locate package, as far as I know, means it can’t find the online repository. What it’s looking for isn’t where the installer is saying to look for it, something like that.

I have to ask the obvious, Inky firmly attached to the Pi’s GPIO, and attached the correct way round?

I have the same problem. Did you fix it?

Same here, has anyone managed to find a fix?

Nope, never actually solved my issue. It was for a project on short notice so after I realised I couldn’t get it to work I abandoned any further attempts.

I had a bend in one of my GPIO pins which I believe was for power, although given that you both experienced the same issue here, I’m not sure that was really causing the problem.

Wish I could be more help to you guys - this issue cost me a 2:1 in my degree, haha!

I’ve just got the name badge example working! I trawled a load of forums and one suggested running this

pip3 install inky[rpi,fonts]

I did it and there we go…working…

From what I understand, the issue with Inky pHAT not showing anything is due to a driver/screen change on newer versions of the board.

In some examples they either use auto-detect if no colour is specified, or - if a colour is specified - try to run an InkyPHAT type display of that colour, whereas new boards need to use InkyPHAT_SSD1608.

I need to update these examples!

any updates on this? Got my pi and inky phat yesterday and am running into identical issues.

I had identical issues - finally found this post and discover that adding --type “phatssd1608” gets the examples working, hoping this works for the library too. The auto method does not work. This information needs to be more apparent as this is an easy fix.

How to get the mode working in the inky library as InkyPHAT doesn’t appear to accept this argument… Any ideas?

1 Like