Skip to content

Conversation

lhoestq
Copy link
Member

@lhoestq lhoestq commented Mar 18, 2025

fir this error when accessing a local pdf

File ~/.pyenv/versions/3.12.2/envs/hf-datasets/lib/python3.12/site-packages/pdfminer/psparser.py:220, in PSBaseParser.seek(self, pos)
    218 """Seeks the parser to the given position."""
    219 log.debug("seek: %r", pos)
--> 220 self.fp.seek(pos)
    221 # reset the status for nextline()
    222 self.bufpos = pos

ValueError: seek of closed file

@lhoestq lhoestq merged commit 781ce85 into main Mar 18, 2025
2 of 3 checks passed
@lhoestq lhoestq deleted the fix-local-pdf-loading branch March 18, 2025 14:09
@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

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

Successfully merging this pull request may close these issues.

2 participants