You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pipenv update --outdated fail with NonExistentKey error when there are outdated packages in dev-packages category.
Expected result
Runs without error for dev-packages.
Actual result
pipenv-outdated-test % pipenv update --outdated -v
⠇ INFO:pipenv.patched.pip._internal.resolution.resolvelib.reporter:Reporter.ending(State(mapping=OrderedDict([('pipenv', LinkCandidate('https://files.pythonhosted.org/packages/b8/4a/cb380f5f617bac94384760f02c57d2b1db531dbe1e47fa473bc8053767e2/pipenv-2022.11.11-py2.py3-none-any.whl (from
Traceback (most recent call last):
File "/Users/shimpei-kodama/.pyenv/versions/3.10.6/bin/pipenv", line 8, in <module>
sys.exit(cli())
File "/Users/shimpei-kodama/.local/lib/python3.10/site-packages/pipenv/vendor/click/core.py", line 1128, in __call__
return self.main(*args, **kwargs)
File "/Users/shimpei-kodama/.local/lib/python3.10/site-packages/pipenv/cli/options.py", line 57, in main
return super().main(*args, **kwargs, windows_expand_args=False)
File "/Users/shimpei-kodama/.local/lib/python3.10/site-packages/pipenv/vendor/click/core.py", line 1053, in main
rv = self.invoke(ctx)
File "/Users/shimpei-kodama/.local/lib/python3.10/site-packages/pipenv/vendor/click/core.py", line 1659, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/Users/shimpei-kodama/.local/lib/python3.10/site-packages/pipenv/vendor/click/core.py", line 1395, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/Users/shimpei-kodama/.local/lib/python3.10/site-packages/pipenv/vendor/click/core.py", line 754, in invoke
return __callback(*args, **kwargs)
File "/Users/shimpei-kodama/.local/lib/python3.10/site-packages/pipenv/vendor/click/decorators.py", line 84, in new_func
return ctx.invoke(f, obj, *args, **kwargs)
File "/Users/shimpei-kodama/.local/lib/python3.10/site-packages/pipenv/vendor/click/core.py", line 754, in invoke
return __callback(*args, **kwargs)
File "/Users/shimpei-kodama/.local/lib/python3.10/site-packages/pipenv/vendor/click/decorators.py", line 26, in new_func
return f(get_current_context(), *args, **kwargs)
File "/Users/shimpei-kodama/.local/lib/python3.10/site-packages/pipenv/cli/command.py", line 552, in update
do_outdated(
File "/Users/shimpei-kodama/.local/lib/python3.10/site-packages/pipenv/core.py", line 2072, in do_outdated
version = get_version(project.packages[name_in_pipfile])
File "/Users/shimpei-kodama/.local/lib/python3.10/site-packages/pipenv/vendor/tomlkit/items.py", line 1237, in __getitem__
return cast(Item, self._value[key])
File "/Users/shimpei-kodama/.local/lib/python3.10/site-packages/pipenv/vendor/tomlkit/container.py", line 606, in __getitem__
raise NonExistentKey(key)
pipenv.vendor.tomlkit.exceptions.NonExistentKey: 'Key "pipenv" does not exist.'
The text was updated successfully, but these errors were encountered:
shimpeko
changed the title
pipenv update --outdated fail with NonExistentKey error when there are outdated packages in dev-packages category
pipenv update --outdated fails with NonExistentKey error when there are outdated packages in dev-packages category
Dec 16, 2022
shimpeko
added a commit
to shimpeko/pipenv
that referenced
this issue
Dec 16, 2022
Issue description
pipenv update --outdated
fail withNonExistentKey
error when there are outdated packages in dev-packages category.Expected result
Runs without error for
dev-packages
.Actual result
Steps to replicate
$ pipenv --support
Pipenv version:
'2022.11.30'
Pipenv location:
'/Users/shimpei-kodama/.local/lib/python3.10/site-packages/pipenv'
Python location:
'/Users/shimpei-kodama/.pyenv/versions/3.10.6/bin/python'
OS Name:
'posix'
User pip version:
'22.3'
user Python installations found:
3.10.8
:/opt/brew/bin/python3
3.10.6
:/Users/shimpei-kodama/.pyenv/versions/3.10.6/bin/python3
3.10.6
:/Users/shimpei-kodama/.pyenv/versions/3.10.6/bin/python3
3.10.6
:/Users/shimpei-kodama/.pyenv/versions/3.10.6/bin/python
3.10.4
:/Users/shimpei-kodama/.pyenv/versions/3.10.4/bin/python3
3.10.2
:/Users/shimpei-kodama/.pyenv/versions/3.10.2/bin/python3
3.10.1
:/Users/shimpei-kodama/.pyenv/versions/3.10.1/bin/python3
3.10.0
:/Users/shimpei-kodama/.pyenv/versions/3.10.0/bin/python3
3.9.15
:/opt/brew/bin/python3.9
3.9.13
:/Users/shimpei-kodama/.pyenv/versions/3.9.13/bin/python3
3.9.7
:/Users/shimpei-kodama/.pyenv/versions/3.9.7/bin/python3
3.9.6
:/usr/bin/python3
3.8.15
:/opt/brew/bin/python3.8
3.8.9
:/Users/shimpei-kodama/.pyenv/versions/3.8.9/bin/python3
3.8.6
:/Users/shimpei-kodama/.pyenv/versions/3.8.6/bin/python3
3.7.15
:/opt/brew/bin/python3.7m
3.7.15
:/opt/brew/bin/python3.7
PEP 508 Information:
System environment variables:
NVM_INC
LDFLAGS
HOMEBREW_DEV_CMD_RUN
SPARK_HOME
CPAD2_ROOT
TERM_PROGRAM
NVM_CD_FLAGS
PYENV_ROOT
SHELL
TERM
CLICOLOR
CPPFLAGS
TMPDIR
TERM_PROGRAM_VERSION
VOLTA_HOME
TERM_SESSION_ID
PYENV_VERSION
NVM_DIR
USER
MINT_PATH
PACKAGECLOUD_TOKEN
SSH_AUTH_SOCK
PYENV_DIR
MINT_LINK_PATH
PATH
__CFBundleIdentifier
PWD
JAVA_HOME
PKG_CONFIG_LIBDIR
CLOUDSDK_PYTHON
PYENV_HOOK_PATH
XPC_FLAGS
RBENV_SHELL
QMAKE
XPC_SERVICE_NAME
PYENV_SHELL
SHLVL
HOME
BUNDLE_JOBS
CFLAGS
PROMPT
LOGNAME
LC_CTYPE
NVM_BIN
DISPLAY
__CF_USER_TEXT_ENCODING
PIP_DISABLE_PIP_VERSION_CHECK
PIP_PYTHON_PATH
PYTHONDONTWRITEBYTECODE
PYTHONFINDER_IGNORE_UNSUPPORTED
Pipenv–specific environment variables:
Debug–specific environment variables:
PATH
:/Users/shimpei-kodama/.pyenv/versions/3.10.6/bin:/opt/brew/Cellar/pyenv/2.3.6/libexec:/opt/brew/Cellar/pyenv/2.3.6/plugins/python-build/bin:/Users/shimpei-kodama/.nvm/versions/node/v18.12.0/bin:/Users/shimpei-kodama/go/bin:/Users/shimpei-kodama/.poetry/bin:/Users/shimpei-kodama/.tfenv/bin:/Users/shimpei-kodama/.pyenv/shims:/Users/shimpei-kodama/.pyenv/bin:/usr/local/bin/apache-maven-3.6.3/bin:/Users/shimpei-kodama/.volta/bin:/opt/brew/opt/openssl@1.1/bin:/Users/shimpei-kodama/.cpad2/bin:/Users/shimpei-kodama/.rbenv/shims:/Users/shimpei-kodama/.cpad2/rbenv:/opt/brew/bin:/opt/brew/sbin:/Library/Frameworks/Python.framework/Versions/3.7/bin:/Users/shimpei-kodama/.cargo/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/Users/shimpei-kodama/.volta/bin:/opt/brew/opt/openssl@1.1/bin:/Users/shimpei-kodama/.cpad2/bin:/Users/shimpei-kodama/.rbenv/shims:/Users/shimpei-kodama/.cpad2/rbenv:/opt/brew/bin:/opt/brew/sbin:/Users/shimpei-kodama/.mint/bin:/Users/shimpei-kodama/Library/Application Support/Coursier/bin:/Users/shimpei-kodama/.mint/bin
SHELL
:/bin/zsh
PWD
:/Users/shimpei-kodama/github.com/shimpeko/pipenv-outdated-test
Contents of
Pipfile
('/Users/shimpei-kodama/github.com/shimpeko/pipenv-outdated-test/Pipfile'):Contents of
Pipfile.lock
('/Users/shimpei-kodama/github.com/shimpeko/pipenv-outdated-test/Pipfile.lock'):The text was updated successfully, but these errors were encountered: