-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
pipenv fails to find common version of 2 overlapping ranges #2499
Comments
The root cause is Currently Pipenv's resolver can't compromise with older package version to match the requirement constraints. You need to manually specify older version of |
Be sure to check the existing issues (both open and closed!).
Issue description
I have a problem when I try to install
django-elasticsearch-dsl
.django-elasticsearch-dsl
depends onelasticsearch-dsl
in versions from 2.1 to 7.0 and thenelasticsearch-dsl
depends onelasticsearch
. If You have version 5 of ElasticSearch server, You have to use branch 5.x.x ofelasticsearch-dsl
. In this setup, pipenv install shows "Could not find a version that matches elasticsearch<6.0.0,<7.0.0,>=5.0.0,>=6.0.0" error. From what I can see, pipenv first resolves dependency ofdjango-elasticsearch-dsl
, installselasticsearch-dsl
in version 6.xx which depends on version 6.x.x ofelasticsearch
. This step creates disjoint range of versions with '>=5.0,<6.0' specified by me.Expected result
Both
elasticsearch-dsl
andelasticsearch
should be installed in 5.x.x versions.Actual result
Output of
pipenv install 'elasticsearch-dsl>=5.0,<6.0' --verbose
Steps to replicate
Provide the steps to replicate (which usually at least includes the commands and the Pipfile).
$ pipenv --support
Pipenv version:
'2018.7.1'
Pipenv location:
'/usr/local/lib/python3.6/site-packages/pipenv'
Python location:
'/usr/local/opt/python/bin/python3.6'
Other Python installations in
PATH
:2.7
:/usr/bin/python2.7
2.7
:/usr/bin/python2.7
2.7
:/usr/local/bin/python2.7
3.6
:/usr/local/bin/python3.6m
3.6
:/usr/local/bin/python3.6
3.6.5
:/usr/local/opt/python/libexec/bin/python
2.7.10
:/usr/bin/python
2.7.15
:/usr/local/bin/python
2.7.15
:/usr/local/bin/python2
3.6.5
:/usr/local/bin/python3
PEP 508 Information:
System environment variables:
TERM_SESSION_ID
SSH_AUTH_SOCK
Apple_PubSub_Socket_Render
COLORFGBG
ITERM_PROFILE
XPC_FLAGS
LANG
PWD
SHELL
SECURITYSESSIONID
TERM_PROGRAM_VERSION
TERM_PROGRAM
PATH
COLORTERM
COMMAND_MODE
TERM
HOME
TMPDIR
USER
XPC_SERVICE_NAME
LOGNAME
__CF_USER_TEXT_ENCODING
ITERM_SESSION_ID
SHLVL
OLDPWD
ZSH
PAGER
LESS
LC_CTYPE
LSCOLORS
WORKON_HOME
VIRTUALENVWRAPPER_PROJECT_FILENAME
VIRTUALENVWRAPPER_WORKON_CD
VIRTUALENVWRAPPER_SCRIPT
VIRTUALENVWRAPPER_HOOK_DIR
_
PYTHONDONTWRITEBYTECODE
PIP_PYTHON_PATH
Pipenv–specific environment variables:
Debug–specific environment variables:
PATH
:/usr/local/opt/python/libexec/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
SHELL
:/bin/zsh
LANG
:pl_PL.UTF-8
PWD
:/Users/jakubzarzycki/tmp/overlapping-dependencies
Contents of
Pipfile
('/Users/jakubzarzycki/tmp/overlapping-dependencies/Pipfile'):The text was updated successfully, but these errors were encountered: