Environment
Description
pip install pipenv fails with the following error:
Could not install packages due to an EnvironmentError: [Errno 39] Directory not empty: '/tmp/pip-install-wx86kab7/pipenv/pipenv'
How to Reproduce
-
Set up environment as described above (alpine3.9, on docker-ce 17.9, running on Ubuntu in WSL). and run the command.
-
apk --update add --virtual build-dependencies libffi-dev openssl-dev build-base
-
pip install --upgrade pip
-
pip install pipenv
Output
Could not install packages due to an EnvironmentError: [Errno 39] Directory not empty: '/tmp/pip-install-wx86kab7/pipenv/pipenv'
Investigation
Compared strace results of a successful run (on a different env) vs the failed run.
On a successful run, the mkdir command is continually executed with /tmp/pip-install-<hash>/pipenv/pipenv as an argument and fails with an EEXIST error. However, on the failed run the same command fails with an ENOTEMPT error. This has to do with the environment itself (maybe docker/windows related), as the same difference is observed when simply performing mkdir from a shell.
Environment
pip version:
pip 19.0.3
Python version:
python 3.7
OS:
'python:3.7-alpine3.9' docker image (docker-ce 17.9) running on Ubuntu 18.04.2 LTS in WSL (Windows)
Description
pip install pipenvfails with the following error:How to Reproduce
Set up environment as described above (alpine3.9, on docker-ce 17.9, running on Ubuntu in WSL). and run the command.
apk --update add --virtual build-dependencies libffi-dev openssl-dev build-basepip install --upgrade pippip install pipenvOutput
Investigation
Compared strace results of a successful run (on a different env) vs the failed run.
On a successful run, the
mkdircommand is continually executed with/tmp/pip-install-<hash>/pipenv/pipenvas an argument and fails with anEEXISTerror. However, on the failed run the same command fails with anENOTEMPTerror. This has to do with the environment itself (maybe docker/windows related), as the same difference is observed when simply performing mkdir from a shell.