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

Problem with mapped network files #286

Open
samspade opened this issue Jan 15, 2025 · 0 comments
Open

Problem with mapped network files #286

samspade opened this issue Jan 15, 2025 · 0 comments

Comments

@samspade
Copy link

I have a python script that watches a folder and when someone drops a Word or HTML document into it, it converts it to markdown and then converts the document format DocX <=> HTML.

The code runs fine when I use it on a local folder but I get the following error when I use it on a mapped network drive [Filepath] would be the file path of the document dropped into the folder.

markitdown._markitdown.FileConversionException: Could not convert '[File path]. While converting the file, the following error was encountered:

Traceback (most recent call last):
File "C:\Dev\Mammoth\Lib\site-packages\markitdown_markitdown.py", line 1239, in _convert
res = converter.convert(local_path, **_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Dev\Mammoth\Lib\site-packages\markitdown_markitdown.py", line 506, in convert
with open(local_path, "rb") as docx_file:

PermissionError: [Errno 13] Permission denied: '[File path]'

So far I have checked:

  • Folder permissions
  • Path is pointing to a file

When I run MarkItDown in the command line, it works fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant