- Added requests and pillow/imaging(PIL) deps
parent
6960f4afa8
commit
82025ee937
|
@ -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
14
main.py
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue