From 0681d05c4fe680b9299411a6970e66edeb38f5a6 Mon Sep 17 00:00:00 2001 From: Juergen Weigert Date: Sat, 28 Dec 2019 01:40:50 +0100 Subject: [PATCH] Use pip3 in the hints, when it fails due to missing pyhidapi. As discussed in issue #19 --- led-badge-11x44.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/led-badge-11x44.py b/led-badge-11x44.py index 55f0ce2..4aaf062 100755 --- a/led-badge-11x44.py +++ b/led-badge-11x44.py @@ -47,6 +47,7 @@ # v0.9, 2019-07-17, jw Support 48x12 configuration too. # v0.10, 2019-09-09, jw Support for loading monochrome images. Typos fixed. # v0.11, 2019-09-29, jw New option --brightness added. +# v0.12, 2019-12-27, jw hint at pip3 -- as discussed in https://github.com/jnweiger/led-name-badge-ls32/issues/19 import sys, os, re, time, argparse from datetime import datetime @@ -64,10 +65,12 @@ except: print("ERROR: Need the pyhidapi or usb.core module.") if sys.platform == "darwin": print("""Please try + pip3 install pyhidapi pip install pyhidapi brew install hidapi""") elif sys.platform == "linux": print("""Please try + sudo pip3 install pyhidapi sudo pip install pyhidapi sudo apt-get install libhidapi-hidraw0 sudo ln -s /usr/lib/x86_64-linux-gnu/libhidapi-hidraw.so.0 /usr/local/lib/ @@ -78,7 +81,7 @@ or sys.exit(1) -__version = "0.11" +__version = "0.12" font_11x44 = ( # 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'