Skip to content

importing .txt file renders OSError: cannot open resource #14

Closed
wwwutz opened this issue Feb 21, 2024 · 1 comment
Closed

importing .txt file renders OSError: cannot open resource #14

wwwutz opened this issue Feb 21, 2024 · 1 comment

Comments

@wwwutz
Copy link
Collaborator

wwwutz commented Feb 21, 2024

File "/project/paperless/2024-02-19/Python-3.11.8/lib/python3.11/site-packages/asgiref/sync.py", line 349, in main_wrap
    raise exc_info[1]
  File "/project/paperless/2024-02-19/paperless-ngx/src/documents/consumer.py", line 525, in try_consume_file
    thumbnail = document_parser.get_thumbnail(
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/project/paperless/2024-02-19/paperless-ngx/src/paperless_text/parsers.py", line 23, in get_thumbnail
    font = ImageFont.truetype(
           ^^^^^^^^^^^^^^^^^^^
  File "/project/paperless/2024-02-19/Python-3.11.8/lib/python3.11/site-packages/PIL/ImageFont.py", line 819, in truetype
    return freetype(font)
           ^^^^^^^^^^^^^^

  File "/project/paperless/2024-02-19/Python-3.11.8/lib/python3.11/site-packages/PIL/ImageFont.py", line 816, in freetype
    return FreeTypeFont(font, size, index, encoding, layout_engine)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/project/paperless/2024-02-19/Python-3.11.8/lib/python3.11/site-packages/PIL/ImageFont.py", line 245, in __init__
    self.font = core.getfont(
                ^^^^^^^^^^^^^

OSError: cannot open resource
@wwwutz
Copy link
Collaborator Author

wwwutz commented Feb 21, 2024

fixed by #15

@wwwutz wwwutz closed this as completed Feb 21, 2024
Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant