pimoroni / inky

Combined library for V2/V3 Inky pHAT and Inky wHAT.
https://shop.pimoroni.com/?q=inky
MIT License
578 stars 121 forks source link

`clean.py` doesn't work on Inky pHAT no matter what you do #118

Closed raspberrycoulis closed 3 years ago

raspberrycoulis commented 3 years ago

I believe I have an early model Inky pHAT (Yellow), but trying to run the clean.py example to clear my screen does not work, no matter what I try.

Running ./clean.py -t phat -c yellow results in:

Inky pHAT: Clean

Displays solid blocks of red, black, and white to clean the Inky pHAT
display of any ghosting.

Failed to detect an Inky board, you must specify the type and colour manually.

usage: clean.py [-h] [--number NUMBER]
clean.py: error: unrecognized arguments: -t phat -c yellow

Based on the above, it looks like the argument -n x is required, so tried again with ./clean.py -t phat -c yellow -n 1 but get the exact same error message.

However, running other examples - such as name-badge.py with the same -t phat -c yellow works just fine, but the script still complains:

Inky pHAT/wHAT: Hello... my name is:

Use Inky pHAT/wHAT as a personalised name badge!

Failed to detect an Inky board, you must specify the type and colour manually.
raspberrycoulis commented 3 years ago

There are also many installation issues when running curl https://get.pimoroni.com/inky | bash, such as:

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
Note: Inky pHAT & wHAT requires I2C communication

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

Checking environment...
Updating apt indexes...
...............
Installing python-pip...
Extracting templates from packages: 100%
.....................Installing python3-pip...
........................
Checking hardware requirements...

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

SPI must be enabled for Inky pHAT & wHAT to work
SPI is now enabled

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

I2C must be enabled for Inky pHAT & wHAT to work
I2C is now enabled

Checking packages required by I2C interface...
Python 2 smbus installed and up-to-date
Python 3 smbus 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 required
Installing python-numpy...
python3-numpy is required
Installing python3-numpy...
python-pil is required
Installing python-pil...
python3-pil is required
Installing python3-pil...
python-lxml is required
Installing python-lxml...
python3-lxml is required
Installing python3-lxml...
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
Collecting inky
  Downloading https://files.pythonhosted.org/packages/86/da/824b373c86698cc4211183d57a3723aaf7636a56e905b2bfe1c9ea72b69a/inky-1.2.0.tar.gz
Requirement already satisfied: numpy in /usr/lib/python2.7/dist-packages (from inky) (1.16.2)
Collecting smbus2 (from inky)
  Downloading https://files.pythonhosted.org/packages/c8/bf/62ef029fb7077fc87c3539f7365859bccc6cedb2bb20796b737b788c8d09/smbus2-0.4.1-py2.py3-none-any.whl
Requirement already satisfied: spidev in /usr/lib/python2.7/dist-packages (from inky) (3.5)
Building wheels for collected packages: inky
  Running setup.py bdist_wheel for inky ... done
  Stored in directory: /root/.cache/pip/wheels/a4/e1/39/3a25098ff2d9d0348326a0f1ff3a881454fbcab76147d9b6af
Successfully built inky
Installing collected packages: smbus2, inky
Successfully installed inky-1.2.0 smbus2-0.4.1

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

Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting inky
  Downloading https://files.pythonhosted.org/packages/01/d4/a674a55657ae252629b90f62c27088fe9509eca38619e62641a8343cbbd3/inky-1.2.0-py3-none-any.whl
Collecting smbus2 (from inky)
  Using cached https://files.pythonhosted.org/packages/c8/bf/62ef029fb7077fc87c3539f7365859bccc6cedb2bb20796b737b788c8d09/smbus2-0.4.1-py2.py3-none-any.whl
Requirement already satisfied: numpy in /usr/lib/python3/dist-packages (from inky) (1.16.2)
Requirement already satisfied: spidev in /usr/lib/python3/dist-packages (from inky) (3.5)
Installing collected packages: smbus2, inky
Successfully installed inky-1.2.0 smbus2-0.4.1

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
Collecting geocoder
  Downloading https://files.pythonhosted.org/packages/4f/6b/13166c909ad2f2d76b929a4227c952630ebaf0d729f6317eb09cbceccbab/geocoder-1.38.1-py2.py3-none-any.whl (98kB)
    100% |████████████████████████████████| 102kB 396kB/s
Collecting click (from geocoder)
  Downloading https://files.pythonhosted.org/packages/d2/3d/fa76db83bf75c4f8d338c2fd15c8d33fdd7ad23a9b5e57eb6c5de26b430e/click-7.1.2-py2.py3-none-any.whl (82kB)
    100% |████████████████████████████████| 92kB 458kB/s
Collecting ratelim (from geocoder)
  Downloading https://files.pythonhosted.org/packages/f2/98/7e6d147fd16a10a5f821db6e25f192265d6ecca3d82957a4fdd592cad49c/ratelim-0.1.6-py2.py3-none-any.whl
Collecting requests (from geocoder)
  Downloading https://files.pythonhosted.org/packages/92/96/144f70b972a9c0eabbd4391ef93ccd49d0f2747f4f6a2a2738e99e5adc65/requests-2.26.0-py2.py3-none-any.whl (62kB)
    100% |████████████████████████████████| 71kB 489kB/s
Requirement already satisfied: six in /usr/lib/python2.7/dist-packages (from geocoder) (1.12.0)
Collecting future (from geocoder)
  Downloading https://files.pythonhosted.org/packages/45/0b/38b06fd9b92dc2b68d58b75f900e97884c45bedd2ff83203d933cf5851c9/future-0.18.2.tar.gz (829kB)
    100% |████████████████████████████████| 829kB 90kB/s
Collecting decorator (from ratelim->geocoder)
  Downloading https://files.pythonhosted.org/packages/ed/1b/72a1821152d07cf1d8b6fce298aeb06a7eb90f4d6d41acec9861e7cc6df0/decorator-4.4.2-py2.py3-none-any.whl
Collecting urllib3<1.27,>=1.21.1 (from requests->geocoder)
  Downloading https://files.pythonhosted.org/packages/5f/64/43575537846896abac0b15c3e5ac678d787a4021e906703f1766bfb8ea11/urllib3-1.26.6-py2.py3-none-any.whl (138kB)
    100% |████████████████████████████████| 143kB 338kB/s
Collecting certifi>=2017.4.17 (from requests->geocoder)
  Downloading https://files.pythonhosted.org/packages/05/1b/0a0dece0e8aa492a6ec9e4ad2fe366b511558cdc73fd3abc82ba7348e875/certifi-2021.5.30-py2.py3-none-any.whl (145kB)
    100% |████████████████████████████████| 153kB 335kB/s
Collecting idna<3,>=2.5; python_version < "3" (from requests->geocoder)
  Downloading https://files.pythonhosted.org/packages/a2/38/928ddce2273eaa564f6f50de919327bf3a00f091b5baba8dfa9460f3a8a8/idna-2.10-py2.py3-none-any.whl (58kB)
    100% |████████████████████████████████| 61kB 323kB/s
Requirement already satisfied: chardet<5,>=3.0.2; python_version < "3" in /usr/lib/python2.7/dist-packages (from requests->geocoder) (3.0.4)
Building wheels for collected packages: future
  Running setup.py bdist_wheel for future ... done
  Stored in directory: /root/.cache/pip/wheels/8b/99/a0/81daf51dcd359a9377b110a8a886b3895921802d2fc1b2397e
Successfully built future
Installing collected packages: click, decorator, ratelim, urllib3, certifi, idna, requests, future, geocoder
Successfully installed certifi-2021.5.30 click-7.1.2 decorator-4.4.2 future-0.18.2 geocoder-1.38.1 idna-2.10 ratelim-0.1.6 requests-2.26.0 urllib3-1.26.6
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
Collecting geocoder
  Using cached https://files.pythonhosted.org/packages/4f/6b/13166c909ad2f2d76b929a4227c952630ebaf0d729f6317eb09cbceccbab/geocoder-1.38.1-py2.py3-none-any.whl
Collecting future (from geocoder)
  Downloading https://www.piwheels.org/simple/future/future-0.18.2-py3-none-any.whl (491kB)
    100% |████████████████████████████████| 491kB 158kB/s
Requirement already satisfied: six in /usr/lib/python3/dist-packages (from geocoder) (1.12.0)
Collecting ratelim (from geocoder)
  Using cached https://files.pythonhosted.org/packages/f2/98/7e6d147fd16a10a5f821db6e25f192265d6ecca3d82957a4fdd592cad49c/ratelim-0.1.6-py2.py3-none-any.whl
Requirement already satisfied: requests in /usr/lib/python3/dist-packages (from geocoder) (2.21.0)
Collecting click (from geocoder)
  Downloading https://files.pythonhosted.org/packages/76/0a/b6c5f311e32aeb3b406e03c079ade51e905ea630fc19d1262a46249c1c86/click-8.0.1-py3-none-any.whl (97kB)
    100% |████████████████████████████████| 102kB 434kB/s
Collecting decorator (from ratelim->geocoder)
  Downloading https://files.pythonhosted.org/packages/6a/36/b1b9bfdf28690ae01d9ca0aa5b0d07cb4448ac65fb91dc7e2d094e3d992f/decorator-5.0.9-py3-none-any.whl
Collecting importlib-metadata; python_version < "3.8" (from click->geocoder)
  Downloading https://files.pythonhosted.org/packages/3f/e1/e5bba549a033adf77448699a34ecafc7a32adaeeb4369396b35f56d5cc3e/importlib_metadata-4.6.1-py3-none-any.whl
Collecting typing-extensions>=3.6.4; python_version < "3.8" (from importlib-metadata; python_version < "3.8"->click->geocoder)
  Downloading https://files.pythonhosted.org/packages/2e/35/6c4fff5ab443b57116cb1aad46421fb719bed2825664e8fe77d66d99bcbc/typing_extensions-3.10.0.0-py3-none-any.whl
Collecting zipp>=0.5 (from importlib-metadata; python_version < "3.8"->click->geocoder)
  Downloading https://files.pythonhosted.org/packages/92/d9/89f433969fb8dc5b9cbdd4b4deb587720ec1aeb59a020cf15002b9593eef/zipp-3.5.0-py3-none-any.whl
Installing collected packages: future, decorator, ratelim, typing-extensions, zipp, importlib-metadata, click, geocoder
Successfully installed click-8.0.1 decorator-5.0.9 future-0.18.2 geocoder-1.38.1 importlib-metadata-4.6.1 ratelim-0.1.6 typing-extensions-3.10.0.0 zipp-3.5.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 required
Installing python-qrcode...
python3-qrcode is required
Installing python3-qrcode...
python-icalendar is required
Installing python-icalendar...
python3-icalendar is required
Installing python3-icalendar...
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
Collecting fonts
  Downloading https://files.pythonhosted.org/packages/1a/09/d3d1ab62e91b5b0167e155779120b4127d5fb622da2ffcd9bd418d21198f/fonts-0.0.3-py2-none-any.whl
Installing collected packages: fonts
Successfully installed fonts-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
Collecting fonts
  Downloading https://files.pythonhosted.org/packages/3e/6a/ff04b5b3d22389aa57d09989ea708b93ca8f09ff57828d1ffb12ae6424a6/fonts-0.0.3-py3-none-any.whl
Installing collected packages: fonts
Successfully installed fonts-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
Collecting font_hanken_grotesk
  Downloading https://files.pythonhosted.org/packages/f1/8f/4529f17d8578d900cea54538b0e1020473203ac62cb4fafcd76f03342370/font_hanken_grotesk-0.0.2-py2-none-any.whl (391kB)
    100% |████████████████████████████████| 399kB 181kB/s
Installing collected packages: font-hanken-grotesk
Successfully installed font-hanken-grotesk-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
Collecting font_hanken_grotesk
  Downloading https://files.pythonhosted.org/packages/fb/a5/2d62a85490b89381327dbfe4ece48fe9b7bda44ce564ec00d98e571d4891/font_hanken_grotesk-0.0.2-py3-none-any.whl (391kB)
    100% |████████████████████████████████| 399kB 185kB/s
Installing collected packages: font-hanken-grotesk
Successfully installed font-hanken-grotesk-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
Collecting font_intuitive
  Downloading https://files.pythonhosted.org/packages/a2/d8/6ad3c8727e8f1c91da474efb419c411ea88cd7f32ecc1a19612b14773b7f/font_intuitive-0.0.4-py2-none-any.whl (66kB)
    100% |████████████████████████████████| 71kB 238kB/s
Installing collected packages: font-intuitive
Successfully installed font-intuitive-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
Collecting font_intuitive
  Downloading https://files.pythonhosted.org/packages/cb/2b/e1327922695f8800e91c0917fa9f4c14ee9737dff974f127fde8341d68e6/font_intuitive-0.0.4-py3-none-any.whl
Installing collected packages: font-intuitive
Successfully installed font-intuitive-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
Collecting font_fredoka_one
  Downloading https://files.pythonhosted.org/packages/8a/57/08daf462fa61641a26c9ff3c1cd0b23b3b79ddeb319b871de335b48775b4/font_fredoka_one-0.0.4-py2-none-any.whl
Installing collected packages: font-fredoka-one
Successfully installed font-fredoka-one-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
Collecting font_fredoka_one
  Downloading https://files.pythonhosted.org/packages/44/eb/3b8e4e23afab4da77eb4744b36db9d11d9a4e85398314483006cb53fb1bf/font_fredoka_one-0.0.4-py3-none-any.whl
Installing collected packages: font-fredoka-one
Successfully installed font-fredoka-one-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
Collecting font_source_serif_pro
  Downloading https://files.pythonhosted.org/packages/b7/6a/6abb168e0e754989979ba142962789c6a821172167406907f680cdd47824/font_source_serif_pro-0.0.1-py2-none-any.whl (1.8MB)
    100% |████████████████████████████████| 1.8MB 41kB/s
Installing collected packages: font-source-serif-pro
Successfully installed font-source-serif-pro-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
Collecting font_source_serif_pro
  Downloading https://files.pythonhosted.org/packages/5d/06/bbb42742135b3fc99cf330dfcc47701d46967aae602f29f4b52b5967a912/font_source_serif_pro-0.0.1-py3-none-any.whl (1.8MB)
    100% |████████████████████████████████| 1.8MB 48kB/s
Installing collected packages: font-source-serif-pro
Successfully installed font-source-serif-pro-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
Collecting font_source_sans_pro
  Downloading https://files.pythonhosted.org/packages/02/ef/f3d2e4efe40cdb153802a97c7a95b213703a5a7ec3d514459095d3cda251/font_source_sans_pro-0.0.1-py2-none-any.whl (2.2MB)
    100% |████████████████████████████████| 2.2MB 36kB/s
Installing collected packages: font-source-sans-pro
Successfully installed font-source-sans-pro-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
Collecting font_source_sans_pro
  Downloading https://files.pythonhosted.org/packages/4c/95/3d29d2f821bd368f74ab5fe5e7d5bf0a55a0a26d3202a56526f475e51c1b/font_source_sans_pro-0.0.1-py3-none-any.whl (2.2MB)
    100% |████████████████████████████████| 2.2MB 38kB/s
Installing collected packages: font-source-sans-pro
Successfully installed font-source-sans-pro-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
Collecting wikiquotes
  Downloading https://files.pythonhosted.org/packages/e6/45/0ed50f224a4559fcaea28b851b6b896cb5a0f5c8a5c382034f82e92a664d/wikiquotes-1.4.tar.gz
Collecting bs4 (from wikiquotes)
  Downloading https://files.pythonhosted.org/packages/10/ed/7e8b97591f6f456174139ec089c769f89a94a1a4025fe967691de971f314/bs4-0.0.1.tar.gz
Requirement already satisfied: lxml in /usr/lib/python2.7/dist-packages (from wikiquotes) (4.3.2)
Requirement already satisfied: requests in /usr/local/lib/python2.7/dist-packages (from wikiquotes) (2.26.0)
Collecting slacker (from wikiquotes)
  Downloading https://files.pythonhosted.org/packages/ce/e5/ea90f49e6d0905dcb2d0ab47e068b8f28f87dd97bd2e599164c693a52691/slacker-0.14.0.tar.gz
Collecting unidecode (from wikiquotes)
  Downloading https://files.pythonhosted.org/packages/9e/25/723487ca2a52ebcee88a34d7d1f5a4b80b793f179ee0f62d5371938dfa01/Unidecode-1.2.0-py2.py3-none-any.whl (241kB)
    100% |████████████████████████████████| 245kB 280kB/s
Requirement already satisfied: beautifulsoup4 in /usr/lib/python2.7/dist-packages (from bs4->wikiquotes) (4.7.1)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in /usr/local/lib/python2.7/dist-packages (from requests->wikiquotes) (1.26.6)
Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python2.7/dist-packages (from requests->wikiquotes) (2021.5.30)
Requirement already satisfied: idna<3,>=2.5; python_version < "3" in /usr/local/lib/python2.7/dist-packages (from requests->wikiquotes) (2.10)
Requirement already satisfied: chardet<5,>=3.0.2; python_version < "3" in /usr/lib/python2.7/dist-packages (from requests->wikiquotes) (3.0.4)
Building wheels for collected packages: wikiquotes, bs4, slacker
  Running setup.py bdist_wheel for wikiquotes ... done
  Stored in directory: /root/.cache/pip/wheels/0e/70/6f/0622d0ecbfee175c7f76dd337e91032a1e303ca1af6dccc85e
  Running setup.py bdist_wheel for bs4 ... done
  Stored in directory: /root/.cache/pip/wheels/a0/b0/b2/4f80b9456b87abedbc0bf2d52235414c3467d8889be38dd472
  Running setup.py bdist_wheel for slacker ... done
  Stored in directory: /root/.cache/pip/wheels/7e/ed/ff/f60455391d9ee3bb371ba41f1eb7eac0008e93cd3c6677a690
Successfully built wikiquotes bs4 slacker
Installing collected packages: bs4, slacker, unidecode, wikiquotes
Successfully installed bs4-0.0.1 slacker-0.14.0 unidecode-1.2.0 wikiquotes-1.4
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
Collecting wikiquotes
  Downloading https://www.piwheels.org/simple/wikiquotes/wikiquotes-1.4-py3-none-any.whl
Requirement already satisfied: requests in /usr/lib/python3/dist-packages (from wikiquotes) (2.21.0)
Collecting bs4 (from wikiquotes)
  Downloading https://www.piwheels.org/simple/bs4/bs4-0.0.1-py3-none-any.whl
Collecting unidecode (from wikiquotes)
  Using cached https://files.pythonhosted.org/packages/9e/25/723487ca2a52ebcee88a34d7d1f5a4b80b793f179ee0f62d5371938dfa01/Unidecode-1.2.0-py2.py3-none-any.whl
Requirement already satisfied: lxml in /usr/lib/python3/dist-packages (from wikiquotes) (4.3.2)
Collecting slacker (from wikiquotes)
  Downloading https://www.piwheels.org/simple/slacker/slacker-0.14.0-py3-none-any.whl
Requirement already satisfied: beautifulsoup4 in /usr/lib/python3/dist-packages (from bs4->wikiquotes) (4.7.1)
Installing collected packages: bs4, unidecode, slacker, wikiquotes
Successfully installed bs4-0.0.1 slacker-0.14.0 unidecode-1.2.0 wikiquotes-1.4

Downloading examples and documentation...
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!

This is on a fresh installation of Raspberry Pi OS Lite on 19 July 2021, running on a Raspberry Pi Zero W. Python 3 version 3.7.3 and Python 2 version 2.7.16 if that helps at all.

Gadgetoid commented 3 years ago

The install issues are normal, we prefer apt packages where available and fall back to pypi- this ends up being a bit noisy, eg:

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
Collecting wikiquotes
  Downloading https://www.piwheels.org/simple/wikiquotes/wikiquotes-1.4-py3-none-any.whl

As for clean.py it looks like parse_args needs to change to parse_known_args on this line: https://github.com/pimoroni/inky/blob/e073c8e5d1bffa27f370c0c6ae1ecccabb62a366/examples/clean.py#L22

That's a bug!

Edit: or, more specifically, it should be:

args, _ = parser.parse_known_args()
raspberrycoulis commented 3 years ago

Just adding - I have changed the line mentioned above and this now works as expected.