|
|
|
|
|
by hublio
230 days ago
|
|
Nice work, thank-you. Crashes when downloading a PDF. MIDI and MP3 work fine. MacOS Sonoma. Python 3.13. In a venv. Downloading PDF...
Unexpected error: 4)
fileName=<_io.BytesIO object at 0x10791b5b0> identity=[ImageReader@0x107931fd0] cannot identify image file <_io.BytesIO object at 0x10791b5b0>
Traceback (most recent call last):
File "/Users/user/Projects/py-librescore/venv/lib/python3.13/site-packages/reportlab/lib/utils.py", line 649, in __init__
self._image = self._read_image(self.fp)
~~~~~~~~~~~~~~~~^^^^^^^^^
File "/Users/user/Projects/py-librescore/venv/lib/python3.13/site-packages/reportlab/lib/utils.py", line 666, in _read_image
return Image.open(fp)
~~~~~~~~~~^^^^
File "/Users/user/Projects/py-librescore/venv/lib/python3.13/site-packages/PIL/Image.py", line 3560, in open
raise UnidentifiedImageError(msg)
PIL.UnidentifiedImageError: cannot identify image file <_io.BytesIO object at 0x10791b5b0> |
|