Closed r1prakash closed 11 months ago
I have just tried this package on MacOS. And it raise the same Exception.
I found the reason is package lack of data/Inconsolata.otf
.
So, I am trying to create a pull request to fix it now.
pillow<10
Should be fixed now.
File "", line 1, in
File "/home/administrator/.v27/lib/python2.7/site-packages/avatar_generator/init.py", line 42, in generate
font = cls._font(render_size)
File "/home/administrator/.v27/lib/python2.7/site-packages/avatar_generator/init.py", line 79, in _font
return ImageFont.truetype(path, size=int(0.8 * size))
File "/home/administrator/.v27/lib/python2.7/site-packages/PIL/ImageFont.py", line 280, in truetype
return FreeTypeFont(font, size, index, encoding, layout_engine)
File "/home/administrator/.v27/lib/python2.7/site-packages/PIL/ImageFont.py", line 145, in init
layout_engine=layout_engine)
IOError: cannot open resource