Hello everyone,
I have following error and I don't know how to fix it :
Code:
Status: failed
Traceback (most recent call last):
File "C:\Python34\lib\site-packages\PIL\ImageFont.py", line 239, in truetype
return FreeTypeFont(font, size, index, encoding)
File "C:\Python34\lib\site-packages\PIL\ImageFont.py", line 132, in __init__
"", size, index, encoding, self.font_bytes)
OSError: unknown file format
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Program Files (x86)\Sigil8\plugin_launchers\\python\launcher.py", line 135, in launch
self.exitcode = target_script.run(container)
File "C:\Users\Andry\AppData\Local\sigil-ebook\sigil\plugins\AddStyleFont\plugin.py", line 17, in run
font_object = ImageFont.truetype(BytesIO(bk.readfile(id)))
File "C:\Python34\lib\site-packages\PIL\ImageFont.py", line 241, in truetype
ttf_filename = os.path.basename(font)
File "C:\Python34\lib\ntpath.py", line 246, in basename
return split(p)[1]
File "C:\Python34\lib\ntpath.py", line 217, in split
d, p = splitdrive(p)
File "C:\Python34\lib\ntpath.py", line 159, in splitdrive
if len(p) > 1:
TypeError: object of type '_io.BytesIO' has no len()
Error: object of type '_io.BytesIO' has no len()
Sigil version : 0.8.4 x86
Python version : 3.4.0 x86
OS : Windows 7 x64
Can anyone help me please ? Only one computer generate this error. Others works fine.
Thanks for answer !