-
-
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
DataValidationError: Invalid type for field editable in Pipfile #6173
Comments
This is fixed in plette version 2.1.0 which is just release, but at the moment pypi is down due to maintenance. As soon as it's back, I'll merge a PR here and release a new pipenv version. |
Fixed in sarugaku/plette@00258ed |
This fixes breakage on files which use scripts callable. #6173 Signed-off-by: Oz Tiram <oz.tiram@gmail.com>
This fixes breakage on files which use scripts callable. #6173 Signed-off-by: Oz Tiram <oz.tiram@gmail.com>
Apologies, I thought this was a duplicate of an issue reported in plette. These are not the same, this issue is still not fixed. |
The error message raised by plette was wrong. At the same time, the code is trying to convey that the validation of your Pipfile is wrong. With the current plette code, you can do:
To have your packages install correctly, all you have to do is to fix your Pipfile. Change
See: |
Issue description
I ran into a new error while installing Invenio today and got this message when running invenio-cli install on a new venv:
Version
pipenv==2024.0.0
Expected result
Dependencies should install without errors.
Actual result
Dependencies failed to install due to a DataValidationError.
Steps to replicate
Pipfile before the fix:
Fix:
Pipfile after the fix:
it seems like the error is related to this change if I am not mistaken:
https://github.com/pypa/pipenv/pull/6139/files#diff-aefce74956111facce5b6385d83cd8c91f0b81f7692297e99a62a2a1bb9cb6f6
Please run
$ pipenv --support
, and paste the results here. Don't put backticks (`
) around it! The output already contains Markdown formatting.pipenv --support | xclip
Courtesy Notice: Pipenv found itself running within a virtual environment, so it will automatically use that environment, instead of creating its own for any project. You can set PIPENV_IGNORE_VIRTUALENVS=1 to force pipenv to ignore that environment and create its own instead. You can set PIPENV_VERBOSITY=-1 to suppress this warning.
$ pipenv --support
Pipenv version:
'2024.0.0'
Pipenv location:
'/home/user/.pyenv/versions/3.9.19/envs/test-install/lib/python3.9/site-packages/pipenv'
Python location:
'/home/user/.pyenv/versions/3.9.19/envs/test-install/bin/python'
OS Name:
'posix'
User pip version:
'24.0'
user Python installations found:
PEP 508 Information:
System environment variables:
SHELL
SESSION_MANAGER
PYENV_HOOK_PATH
QT_ACCESSIBILITY
COLORTERM
PYENV_SHELL
XDG_CONFIG_DIRS
SSH_AGENT_LAUNCHER
PYENV_ACTIVATE_SHELL
NVM_INC
XDG_MENU_PREFIX
GNOME_DESKTOP_SESSION_ID
GTK_IM_MODULE
LC_ADDRESS
GNOME_SHELL_SESSION_MODE
LC_NAME
SSH_AUTH_SOCK
XMODIFIERS
HOMEBREW_PREFIX
DESKTOP_SESSION
LC_MONETARY
EDITOR
PYENV_VERSION
GTK_MODULES
PWD
PYENV_VIRTUALENV_INIT
XDG_SESSION_DESKTOP
LOGNAME
XDG_SESSION_TYPE
MANPATH
GPG_AGENT_INFO
SYSTEMD_EXEC_PID
XAUTHORITY
WINDOWPATH
HOME
USERNAME
LANG
LC_PAPER
LS_COLORS
XDG_CURRENT_DESKTOP
VIRTUAL_ENV
VTE_VERSION
GNOME_TERMINAL_SCREEN
PYENV_DIR
INFOPATH
NVM_DIR
LESSCLOSE
XDG_SESSION_CLASS
LC_IDENTIFICATION
TERM
LESSOPEN
USER
GNOME_TERMINAL_SERVICE
HOMEBREW_CELLAR
VISUAL
DISPLAY
PYENV_VIRTUAL_ENV
SHLVL
NVM_CD_FLAGS
LC_TELEPHONE
QT_IM_MODULE
HOMEBREW_REPOSITORY
LC_MEASUREMENT
PAPERSIZE
XDG_RUNTIME_DIR
PYENV_ROOT
LC_TIME
XDG_DATA_DIRS
PATH
GDMSESSION
DBUS_SESSION_BUS_ADDRESS
FZF_DEFAULT_OPTS
_OLD_VIRTUAL_PS1
NVM_BIN
LC_NUMERIC
OLDPWD
PIP_DISABLE_PIP_VERSION_CHECK
PYTHONDONTWRITEBYTECODE
PYTHONFINDER_IGNORE_UNSUPPORTED
Pipenv–specific environment variables:
Debug–specific environment variables:
PATH
:/home/user/.pyenv/versions/invenio-communities/bin:/home/user/.pyenv/versions/3.9.19/bin:/home/user/.pyenv/versions/docs-invenio-rdm/bin:/home/user/.pyenv/versions/test-install/bin:/home/user/.pyenv/versions/kth-rdm-prod/bin:/home/user/.pyenv/versions/invenio-users-resources/bin:/home/user/.pyenv/versions/test-install/bin:/home/user/.pyenv/libexec:/home/user/.pyenv/plugins/python-build/bin:/home/user/.pyenv/plugins/pyenv-virtualenv/bin:/home/user/.pyenv/plugins/pyenv-update/bin:/home/user/.pyenv/plugins/pyenv-doctor/bin:/home/user/.cargo/bin:/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin:/home/user/.nvm/versions/node/v20.13.1/bin:/home/user/.pyenv/plugins/pyenv-virtualenv/shims:/home/user/.pyenv/shims:/home/user/.pyenv/bin:/home/user/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin:/home/user/bin:/opt/nvim-linux64/bin
SHELL
:/bin/bash
EDITOR
:code --wait
LANG
:en_US.UTF-8
PWD
:/home/user/INVENIO/issues/test-install/test-install
VIRTUAL_ENV
:/home/user/.pyenv/versions/3.9.19/envs/test-install
Contents of
Pipfile
('/home/user/INVENIO/issues/test-install/test-install/Pipfile'):The text was updated successfully, but these errors were encountered: