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

PyMuPDF function xref_length doesn't exist in version 1.18.0 #198

Closed
nighttardis opened this issue Apr 18, 2022 · 2 comments
Closed

PyMuPDF function xref_length doesn't exist in version 1.18.0 #198

nighttardis opened this issue Apr 18, 2022 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@nighttardis
Copy link
Contributor

Describe the bug
When trying to run a PDF through Strelka with the current "build/python/backend/requiments.txt", PDF always fail with

"pdf": { "elapsed": 0.000511, "flags": [ "pdf_load_error" ], "total": { "extracted": 0, "objects": 0 } },

This is occurring because the function "xref_length" does not exist in PyMuPDF version 1.18.0

Reviewing the change history for the requirements.txt file it looks like the initial deployment of scan_pdf.py included PyMuPDF version 1.18.10, which does steam to have function. It also appears that on Aug 3rd 2021 the version was bumped to 1.18.15 and then downgrade to 1.18.0 instead of 1.18.10.

Steps to reproduce
Steps to reproduce the behavior:

  1. Build the backend using the current "build" folder
  2. Attempt to submit a PDF.

Expected behavior
Expectation that PDF are properly parsed.

Screenshots
If applicable, add screenshots to help explain your problem.

Release

  • Release: [e.g. 1.19.05.16]

Additional context
Add any other context about the problem here.

@phutelmyer
Copy link
Contributor

Thank you @nighttardis for the heads up. I'll likely be updating ScanPDF in the near future and I'll let you know when it's done testing.

@phutelmyer phutelmyer added the bug Something isn't working label Apr 20, 2022
@phutelmyer phutelmyer self-assigned this Apr 20, 2022
@phutelmyer phutelmyer mentioned this issue Apr 26, 2022
5 tasks
@phutelmyer
Copy link
Contributor

Should be fixed in #200

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants