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

pdfplumber 0.5.28 requires pdfminer.six==20200517, but you have pdfminer-six 20211012 which is incompatible #531

Closed
alexreg opened this issue Nov 1, 2021 · 4 comments

Comments

@alexreg
Copy link
Contributor

alexreg commented Nov 1, 2021

Describe the bug

Upon running pip install pdfplumber, I get the following.

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
pdfplumber 0.5.28 requires pdfminer.six==20200517, but you have pdfminer-six 20211012 which is incompatible.

This is an awfully restrictive dependency, that is naturally liable to create conflicts. Perhaps you could loosen it to pdfminer.six>=20200517 (possibly with <= bound too)?

Environment

  • pdfplumber version: 0.5.28
  • Python version: 3.9.7
  • OS: macOS 12.0.1
@alexreg alexreg added the bug label Nov 1, 2021
@jsvine
Copy link
Owner

jsvine commented Nov 1, 2021

Hi @alexreg, and glad to see you around here again! Unfortunately for you, this pinned dependency is intentional and unlikely to change in the immediate future. The main reason is that pdfminer.six, while relatively mature, has introduced breaking changes from time to time, and does not use semantic versioning. Two bits of good news, though:

  • pdfplumber will likely work with whatever pdfminer.six version you prefer, so feel free to upgrade the latter. You'll get a conflict warning, but can override/ignore that.

  • The next pdfplumber release will upgrade the pinned version of pdfminer.six to the latest.

@jsvine jsvine closed this as completed Nov 1, 2021
@jsvine jsvine removed the bug label Nov 1, 2021
@alexreg
Copy link
Contributor Author

alexreg commented Nov 1, 2021

@jsvine Thanks for the clarification. That makes sense. Indeed, it's a shame that pdfminer.six doesn't use semver. (Have you tried to convince them to adopt it?)

@jsvine
Copy link
Owner

jsvine commented Nov 1, 2021

I haven't tried lobbying for that, but the maintainers appear to have decided against it — cf.: pdfminer/pdfminer.six#154 (comment)

We are not going to use semver (because pypi will get untenable confused).

@alexreg
Copy link
Contributor Author

alexreg commented Nov 1, 2021

Ah, that's a shame, but fair enough. I suppose I'll just ignore the "error" and treat it more like a warning.

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

No branches or pull requests

2 participants