Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Digiarch extract - OSError: File name too long #748

Closed
ValdemarOtte opened this issue Dec 16, 2024 · 0 comments
Closed

Digiarch extract - OSError: File name too long #748

ValdemarOtte opened this issue Dec 16, 2024 · 0 comments
Labels
bug Something isn't working investigation Investigation of feature/implementation is needed

Comments

@ValdemarOtte
Copy link

Kommandoen digiarch extract giver en OSError, hvis en given fil, som skal udpakkes, har for langt navn.

Indtil videre har jeg skubbet problemet frem ved, at sætte action til manuelt.

Problemet er opstået et par gange nu. Hvad vil vores løsning være?

2024-12-16 11:27:19 ERROR: digiarch.extract:end data=OSError(36, 'File name too long') reason=File "/volume1/homes/az69972/.local/share/pipx/venvs/digiarch/lib/python3.11/site-packages/digiarch/commands/extract/extract.py", line 229, in cmd_extract
    extracted_files_paths = extractor.extract()
                            ^^^^^^^^^^^^^^^^^^^
  File "/volume1/homes/az69972/.local/share/pipx/venvs/digiarch/lib/python3.11/site-packages/digiarch/commands/extract/extractors/extractor_msg.py", line 119, in extract
    inline_attachments, attachments = msg_attachments(msg, body_html, body_rtf)
                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/volume1/homes/az69972/.local/share/pipx/venvs/digiarch/lib/python3.11/site-packages/digiarch/commands/extract/extractors/extractor_msg.py", line 97, in msg_attachments
    elif (attachment_msg := msg_attachment(attachment)) is False:
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/volume1/homes/az69972/.local/share/pipx/venvs/digiarch/lib/python3.11/site-packages/digiarch/commands/extract/extractors/extractor_msg.py", line 77, in msg_attachment
    attachment_msg = openMsg(attachment.data, delayAttachments=True)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/volume1/homes/az69972/.local/share/pipx/venvs/digiarch/lib/python3.11/site-packages/extract_msg/open_msg.py", line 90, in openMsg
    msg = MSGFile(path, **kwargs)
          ^^^^^^^^^^^^^^^^^^^^^^^
  File "/volume1/homes/az69972/.local/share/pipx/venvs/digiarch/lib/python3.11/site-packages/extract_msg/msg_classes/msg.py", line 155, in __init__
    self.__ole = olefile.OleFileIO(path, raise_defects = defect)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/volume1/homes/az69972/.local/share/pipx/venvs/digiarch/lib/python3.11/site-packages/olefile/olefile.py", line 1127, in __init__
    self.open(filename, write_mode=write_mode)
  File "/volume1/homes/az69972/.local/share/pipx/venvs/digiarch/lib/python3.11/site-packages/olefile/olefile.py", line 1231, in open
    self.fp = open(filename, mode)
@ValdemarOtte ValdemarOtte added bug Something isn't working investigation Investigation of feature/implementation is needed labels Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working investigation Investigation of feature/implementation is needed
Projects
None yet
Development

No branches or pull requests

1 participant