Skip to content

Instantly share code, notes, and snippets.

@antimodular
Created March 25, 2019 17:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save antimodular/42c5613abe1aa80b1f9385d020a7e345 to your computer and use it in GitHub Desktop.
Save antimodular/42c5613abe1aa80b1f9385d020a7e345 to your computer and use it in GitHub Desktop.
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 38491 100 38491 0 0 28534 0 0:00:01 0:00:01 --:--:-- 28554
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...
.....................
Installing python-pip...
Extracting templates from packages: 100%..
...Installing python3-pip...
..............................
Checking hardware requirements...
Checking for packages required for GPIO control...
raspi-gpio is required
.......................................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
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 required
Installing python-smbus...
python3-smbus is required
Installing python3-smbus...
Installing Inky pHAT & wHAT library for Python 2...
Collecting inky
Downloading https://files.pythonhosted.org/packages/e2/a5/8e32ed8a66aaa1ba46636a59a2f706e121fa0816b510ec5bdf1b0f94b9d7/inky-0.0.4-py2-none-any.whl
Collecting smbus2 (from inky)
Downloading https://www.piwheels.org/simple/smbus2/smbus2-0.2.3-py2.py3-none-any.whl
Requirement already satisfied: numpy in /usr/lib/python2.7/dist-packages (from inky)
Requirement already satisfied: RPi.GPIO in /usr/lib/python2.7/dist-packages (from inky)
Requirement already satisfied: spidev in /usr/lib/python2.7/dist-packages (from inky)
Installing collected packages: smbus2, inky
Successfully installed inky-0.0.4 smbus2-0.2.3
Installing Inky pHAT & wHAT library for Python 3...
Collecting inky
Downloading https://files.pythonhosted.org/packages/56/84/a5ad4c5a2c548b015ed7480568bcfbbb79f251d6995ff04f6eeabb6ce8d6/inky-0.0.4-py3-none-any.whl
Collecting smbus2 (from inky)
Using cached https://www.piwheels.org/simple/smbus2/smbus2-0.2.3-py2.py3-none-any.whl
Requirement already satisfied: RPi.GPIO in /usr/lib/python3/dist-packages (from inky)
Requirement already satisfied: spidev in /usr/lib/python3/dist-packages (from inky)
Requirement already satisfied: numpy in /usr/lib/python3/dist-packages (from inky)
Installing collected packages: smbus2, inky
Successfully installed inky-0.0.4 smbus2-0.2.3
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...
Collecting geocoder
Downloading https://files.pythonhosted.org/packages/4f/6b/13166c909ad2f2d76b929a4227c952630ebaf0d729f6317eb09cbceccbab/geocoder-1.38.1-py2.py3-none-any.whl (98kB)
100% |████████████████████████████████| 102kB 505kB/s
Collecting requests (from geocoder)
Downloading https://files.pythonhosted.org/packages/7d/e3/20f3d364d6c8e5d2353c72a67778eb189176f08e873c9900e10c0287b84b/requests-2.21.0-py2.py3-none-any.whl (57kB)
100% |████████████████████████████████| 61kB 535kB/s
Collecting future (from geocoder)
Downloading https://files.pythonhosted.org/packages/90/52/e20466b85000a181e1e144fd8305caf2cf475e2f9674e797b222f8105f5f/future-0.17.1.tar.gz (829kB)
100% |████████████████████████████████| 829kB 97kB/s
Collecting click (from geocoder)
Downloading https://files.pythonhosted.org/packages/fa/37/45185cb5abbc30d7257104c434fe0b07e5a195a6847506c074527aa599ec/Click-7.0-py2.py3-none-any.whl (81kB)
100% |████████████████████████████████| 81kB 525kB/s
Requirement already satisfied: six in /usr/lib/python2.7/dist-packages (from geocoder)
Collecting ratelim (from geocoder)
Downloading https://files.pythonhosted.org/packages/f2/98/7e6d147fd16a10a5f821db6e25f192265d6ecca3d82957a4fdd592cad49c/ratelim-0.1.6-py2.py3-none-any.whl
Collecting urllib3<1.25,>=1.21.1 (from requests->geocoder)
Downloading https://files.pythonhosted.org/packages/62/00/ee1d7de624db8ba7090d1226aebefab96a2c71cd5cfa7629d6ad3f61b79e/urllib3-1.24.1-py2.py3-none-any.whl (118kB)
100% |████████████████████████████████| 122kB 508kB/s
Collecting idna<2.9,>=2.5 (from requests->geocoder)
Downloading https://files.pythonhosted.org/packages/14/2c/cd551d81dbe15200be1cf41cd03869a46fe7226e7450af7a6545bfc474c9/idna-2.8-py2.py3-none-any.whl (58kB)
100% |████████████████████████████████| 61kB 536kB/s
Collecting chardet<3.1.0,>=3.0.2 (from requests->geocoder)
Downloading https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl (133kB)
100% |████████████████████████████████| 143kB 470kB/s
Collecting certifi>=2017.4.17 (from requests->geocoder)
Downloading https://files.pythonhosted.org/packages/60/75/f692a584e85b7eaba0e03827b3d51f45f571c2e793dd731e598828d380aa/certifi-2019.3.9-py2.py3-none-any.whl (158kB)
100% |████████████████████████████████| 163kB 407kB/s
Collecting decorator (from ratelim->geocoder)
Downloading https://files.pythonhosted.org/packages/5f/88/0075e461560a1e750a0dcbf77f1d9de775028c37a19a346a6c565a257399/decorator-4.4.0-py2.py3-none-any.whl
Building wheels for collected packages: future
Running setup.py bdist_wheel for future ... done
Stored in directory: /root/.cache/pip/wheels/0c/61/d2/d6b7317325828fbb39ee6ad559dbe4664d0896da4721bf379e
Successfully built future
Installing collected packages: urllib3, idna, chardet, certifi, requests, future, click, decorator, ratelim, geocoder
Found existing installation: idna 2.2
Not uninstalling idna at /usr/lib/python2.7/dist-packages, outside environment /usr
Found existing installation: chardet 2.3.0
Not uninstalling chardet at /usr/lib/python2.7/dist-packages, outside environment /usr
Successfully installed certifi-2019.3.9 chardet-3.0.4 click-7.0 decorator-4.4.0 future-0.17.1 geocoder-1.38.1 idna-2.8 ratelim-0.1.6 requests-2.21.0 urllib3-1.24.1
python3-geocoder is required
Installing python3-geocoder...
E: Unable to locate package python3-geocoder
Apt failed to install python3-geocoder!
Falling back on pypi...
Collecting geocoder
Using cached https://files.pythonhosted.org/packages/4f/6b/13166c909ad2f2d76b929a4227c952630ebaf0d729f6317eb09cbceccbab/geocoder-1.38.1-py2.py3-none-any.whl
Requirement already satisfied: six in /usr/lib/python3/dist-packages (from geocoder)
Collecting future (from geocoder)
Downloading https://www.piwheels.org/simple/future/future-0.17.1-py3-none-any.whl (488kB)
100% |████████████████████████████████| 491kB 172kB/s
Collecting click (from geocoder)
Using cached https://files.pythonhosted.org/packages/fa/37/45185cb5abbc30d7257104c434fe0b07e5a195a6847506c074527aa599ec/Click-7.0-py2.py3-none-any.whl
Requirement already satisfied: requests in /usr/lib/python3/dist-packages (from geocoder)
Collecting ratelim (from geocoder)
Using cached https://files.pythonhosted.org/packages/f2/98/7e6d147fd16a10a5f821db6e25f192265d6ecca3d82957a4fdd592cad49c/ratelim-0.1.6-py2.py3-none-any.whl
Collecting decorator (from ratelim->geocoder)
Using cached https://files.pythonhosted.org/packages/5f/88/0075e461560a1e750a0dcbf77f1d9de775028c37a19a346a6c565a257399/decorator-4.4.0-py2.py3-none-any.whl
Installing collected packages: future, click, decorator, ratelim, geocoder
Successfully installed click-7.0 decorator-4.4.0 future-0.17.1 geocoder-1.38.1 ratelim-0.1.6
python-beautifulsoup4 is required
Installing python-beautifulsoup4...
E: Unable to locate package python-beautifulsoup4
Apt failed to install python-beautifulsoup4!
Falling back on pypi...
Requirement already satisfied: beautifulsoup4 in /usr/lib/python2.7/dist-packages
python3-beautifulsoup4 is required
Installing python3-beautifulsoup4...
E: Unable to locate package python3-beautifulsoup4
Apt failed to install python3-beautifulsoup4!
Falling back on pypi...
Requirement already satisfied: beautifulsoup4 in /usr/lib/python3/dist-packages
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...
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...
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...
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 189kB/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...
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 202kB/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...
Collecting font_intuitive
Downloading https://files.pythonhosted.org/packages/a2/d8/6ad3c8727e8f1c91da474efb419c411ea88cd7f32ecc1a19612b14773b7f/font_intuitive-0.0.4-py2-none-any.whl (66kB)
100% |████████████████████████████████| 71kB 218kB/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...
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...
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...
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...
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 43kB/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...
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 50kB/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...
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 38kB/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...
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 42kB/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...
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)
Requirement already satisfied: requests in /usr/local/lib/python2.7/dist-packages (from wikiquotes)
Collecting slacker (from wikiquotes)
Downloading https://files.pythonhosted.org/packages/a9/7a/ad13ee89fe30ac69461ee7a3dee0882b493c8ce59b68a489948b50ac0403/slacker-0.12.0.tar.gz
Collecting unidecode (from wikiquotes)
Downloading https://files.pythonhosted.org/packages/31/39/53096f9217b057cb049fe872b7fc7ce799a1a89b76cf917d9639e7a558b5/Unidecode-1.0.23-py2.py3-none-any.whl (237kB)
100% |████████████████████████████████| 245kB 309kB/s
Requirement already satisfied: beautifulsoup4 in /usr/lib/python2.7/dist-packages (from bs4->wikiquotes)
Requirement already satisfied: urllib3<1.25,>=1.21.1 in /usr/local/lib/python2.7/dist-packages (from requests->wikiquotes)
Requirement already satisfied: idna<2.9,>=2.5 in /usr/local/lib/python2.7/dist-packages (from requests->wikiquotes)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in /usr/local/lib/python2.7/dist-packages (from requests->wikiquotes)
Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python2.7/dist-packages (from requests->wikiquotes)
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/a1/39/af/78767c6f6d99f940369bfef78b955b6996d9453c1c4bf46833
Successfully built wikiquotes bs4 slacker
Installing collected packages: bs4, slacker, unidecode, wikiquotes
Successfully installed bs4-0.0.1 slacker-0.12.0 unidecode-1.0.23 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...
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)
Collecting bs4 (from wikiquotes)
Downloading https://www.piwheels.org/simple/bs4/bs4-0.0.1-py3-none-any.whl
Collecting slacker (from wikiquotes)
Downloading https://files.pythonhosted.org/packages/41/c5/006794554034d01c7821171a5f2fe3b233f3261d7af76abbfdb0d69f1ce8/slacker-0.12.0-py3-none-any.whl
Requirement already satisfied: lxml in /usr/lib/python3/dist-packages (from wikiquotes)
Collecting unidecode (from wikiquotes)
Using cached https://files.pythonhosted.org/packages/31/39/53096f9217b057cb049fe872b7fc7ce799a1a89b76cf917d9639e7a558b5/Unidecode-1.0.23-py2.py3-none-any.whl
Requirement already satisfied: beautifulsoup4 in /usr/lib/python3/dist-packages (from bs4->wikiquotes)
Installing collected packages: bs4, slacker, unidecode, wikiquotes
Successfully installed bs4-0.0.1 slacker-0.12.0 unidecode-1.0.23 wikiquotes-1.4
Installing git...
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!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment