Can't create Pipfile.lock for cu111 torch distribution
See original GitHub issueIssue description
Hello !
Pipenv 2022.08.24 can’t create the lock file for the torch package distributed on https://download.pytorch.org/whl/cu111
I replicated the issue with this minimal Dockerfile, but it also happens on my host machine:
FROM nvcr.io/nvidia/tensorrt:22.07-py3
ENV LANG C.UTF-8
ENV PIPENV_NOSPIN 1
RUN pip install -qU --no-cache-dir pip pipenv && \
pipenv --support && \
pipenv install -vvv --index https://download.pytorch.org/whl/cu111 torch
ENTRYPOINT ["/bin/sh", "-c"]
CMD pipenv shell
Expected result
Should build an image where torch is installed and Pipfile
and Pipfile.lock
are created
Actual result
See pipenv-bug.log
Steps to replicate
In the same directory as the Dockerfile provided above:
docker build . --network=host --progress=plain 2> pipenv-bug.log
$ pipenv --support
Pipenv version: '2022.8.24'
Pipenv location: '/usr/local/lib/python3.8/dist-packages/pipenv'
Python location: '/usr/bin/python'
OS Name: 'posix'
User pip version: '22.2.2'
user Python installations found:
3.8.10
:/usr/bin/python3
3.8.10
:/usr/bin/python
3.8.10
:/usr/bin/python3.8
3.8.10
:/bin/python3
3.8.10
:/bin/python
3.8.10
:/bin/python3.8
PEP 508 Information:
{'implementation_name': 'cpython',
'implementation_version': '3.8.10',
'os_name': 'posix',
'platform_machine': 'x86_64',
'platform_python_implementation': 'CPython',
'platform_release': '5.15.57.1-microsoft-standard-WSL2',
'platform_system': 'Linux',
'platform_version': '#1 SMP Wed Jul 27 02:20:31 UTC 2022',
'python_full_version': '3.8.10',
'python_version': '3.8',
'sys_platform': 'linux'}
System environment variables:
NPP_VERSION
SHELL
NVIDIA_VISIBLE_DEVICES
DALI_BUILD
CUSOLVER_VERSION
CUBLAS_VERSION
CUFFT_VERSION
NVIDIA_REQUIRE_CUDA
CUDA_CACHE_DISABLE
NCCL_VERSION
CUSPARSE_VERSION
PIPENV_NOSPIN
ENV
PWD
TENSORRT_VERSION
OPENUCX_VERSION
NSIGHT_SYSTEMS_VERSION
NVIDIA_DRIVER_CAPABILITIES
TRT_VERSION
NVIDIA_PRODUCT_NAME
RDMACORE_VERSION
HOME
LANG
CUDA_VERSION
CURAND_VERSION
CUTENSOR_VERSION
HPCX_VERSION
DLPROF_VERSION
GDRCOPY_VERSION
OPENMPI_VERSION
NVJPEG_VERSION
LIBRARY_PATH
SHLVL
BASH_ENV
CUDNN_VERSION
NSIGHT_COMPUTE_VERSION
DALI_VERSION
LD_LIBRARY_PATH
NVIDIA_BUILD_ID
OMPI_MCA_coll_hcoll_enable
OPAL_PREFIX
CUDA_DRIVER_VERSION
_CUDA_COMPAT_PATH
NVIDIA_TENSORRT_VERSION
TENSORRT_OSS_VERSION
PATH
MOFED_VERSION
TRTOSS_VERSION
_
PIP_DISABLE_PIP_VERSION_CHECK
PIP_PYTHON_PATH
PYTHONDONTWRITEBYTECODE
PYTHONFINDER_IGNORE_UNSUPPORTED
Pipenv–specific environment variables:
PIPENV_NOSPIN
:1
Debug–specific environment variables:
PATH
:/opt/tensorrt/bin:/usr/local/mpi/bin:/usr/local/nvidia/bin:/usr/local/cuda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/ucx/bin
SHELL
:/bin/bash
LANG
:C.UTF-8
PWD
:/workspace
Issue Analytics
- State:
- Created a year ago
- Comments:12
Top GitHub Comments
My docker build of your example also failed with the same error you got. The windows lock finished on 3.8 and got real disk heavy during the end of the lock, and I could see some heavy memory usage in powershell at that time, exceeding 2GB at times.
Did you not have this problem on prior versions of pipenv?
Hi, thank you for the quick response. Here is what I have for
df -h
:I don’t think it is a disk space issue, as I am able to install torch/torchvision and many more packages with a pip only approach.