-
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
Setting a default repository breaks dependency resolution for some packages. #2418
Comments
default = true
for my private repository breaks dependency resolution for some packages.
I got same problem even without default=true The problematic package is 'cvxopt'. It depends on 'mkl' and 'intel-openmp' When I do 'poetry add cvxopt' it install only the cvxopt package and not the dependecies. |
Got same issue here. |
Duplicate: #1160 |
Anyone found a fix for this yet? Still experiencing with |
I am unable to reproduce this issue with $ podman run --rm -i --entrypoint bash python:3.8 <<EOF
> set -e
> python -m pip install -q poetry
> install -d foobar
> pushd foobar
> curl -sLO https://gist.githubusercontent.com/joel-wright/a92d10e84a46a35ca33764d8bb3210a4/raw/48d72688838a850f18e09b8c8fc953818d4d0f9e/pyproject.toml
> poetry add scikit-learn
> EOF
WARNING: You are using pip version 20.2.3; however, version 20.2.4 is available.
You should consider upgrading via the '/usr/local/bin/python -m pip install --upgrade pip' command.
/foobar /
Creating virtualenv test-default-lWDpn5M1-py3.8 in /root/.cache/pypoetry/virtualenvs
Using version ^0.23.2 for scikit-learn
Updating dependencies
Resolving dependencies...
Writing lock file
Package operations: 5 installs, 0 updates, 0 removals
• Installing numpy (1.19.2)
• Installing joblib (0.17.0)
• Installing scipy (1.5.3)
• Installing threadpoolctl (2.1.0)
• Installing scikit-learn (0.23.2) |
Could also be caused by #4439 |
This seems to be an issue with metadata identification that was resolved in latest poetry release. You could also try the version on master. Note that your project must use Install Poetry from VCSpipx install --force --suffix=@git 'poetry @ git+https://github.com/python-poetry/poetry.git'
alias poetry=poetry@git
poetry new foobar
cd foobar
poetry source add --default pypi-simple https://pypi.org/simple/
poetry add scikit-learn You can also try |
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
Setting
default = true
in[[tool.poetry.source]]
for my private pypi repository mirror breaks dependency resolution forscikit-learn
. I have recreated the behaviour by providing a named default pointing to the pypi simple index.Using the above
pyproject.toml
,poetry add scikit-learn
finds no dependencies & installs only the scikit-learn package, and mypoetry.lock
includes a[package.source]
for my explicit default.Removing
default = true
gives the correct dependencies (numpy
,scipy
,joblib
&threadpoolctl
), but thepoetry.lock
file does not use my default for any of the packages.The text was updated successfully, but these errors were encountered: