- Added requests and pillow/imaging(PIL) deps

master
Steve Clement 2015-03-08 20:25:38 +01:00
parent 6960f4afa8
commit 82025ee937
2 changed files with 14 additions and 3 deletions

View File

@ -9,7 +9,8 @@ Dependencies
------------ ------------
``` ```
sudo apt-get install python-imaging sudo apt-get install python-imaging python3-pip python-requests python3-requests
sudo pip-3.2 install pillow
# Initialize submodules in repo # Initialize submodules in repo
git submodule update --init git submodule update --init

14
main.py
View File

@ -1,7 +1,17 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
import Image try:
import ImageDraw import Image
import ImageDraw
HAVE_PIL = True
except:
try:
from PIL import Image
from PIL import ImageDraw
HAVE_PIL = True
except:
HAVE_PIL = False
import time import time
from rgbmatrix import Adafruit_RGBmatrix from rgbmatrix import Adafruit_RGBmatrix