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

Fix local pdf loading #7466

Merged
merged 1 commit into from
Mar 18, 2025
Merged

Fix local pdf loading #7466

merged 1 commit into from
Mar 18, 2025

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