[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

IOError: cannot open resource

When I run a python project with an oled display on a rasperry pi zero, 
it calls for the Minecraftia.ttf font. I have the said file in 

I get this error:

pi at raspberrypi:~/Downloads $ python interdisplay.py
Traceback (most recent call last):
   File "interdisplay.py", line 220, in <module>
   File "interdisplay.py", line 26, in display_time
     font = ImageFont.truetype('home/pi/.fonts/Minecraftia.ttf', 35)
   File "/usr/lib/python2.7/dist-packages/PIL/ImageFont.py", line 280, 
in truetype
     return FreeTypeFont(font, size, index, encoding, layout_engine)
   File "/usr/lib/python2.7/dist-packages/PIL/ImageFont.py", line 145, 
in __init__
IOError: cannot open resource

PILLOW version forked from PIL 1.1.7

I have no idea to what to do about this.