-
Notifications
You must be signed in to change notification settings - Fork 685
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
Update version of pdfminer-six
to 20240706
#1166
Comments
There seems to be a bug in the latest release — pdfminer/pdfminer.six#1004 — which also happens to be throwing errors in |
I fixed the bug :) pdfminer/pdfminer.six#1027 hopefully it gets released soon! |
@dhdaines Wonderful, thanks! |
@jsvine would you consider upgrade this dependency before the next release of pdfminer.six ?
The project I'm working on uses I tested locally that |
Hi @chenxi-briink, can you try upgrading |
Hi @jsvine, Sorry that I mis-typed the version number in my previous message
should be: I forced yes that combination works for me. however, the issue is, the
For in my production environment, in which |
Hi @chenxi-briink and thanks for the clarification. That's strange; I'm running the exact same combination and seeing no error. First, I set up this fresh environment: python -m venv venv
source venv/bin/activate
pip install pdfplumber==0.11.3
pip freeze | grep pdf ... which outputs:
Then I ran this: import pdfplumber
pdf = pdfplumber.open("./ge2021_sustainability_report.pdf")
for page in pdf.pages:
assert len(pdf.objects) ... which completed without error. |
Hi @jsvine, Gee, by trying to replicate what you posted, I realised that the file I got turned out to be a modified version of the public available one I shared with you. For this modified file, the exception will occur when doing the same as you shared. I uploaded this file to a public accessible GDrive folder , basically it's a shortened version of the original GE 2021 Sustainability Report. A PDF viewer could render it w/o problem. |
Thanks for providing the updated PDF, @chenxi-briink. Using that one, I can indeed replicate the error. In this case, however, I don't plan on upgrading the dependency until at least the next As context: |
Please update the version of
pdfminer-six
to20240706
.The text was updated successfully, but these errors were encountered: