-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Directory does not exist errors for path dependencies #4245
Comments
This seems to be a duplicate/related to #3368 |
I'm experiencing the same issue. Downgrading to 1.1.6 is a temporary workaround. |
I downgraded poetry to v1.1.6 and still experience this same issue. |
Maybe this is caused by you lock file being generated with a newer version of Poetry. Regenerating the lock file with 1.1.6 solved it for me. |
So I played around a little and ended up getting it to work. I ended up getting it to work if I manually added the package to pyproject.toml, but when attempting to use poetry add I get this same issue in 1.1.6. |
fix: create path dependencies relative to package rather than lockfile (#4245)
fix: create path dependencies relative to package rather than lockfile (#4245)
fix: create path dependencies relative to package rather than lockfile (#4245)
fix: create path dependencies relative to package rather than lockfile (#4245)
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
-vvv
option).Issue
v1.1.7
can cause path dependencies to not be found when packages are not all at the same directory depth. This appears to happen because the dependencies are searched for relative to the lockfile rather than relative to the lockfile and package.As an example, for the directory structure
and relevant part of the
poetry.lock
file for the rootIn
1.1.7
, we get aDirectory ../lib-b does not exist
error because it tries to find the libB dependency at/../lib-b
rather than/lib/libA/../libB
.This is likely a problem with previous versions of poetry but
1.1.7
changed the lockfiles for path dependencies to be paths rather than versions so becomes apparent when installing a package.The text was updated successfully, but these errors were encountered: