-
-
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's dependency resolution fails to resolve botocore version, while pip succeeds #4781
Comments
I had a similar problem with executable book. I use pip as a resolution engine for pipenv now. Not only because it worls, but also to be compatible with my colleagues... Maybe you want to have a look on the suggestion |
@ltn100 Well you seem to have created a Pipfile that really never finishes locking on the newest version |
Well in one of the upcoming pipenv releases that will switch to pip 22.x from 21.x that branch it fails fairly quick:
The --pre flag also fails for your example. Going to play around here based on what I know that pinning some things to "*" causes the pip resolver to take much longer -- plus I am not familiar with the syntax for |
I think you already figured it out because you said
Can you specify what version of pip you are using? I think the matter is that when I run it in either order, both dependencies get installed, but locking fails because locking has to be deterministic and dependencies can't violate the constraints in the way you mention.
However reversing the order of that, I can start fresh and install dvc[s3]
|
@ltn100 I wonder which version of botocore you endup with when you install using pip. Maybe depends on the order in which you install? I suspect both of those packages are capable of working with multiple versions of botocore is what you find, but their stringent setup.py requirements are what is causing locking to fail, and rightfully so. Basically awscli requires |
See also: aio-libs/aiobotocore#670 |
Issue description
Using this Pipfile:
Running
pipenv install
fails to resolve the dependencies for botocore:However, the dependencies are resolved successfully using pip:
The dependency resolution is complicated by the fact that dvc[s3] is dependant on aiobotocore, which is in turn dependant on a very specific version of botocore. Meanwhile, awscli versions are also dependent on very specific versions of botocore. However, pip is able to resolve a valid set of dependencies, so the task is not an impossible one.
$ pipenv --support
Pipenv version:
'2021.5.29'
Pipenv location:
'/Users/lnethert/.pyenv/versions/3.8.9/lib/python3.8/site-packages/pipenv'
Python location:
'/Users/lnethert/.pyenv/versions/3.8.9/bin/python3.8'
Python installations found:
3.9.6
:/usr/local/bin/python3
3.9.6
:/usr/local/bin/python3.9
3.9.1
:/Users/lnethert/.pyenv/versions/3.9.1/bin/python3
3.8.9
:/Users/lnethert/.pyenv/versions/3.8.9/bin/python3
3.8.9
:/Users/lnethert/.pyenv/versions/3.8.9/bin/python3
3.8.9
:/Users/lnethert/.pyenv/versions/3.8.9/bin/python3.8
3.8.3
:/Users/lnethert/.pyenv/versions/3.8.3/bin/python3
3.7.3
:/usr/bin/python3
2.7.16
:/usr/bin/python2
2.7.16
:/usr/bin/python2.7
PEP 508 Information:
System environment variables:
TERM_PROGRAM
PYENV_ROOT
TERM
SHELL
CLICOLOR
HISTSIZE
TMPDIR
TERM_PROGRAM_VERSION
TF_SHELL
TERM_SESSION_ID
PYENV_VERSION
TF_ALIAS
ZSH
TF_SHELL_ALIASES
PYTHONIOENCODING
HISTFILESIZE
USER
SSH_AUTH_SOCK
PYENV_DIR
__CF_USER_TEXT_ENCODING
PAGER
LSCOLORS
PATH
PWD
EDITOR
DEFAULT_USER
LANG
ITERM_PROFILE
PYENV_HOOK_PATH
XPC_FLAGS
HISTCONTROL
XPC_SERVICE_NAME
PYENV_SHELL
SHLVL
HOME
COLORFGBG
LC_TERMINAL_VERSION
ITERM_SESSION_ID
LESS
LOGNAME
HH_CONFIG
LC_TERMINAL
HISTTIMEFORMAT
COLORTERM
PIP_DISABLE_PIP_VERSION_CHECK
PYTHONDONTWRITEBYTECODE
PIP_SHIMS_BASE_MODULE
PIP_PYTHON_PATH
PYTHONFINDER_IGNORE_UNSUPPORTED
Pipenv–specific environment variables:
Debug–specific environment variables:
PATH
:/Users/lnethert/.pyenv/versions/3.8.9/bin:/usr/local/Cellar/pyenv/2.0.3/libexec:/usr/local/Cellar/pyenv/2.0.3/plugins/python-build/bin:/Users/lnethert/.bin/:/Users/lnethert/Library/Python/3.7/bin:/Users/lnethert/.pyenv/shims:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
SHELL
:/bin/zsh
EDITOR
:vim
LANG
:en_GB.UTF-8
PWD
:/Users/lnethert/test
Contents of
Pipfile
('/Users/lnethert/workspace/aig_app_science/sonar_nlp/test/Pipfile'):The text was updated successfully, but these errors were encountered: