-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Failed to load document (PDFium: File access error). #421
Comments
Having the same issue on windows :( |
same here |
4 similar comments
same here |
same here |
same here |
same here |
same any solution?? |
Same in Linux any solution? |
same issue for me in marker_gui `pypdfium2._helpers.misc.PdfiumError: Failed to load document (PDFium: File access error). File "C:\Users\Felix\AppData\Local\Programs\Python\Python312\Lib\site-packages\streamlit\runtime\scriptrunner\exec_code.py", line 88, in exec_func_with_error_handling |
Windows 11
python 3.11
I encountered the following error while using the marker package to process a PDF file.
I successed in open marker_gui,but can not run Marker in marker_app.
It shows:
pypdfium2._helpers.misc.PdfiumError: Failed to load document (PDFium: File access error).
Traceback:
File "C:\Users\TJY\AppData\Roaming\Python\Python311\site-packages\streamlit\runtime\scriptrunner\exec_code.py", line 88, in exec_func_with_error_handling
result = func()
^^^^^^
File "C:\Users\TJY\AppData\Roaming\Python\Python311\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 579, in code_to_exec
exec(code, module.dict)
File "C:\Users\TJY\AppData\Roaming\Python\Python311\site-packages\marker_app.py", line 136, in
rendered = convert_pdf(
^^^^^^^^^^^^
File "C:\Users\TJY\AppData\Roaming\Python\Python311\site-packages\marker_app.py", line 37, in convert_pdf
return converter(fname)
^^^^^^^^^^^^^^^^
File "C:\Users\TJY\AppData\Roaming\Python\Python311\site-packages\marker\converters\pdf.py", line 101, in call
pdf_provider = PdfProvider(filepath, self.config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\TJY\AppData\Roaming\Python\Python311\site-packages\marker\providers\pdf.py", line 32, in init
self.doc: pdfium.PdfDocument = pdfium.PdfDocument(self.filepath)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\TJY\AppData\Roaming\Python\Python311\site-packages\pypdfium2_helpers\document.py", line 78, in init
self.raw, to_hold, to_close = _open_pdf(self._input, self._password, self._autoclose)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\TJY\AppData\Roaming\Python\Python311\site-packages\pypdfium2_helpers\document.py", line 678, in _open_pdf
raise PdfiumError(f"Failed to load document (PDFium: {pdfium_i.ErrorToStr.get(err_code)}).")
The text was updated successfully, but these errors were encountered: