Poetry ignores some transitive dependencies for the project
See original GitHub issue- I am on the latest Poetry version.
- I have searched the issues of this repo and believe that this is not a duplicate.
- If an exception occurs when executing a command, I executed it again in debug mode (
-vvv
option).
- OS version and name: Debian 8.11, ArchLinux
- Poetry version: 0.12.17, 1.0.0b1
- Link of a Gist with the contents of your pyproject.toml file: https://gist.github.com/ffix/5ccc5e3f84ff188f3831392a03fc4a39
Issue
It looks like Poetry ignores some transitive dependencies for the project. For example, it ignores bz2file as a dependency for the smart-open package:
$ pip check
smart-open 1.8.4 requires bz2file, which is not installed.
But dependency specified in setup.py. Full debug log is here: https://gist.github.com/ffix/77d153f8483dde2ded4dde3e35f64bfb
Another example is scikit-image:
$ pip check
scikit-image 0.13.1 requires matplotlib, which is not installed.
scikit-image 0.13.1 requires pywavelets, which is not installed.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:7 (1 by maintainers)
Top Results From Across the Web
Poetry ignores some transitive dependencies for the project
It looks like Poetry ignores some transitive dependencies for the project. For example, it ignores bz2file as a dependency for the smart-open ...
Read more >Poetry ignore dependency in pyproject.toml - Stack Overflow
I currently have a Python3 project set up with ...
Read more >Third-party dependencies - Pants build
Constraints files allow you to pin transitive dependencies to certain versions, overriding the version that pip/Pex would normally choose. Constraints files are ...
Read more >Announcing Poetry 1.2.0 | Blog
Poetry 1.2 drops support for managing Python 2.7 projects, as: ... Any dependency declared in the legacy dev-dependencies section will ...
Read more >poetry-lock-package - PyPI
Simple script that will take a pyproject.toml and a poetry.lock and generate a new poetry project where all the lock versions are pinned...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@hyacz I just reported the PyInstaller issue (pyinstaller/pyinstaller#4609), as the actual cause is conditional code to define requirements in their setup.py, instead of using PEP 508 markers.
I don’t think it is possible for Poetry to evaluate all possible branches in a setup.py that try to do “clever” things.
Noticed the same issue with:
pyinstaller 3.5 requires macholib, which is not installed.
OS: macOS 10.15.1 (19B88) Poetry version: 0.12.17
pyproject.toml