-
-
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 Doesn't Correctly Resolve Dependencies #4724
Comments
Hi, I encountered a similar issue, with jupyter books. My solution is to use pip for dependency resolution, but pip for everything else... See #4777 Best regards |
I suspect you are using an older version of pip which is less strict with the resolver, when I try installing it with pipenv it is clearly an issue with the
|
I thought current versions of pipenv use pip for resolving. I therefore expect that it can or cannot solve the same situations as pip. Am I mistaken here? Does it come with its own pip which may be different to the one accessible by the comandline? |
@franzhaas The output I had above was for pipenv version Pipenv doesn't come with its own version of See also output from mdavis@mdavis-VirtualBox:~/shared-projects/pipenv-test$ pipenv install --dev prospector==1.3.1 ✔ Successfully created virtual environment! |
Thanks for the clarification! |
Issue description
pipenv fails to install prospector 1.3.1, which pip successfully installs.
Expected result
I expected pipenv to successfully install prospector without errors by falling back on earlier versions of flake8 once detecting a dependency constraint conflict on pycodestyle.
Actual result
Pipenv complained of a dependency constraint conflict on pycodestyle that blocked installation, and never attempted an earlier version of flake8.
py
$ pipenv install --verbose
The standard troubleshooting steps did not remedy the issue.
$ rm -rf ~/.cache/pipenv && pipenv lock --clear --verbose
Steps to replicate
Run
pipenv install --dev prospector==1.3.1
.$ pipenv --support
Pipenv version:
'2021.5.29'
Pipenv location:
'/home/kurt/.local/pipx/venvs/pipenv/lib/python3.9/site-packages/pipenv'
Python location:
'/home/kurt/.local/pipx/venvs/pipenv/bin/python'
Python installations found:
3.9.5
:/usr/bin/python3
3.9.5
:/usr/bin/python3.9
3.9.5
:/bin/python3
3.9.5
:/bin/python3.9
PEP 508 Information:
System environment variables:
SHELL
SESSION_MANAGER
QT_ACCESSIBILITY
COLORTERM
XDG_CONFIG_DIRS
SSH_AGENT_LAUNCHER
NVM_INC
XDG_MENU_PREFIX
GNOME_DESKTOP_SESSION_ID
GNOME_SHELL_SESSION_MODE
DOTNET_ROOT
SSH_AUTH_SOCK
XMODIFIERS
DESKTOP_SESSION
GTK_MODULES
PWD
LOGNAME
XDG_SESSION_DESKTOP
XDG_SESSION_TYPE
GPG_AGENT_INFO
XAUTHORITY
GJS_DEBUG_TOPICS
WINDOWPATH
HOME
USERNAME
IM_CONFIG_PHASE
LANG
LS_COLORS
XDG_CURRENT_DESKTOP
VTE_VERSION
GNOME_TERMINAL_SCREEN
GJS_DEBUG_OUTPUT
NVM_DIR
LESSCLOSE
XDG_SESSION_CLASS
STERM
LESSOPEN
USER
GNOME_TERMINAL_SERVICE
DISPLAY
SHLVL
NVM_CD_FLAGS
QT_IM_MODULE
XDG_RUNTIME_DIR
GCC_COLORS
XDG_DATA_DIRS
PATH
GDMSESSION
DBUS_SESSION_BUS_ADDRESS
NVM_BIN
OLDPWD
_
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
:/home/kurt/.nvm/versions/node/v16.2.0/bin:/home/kurt/.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/kurt/Documents/ScribeMD/scribemd-server
Contents of
Pipfile
('/home/kurt/Documents/ScribeMD/scribemd-server/Pipfile'):Contents of
Pipfile.lock
('/home/kurt/Documents/ScribeMD/scribemd-server/Pipfile.lock'):Workaround
Install flake8 3.8.3 first, and then install prospector. flake8 3.8.3 is the last version of flake8 that doesn't depend on pycodestyle >=2.7.0.
The text was updated successfully, but these errors were encountered: