pipenv lock
raises ResolutionTooDeep
and fails to create a lock file
#6094
Labels
pipenv lock
raises ResolutionTooDeep
and fails to create a lock file
#6094
Issue description
pipenv lock
eventually raisespipenv.patched.pip._vendor.resolvelib.resolvers.ResolutionTooDeep: 200000
with a specificPipfile
when run 2-5 times without clearing the cache.This started in
2023.08.19
.Clearing the cache before running
pipenv --clear
usually but not always avoids this issue.Expected result
pipenv lock
to always create a Pipfile.lock successfully.Actual result
pipenv lock
takes a very long time to run, the cache directory grows to a very large size, andResolutionTooDeep
is eventually raised.pipenv -v output (abbreviated since it's quite long)
pipenv cache dir size
Steps to replicate
Create a
Pipfile
containing the minimal requirements to trigger this bug.Create a virtual environment and install
pipenv
Create a virtual environment for development work that
pipenv
will manageClear the
pipenv
cache and create a lock fileThis will create a lockfile successfully though sometimes it gets stuck on the first attempt.
Run
pipenv lock -v
several more times without clearing the cache. Usually the third attempt is when things get fun.Eventually the follow log messages begin repeating until an error is raised:
The cache size keeps growing as well:
$ pipenv --support
Pipenv version:
'2023.12.1'
Pipenv location:
'/Users/sdoran/Downloads/test/.venvs/pipenv/lib/python3.9/site-packages/pipenv'
Python location:
'/Users/sdoran/Downloads/test/.venvs/pipenv/bin/python'
OS Name:
'posix'
User pip version:
'23.3.2'
user Python installations found:
PEP 508 Information:
System environment variables:
PWD
fish_color_cancel
fish_color_comment
fish_pager_color_prefix
fish_color_autosuggestion
fish_color_host
fish_color_normal
fish_color_escape
fish_color_cwd
fish_color_search_match
fish_color_user
fish_color_error
fish_color_match
fish_color_operator
fish_color_cwd_root
fish_color_redirection
fish_color_selection
fish_color_history_current
USE_GKE_GCLOUD_AUTH_PLUGIN
fish_pager_color_completion
fish_pager_color_selected_background
COLORTERM
SHELL
LaunchInstanceID
ITERM_SESSION_ID
COMMAND_MODE
USER
__CFBundleIdentifier
BORG_RELOCATED_REPO_ACCESS_IS_OK
XPC_FLAGS
GOPATH
LOGNAME
GPG_TTY
SECURITYSESSIONID
ITERM_PROFILE
SSH_AUTH_SOCK
OBJC_DISABLE_INITIALIZE_FORK_SAFETY
TERM
TMPDIR
__CF_USER_TEXT_ENCODING
LC_TERMINAL_VERSION
fish_color_end
INFOPATH
XPC_SERVICE_NAME
BORG_PASSCOMMAND
SHLVL
REQUESTS_CA_BUNDLE
TERM_SESSION_ID
HOMEBREW_CELLAR
_OLD_VIRTUAL_PATH
EDITOR
HOMEBREW_PREFIX
GRPC_PYTHON_BUILD_SYSTEM_ZLIB
LC_TERMINAL
fish_pager_color_description
RBENV_SHELL
CFLAGS
BORG_OPENSSL_PREFIX
HOMEBREW_REPOSITORY
fish_color_param
MACOS_SDK_INCLUDE
HOME
HOMEBREW_CASK_OPTS
LANG
GOBIN
fish_color_valid_path
fish_color_command
fish_pager_color_progress
TERM_PROGRAM_VERSION
TERM_PROGRAM
MACOS_SDK_PATH
_OLD_FISH_PROMPT_OVERRIDE
CPPFLAGS
GRPC_PYTHON_BUILD_SYSTEM_OPENSSL
MANPATH
LDFLAGS
fish_color_quote
PYTHON_BUILD_SKIP_HOMEBREW
VIRTUAL_ENV
PYENV_VIRTUALENV_INIT
MACOS_SDK_LIB
PATH
COLORFGBG
PIP_DISABLE_PIP_VERSION_CHECK
PYTHONDONTWRITEBYTECODE
PYTHONFINDER_IGNORE_UNSUPPORTED
Pipenv–specific environment variables:
Debug–specific environment variables:
PATH
:/Users/sdoran/.pyenv/plugins/pyenv-virtualenv/shims /Users/sdoran/.pyenv/shims /Users/sdoran/.pyenv/bin /Users/sdoran/.cargo/bin /Users/sdoran/.rbenv/shims /Users/sdoran/bin /opt/homebrew/bin /opt/homebrew/sbin /usr/local/bin /System/Cryptexes/App/usr/bin /usr/bin /bin /usr/sbin /sbin /var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin /var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin /var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin /usr/local/MacGPG2/bin /opt/homebrew/opt/libpq/bin
SHELL
:/opt/homebrew/bin/fish
EDITOR
:nova -w
LANG
:en_US.UTF-8
PWD
:/Users/sdoran/Downloads/test
VIRTUAL_ENV
:/Users/sdoran/Downloads/test/.venvs/dev
Contents of
Pipfile
('/Users/sdoran/Downloads/test/Pipfile'):Contents of
Pipfile.lock
('/Users/sdoran/Downloads/test/Pipfile.lock'):The text was updated successfully, but these errors were encountered: