Locking fails, preempting pipenv clean
and pipenv uninstall
#4498
Labels
Status: Awaiting Update ⏳
This issue requires more information before assistance can be provided.
Status: Awaiting Upstream
This issue requires the attention of an upstream maintainer.
Status: Workarounded
Issue description
I'm cloning a repo that automatically creates a Pipenv shell and install pandas. Locking fails because (based on my understanding of the errors) installing pandas automatically installs numpy, and there's some issue with the newest version of numpy and Macs. I thought I could get around this by uninstalling numpy with
pipenv uninstall numpy
, but locking failed again. I checked that there is no version of numpy listed in the Pipfile.lock, and tried to runpipenv clean
. But that also failed, throwing the same error message I obtained when trying to install pandas and also when trying to uninstall numpy. When I runpip freeze
from within the pipenv shell, numpy is still listed even though nothing is specified about numpy in Pipfile.lock. How can I uninstall a package with Pipenv if failure to lock makes it impossible to runpipenv clean
and alsopipenv uninstall
?Expected result
To be able to run
pipenv clean
and remove specific packages withpipenv uninstall
Actual result
I keep getting the following lock error when I try to run
pipenv install pandas
,pipenv uninstall numpy
orpipenv clean
:Steps to replicate
Checking Pipfile.lock:
When I run
pip freeze
from the Pipenv shell, I get the following output:$ pipenv --support
Pipenv version:
'2020.8.13'
Pipenv location:
'/usr/local/Cellar/pipenv/2020.8.13_1/libexec/lib/python3.9/site-packages/pipenv'
Python location:
'/usr/local/Cellar/pipenv/2020.8.13_1/libexec/bin/python'
Python installations found:
3.9.0
:/Users/ihwang/.local/share/virtualenvs/opportunity-insights-chart-okFO_1O3/bin/python3
3.9.0
:/Users/ihwang/.local/share/virtualenvs/opportunity-insights-chart-okFO_1O3/bin/python3.9
3.9.0
:/Users/ihwang/.local/share/virtualenvs/opportunity-insights-chart-okFO_1O3/bin/python3
3.9.0
:/Users/ihwang/.local/share/virtualenvs/opportunity-insights-chart-okFO_1O3/bin/python3.9
3.9.0
:/Library/Frameworks/Python.framework/Versions/3.9/bin/python3
3.9.0
:/Library/Frameworks/Python.framework/Versions/3.9/bin/python3.9
3.9.0
:/usr/local/bin/python3
3.9.0
:/usr/local/bin/python3.9
3.7.9
:/Users/ihwang/.pyenv/versions/3.7.9/bin/python3
2.7.16
:/usr/bin/python2.7
PEP 508 Information:
System environment variables:
PATH
TERM_PROGRAM
TERM
SHELL
PIP_PYTHON_PATH
TMPDIR
Apple_PubSub_Socket_Render
TERM_PROGRAM_VERSION
TERM_SESSION_ID
USER
SSH_AUTH_SOCK
__CF_USER_TEXT_ENCODING
VIRTUAL_ENV
PIPENV_ACTIVE
_
PWD
SLACK_NO_AUTO_UPDATES
LANG
PYTHONSTARTUP
XPC_FLAGS
PYTHONDONTWRITEBYTECODE
XPC_SERVICE_NAME
HOME
SHLVL
LOGNAME
PIP_DISABLE_PIP_VERSION_CHECK
PIP_SHIMS_BASE_MODULE
PYTHONFINDER_IGNORE_UNSUPPORTED
Pipenv–specific environment variables:
PIPENV_ACTIVE
:1
Debug–specific environment variables:
PATH
:/usr/local/Cellar/pipenv/2020.8.13_1/libexec/tools:/Users/ihwang/.local/share/virtualenvs/opportunity-insights-chart-okFO_1O3/bin:/usr/local/Cellar/pipenv/2020.8.13_1/libexec/tools:/Library/Frameworks/Python.framework/Versions/3.9/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
SHELL
:/bin/bash
LANG
:en_US.UTF-8
PWD
:/Users/ihwang/GDrive-irenatfh/Work/2020-NPR/projects/newsletter/2020.10.27-stimulus-packages/opportunity-insights-chart
VIRTUAL_ENV
:/Users/ihwang/.local/share/virtualenvs/opportunity-insights-chart-okFO_1O3
Contents of
Pipfile
('/Users/ihwang/GDrive-irenatfh/Work/2020-NPR/projects/newsletter/2020.10.27-stimulus-packages/opportunity-insights-chart/Pipfile'):Contents of
Pipfile.lock
('/Users/ihwang/GDrive-irenatfh/Work/2020-NPR/projects/newsletter/2020.10.27-stimulus-packages/opportunity-insights-chart/Pipfile.lock'):The text was updated successfully, but these errors were encountered: