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

[MRG] Change import and usage according to pdfminer latest changes #430

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

xamey
Copy link

@xamey xamey commented Jul 21, 2020

Description

Camelot's dependency pdfminer has recently published a new version (20200720).

A minor change about a class name induces that camelot can't work anymore and fail every time.

Below, a screenshot of the error that is available in the trace :

image

Source

As visible in this diff, from version 20200517 to version 20200720, the class PDFTextExtractionNotAllowed has been renamed to PDFTextExtractionNotAllowedError.

Perhaps, as we can see here and here, camelot still uses the previous syntax.

Moreover, as camelot has defined it pdfminer dependency in its requirements.txt, it automatically updated to the latest pdfminer version.

Solution

To resolve this problem, we just have to change the class name used in camelot to the new one.

@xamey xamey changed the title 🐛 Changed import and usage according to pdfminer latest changes Change import and usage according to pdfminer latest changes Jul 21, 2020
@xamey xamey changed the title Change import and usage according to pdfminer latest changes [MRG] Change import and usage according to pdfminer latest changes Jul 21, 2020
@xamey xamey marked this pull request as ready for review July 21, 2020 16:10
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.

1 participant