Some Pipfiles trigger AttributeError: 'OutOfOrderTableProxy' object has no attribute '_body' #5794
Labels
Contributor Candidate
The issue has been identified/triaged and contributions are welcomed/encouraged.
Type: Bug 🐛
This issue is a bug.
Be sure to check the existing issues (both open and closed!), and make sure you are running the latest version of Pipenv.
Check the diagnose documentation for common issues before posting! We may close your issue if it is very similar to one of them. Please be considerate, or be on your way.
Make sure to mention your debugging experience if the documented solution failed.
Issue description
When the Pipfile has a certain TOML layout, specifically a
packages
section and later apackages.<package>
section,which are not directly adjacent to each other, an exception is thrown when trying to write to the Pipfile.
Expected result
Pipfile is updated successfully.
Actual result
Steps to replicate
Given the following Pipfile (which has worked fine in older versions of pipenv):
run a
pipenv install
, e.g. I wanted to runpipenv install distro
.It works if you move the "pipenv" section below the "packages.atlassian-python-api".
$ pipenv --support
Pipenv version:
'2023.7.11'
Pipenv location:
'/home/flichtenheld/.local/lib/python3.10/site-packages/pipenv'
Python location:
'/usr/bin/python3'
OS Name:
'posix'
User pip version:
'22.2.2'
user Python installations found:
PEP 508 Information:
System environment variables:
SHELL
SESSION_MANAGER
QT_ACCESSIBILITY
COLORTERM
PYENV_SHELL
XDG_CONFIG_DIRS
SSH_AGENT_LAUNCHER
XDG_MENU_PREFIX
GNOME_DESKTOP_SESSION_ID
TERMINATOR_DBUS_PATH
LC_ADDRESS
GNOME_SHELL_SESSION_MODE
LC_NAME
SSH_AUTH_SOCK
GIT_PS1_SHOWDIRTYSTATE
AWS_DEFAULT_REGION
DEBFULLNAME
TERMINATOR_UUID
XMODIFIERS
DESKTOP_SESSION
LC_MONETARY
GTK_MODULES
PWD
LOGNAME
XDG_SESSION_DESKTOP
XDG_SESSION_TYPE
SYSTEMD_EXEC_PID
XAUTHORITY
GJS_DEBUG_TOPICS
HOME
USERNAME
IM_CONFIG_PHASE
LC_PAPER
LANG
LS_COLORS
XDG_CURRENT_DESKTOP
SAML2AWS_DISABLE_KEYCHAIN
VTE_VERSION
WAYLAND_DISPLAY
DEBEMAIL
INVOCATION_ID
TERMINATOR_DBUS_NAME
MANAGERPID
GJS_DEBUG_OUTPUT
GNOME_SETUP_DISPLAY
XDG_SESSION_CLASS
IBUS_DISABLE_SNOOPER
TERM
LC_IDENTIFICATION
USER
DISPLAY
SHLVL
LC_TELEPHONE
QT_IM_MODULE
LC_MEASUREMENT
XDG_RUNTIME_DIR
PYENV_ROOT
LC_TIME
EMAIL
JOURNAL_STREAM
XDG_DATA_DIRS
PATH
GDMSESSION
DBUS_SESSION_BUS_ADDRESS
GIO_LAUNCHED_DESKTOP_FILE_PID
GIO_LAUNCHED_DESKTOP_FILE
LC_NUMERIC
OLDPWD
_
PYTHONDONTWRITEBYTECODE
PIP_DISABLE_PIP_VERSION_CHECK
BB_USER
BB_PASSWORD
JENKINS_USER
JENKINS_PASSWORD
AWS_PROFILE
JOB_NAME
JENKINS_URL
RUN_DISPLAY_URL
ART_API_KEY
BUILD_URL
FAST
SPACE
PYTHONFINDER_IGNORE_UNSUPPORTED
Pipenv–specific environment variables:
Debug–specific environment variables:
PATH
:/home/flichtenheld/.pyenv/versions/3.11.4/bin:/home/flichtenheld/.pyenv/shims:/home/flichtenheld/.pyenv/bin:/home/flichtenheld/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin
SHELL
:/bin/bash
LANG
:en_US.UTF-8
PWD
:/home/flichtenheld/openvpn/ovpn3-build
Contents of
Pipfile
('/home/flichtenheld/openvpn/ovpn3-build/Pipfile'):The text was updated successfully, but these errors were encountered: