Ich habe Python-FotoBox-Script sehr gut auf meinem Ubuntu labtop arbeiten, aber auf Raspberry-Pi läuft Raspbian das Skript das folgende Problem hat:Python Imaging Library, ImageFont IOError
[email protected]:~/Desktop/FotoBox $ python PythonCollage_31.py
Traceback (most recent call last):
File "PythonCollage_31.py", line 49, in <module>
font = ImageFont.truetype("/usr/share/fonts/truetype/msttcorefonts/Comic_Sans_MS.ttf", 80, 0, 'unic')
File "/usr/lib/python2.7/dist-packages/PIL/ImageFont.py", line 240, in truetype
return FreeTypeFont(font, size, index, encoding)
File "/usr/lib/python2.7/dist-packages/PIL/ImageFont.py", line 137, in __init__
self.font = core.getfont(font, size, index, encoding)
IOError: unknown file format
ich auch versucht haben, Um das Schriftartenobjekt unter Verwendung einer anderen Codezeile zu erzeugen:
aber mit dem gleichen Ergebnis.
Die Datei mit der Schrift existiert sicher!
[email protected]:~/Desktop/FotoBox $ ls -l /usr/share/fonts/truetype/msttcorefonts/
insgesamt 4
-rw-r--r-- 1 root root 128 Jun 17 22:04 Comic_Sans_MS.ttf