-
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
source_type is not assigned, regardless of virtual environment #2281
Comments
source_type
to not be assigned.source_type
is not assigned, regardless of virtual environment
source_type
is not assigned, regardless of virtual environment
Currently can't figure out how to install Poetry from master, so I'm not yet able to test it until a new release is created. |
Installing Poetry from master does indeed solves my problem when using |
Somehow, when I install Then activate it: Which I verify with: Which gives: The bug is resolved. However, if I install But also, with
I guess the conclusion is that I should wait for a new version of poetry, so I can install it with |
For my own reference, this is not resolved in the |
Fully resolved in Poetry 1.1.0! |
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
Summary
Inside of a
conda
environment or avirtualenv
, packages are discovered, but are not assigned asource_type
attribute.To reproduce the issue with
conda
:conda
environment, for exampleconda create --name poetry-fail-env python=3.7
. Note I'm using the most recent release ofconda
which is 4.8.3conda activate poetry-fail-env
poetry new poetry-fail-proj
poetry-fail-proj
runpoetry install
Note that already packages are being updated despite being the most recent version:
poetry update --dry-run
The packages are still marked for update:
Poetry debug info:
To reproduce the issue with
virtualenv
:Same process as
conda
but usevirtualenv
instead.poetry install
poetry update --dry run
Poetry debug info:
Investigation
Digging through the code, I found these line was triggering the updates:
where
package.source_type
is an empty string, butpkg.source_type
isdirectory
.I'm not sure why the solver never assigns a value to
source_type
, but am happy to debug further asynchronously or via a video chat.Unlike #1612, reverting to
poetry 1.0.0
does not solve this problem.The text was updated successfully, but these errors were encountered: