Subsequent poetry install
fails with transitive path dependencies via git subdir dependency
#10194
Labels
poetry install
fails with transitive path dependencies via git subdir dependency
#10194
Description
Poetry fails to correctly install when it has a transitive path dependency via a git subdirectory dependency.
Same as this closed issue #8765; the example is taken from there and modified to run
poetry install
twice.It appears to succeed on first install, but breaks on any subsequent attempts with the message
Directory /usr/lib for namespace-lib does not seem to be a Python package
(or more oftenPath <path> for <package> does not exist
in cases when the incorrectly resolved path doesn't correspond to an existing dir).Workarounds
Remove the current env and start fresh for every install/sync
Poetry Installation Method
pip
Operating System
macos 14.1.2 + debian 12 (6.12.9-200.fc41.aarch64)
Poetry Version
2.1.1
Poetry Configuration
Python Sysconfig
No response
Example pyproject.toml
Poetry Runtime Logs
Reproduce with:
Output:
The text was updated successfully, but these errors were encountered: