fast-photographer-12719
07/11/2024, 3:34 PMalbumentations==1.4.8
into requirements.txt is resulting in lockfile generation hanging forever. Anyone else seen this or any tips? -ldebug
doesn't show what particular step it's hanging on.broad-processor-92400
07/11/2024, 11:06 PMpants --keep-sandbox=always generate-lockfiles ...
2. once it seems to be running a hung process, find it. I'm guessing this'll be a pex process... You might have to do a bit of detective work like ps aux | grep [p]ex
to find which it is (or maybe start with grep "[p]ex.*lock.*create"
, on the assumption the hung process is running the pex3 lock create
lockfile creation command)
3. Induce a failure, e.g. kill <pid>
4. Jump into the sandbox and work with the __run.sh
to narrow down the issuefast-photographer-12719
07/12/2024, 10:00 AM__run.sh
which is
env -i CPPFLAGS= HOME=/home/matt LANG=en_GB.UTF-8 LDFLAGS= PATH=$'/home/matt/.vscode-server/cli/servers/Stable-5437499feb04f7a586f677b155b039bc2b3669eb/server/bin/remote-cli:/home/matt/.local/bin:/home/matt/miniconda3/envs/base3.10/bin:/home/matt/miniconda3/condabin:/usr/local/cuda-12.1/bin:/usr/local/cuda/bin:/opt/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/imanol/.local/bin:/snap/bin:/usr/local/cuda-11.8/bin' PEX_IGNORE_RCFILES=true PEX_PYTHON=/home/matt/.cache/nce/3d6643e46b53e4cc0b2a0d5c768866226ddce3de1f57f80c4a02d8d39800fa8e/bindings/venvs/2.18.0/bin/python3.9 PEX_ROOT=.cache/pex_root PEX_SCRIPT=pex3 SSL_CERT_DIR=/usr/lib/ssl/certs SSL_CERT_FILE=/usr/lib/ssl/certs/ca-certificates.crt /home/matt/.cache/nce/3d6643e46b53e4cc0b2a0d5c768866226ddce3de1f57f80c4a02d8d39800fa8e/bindings/venvs/2.18.0/bin/python3.9 ./pex lock create --tmpdir .tmp --python-path $'/home/matt/.vscode-server/cli/servers/Stable-5437499feb04f7a586f677b155b039bc2b3669eb/server/bin/remote-cli:/home/matt/.local/bin:/home/matt/miniconda3/envs/base3.10/bin:/home/matt/miniconda3/condabin:/usr/local/cuda-12.1/bin:/usr/local/cuda/bin:/opt/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/imanol/.local/bin:/snap/bin:/usr/local/cuda-11.8/bin' $'--output=lock.json' --no-emit-warnings $'--style=universal' --pip-version 23.1.2 --resolver-version pip-2020-resolver --target-system linux --target-system mac $'--indent=2' --no-pypi $'--index=<https://pypi.org/simple/>' $'--index=<https://download.pytorch.org/whl/>' --manylinux manylinux2014 --interpreter-constraint $'CPython>=3.10' Cython $'GPUtil~=1.4.0' accelerate $'albumentations==1.4.8' $'av==10.0.0' $'aws_secretsmanager_caching==1.1.1.5' boto3 $'certifi>=2020.12.5' $'confluent-kafka==1.6.0' $'dacite==1.6.0' $'diffusers==0.28.0' docker $'einops~=0.3.0' $'fastavro==1.4.0' $'ffmpeg-python~=0.2.0' $'ftfy==6.2.0' fvcore h5py $'hydra-core>=1.3.2' imgaug $'jinja2~=3.0.3' $'jsonschema==3.2.0' kornia $'matplotlib~=3.7.1' $'mean_average_precision==2021.4.26.0' $'metaflow==2.7.19' $'mlflow==2.10.0' mmcv-lite $'moto==4.2.4' natsort $'numpy~=1.24.4' nvidia-cublas-cu12 nvidia-cuda-cupti-cu12 nvidia-cuda-nvrtc-cu12 nvidia-cuda-runtime-cu12 nvidia-cudnn-cu12 nvidia-cufft-cu12 nvidia-curand-cu12 nvidia-cusolver-cu12 nvidia-cusparse-cu12 nvidia-nccl-cu12 nvidia-nvtx-cu12 omegaconf $'onnx==1.15.0' $'onnxruntime-gpu==1.15.1' $'opencv-python~=4.7.0.72' $'openmim==0.3.7' $'openpyxl==3.0.10' $'oyaml~=0.9' $'pandas~=1.5.3' parameterized pillow $'progressbar2~=3.51.0' $'psycopg2-binary==2.9.6' pyarrow $'pycuda==2024.1' $'pydantic==2.7.1' pymongo pynamodb pytest-cov pytest-mock $'pytest-reportlog==0.1.2' $'pytest==7.4.0' $'python-json-logger~=0.1.11' $'regex==2023.12.25' requests s3fs $'scikit_image~=0.21.0' $'scikit_learn==1.4.2' $'scipy==1.12.0' $'seaborn~=0.12.2' $'segmentation-models-pytorch==0.3.3' $'semver==2.13.0' $'sentry-sdk==1.45.0' $'setuptools~=69.0.0' $'sqlalchemy==2.0.13' $'tabulate~=0.8.10' $'tensorrt==8.6.1' $'testing.postgresql==1.3.0' timm $'torch==2.1.1+cu121' torch_optimizer $'torchvision==0.16.1+cu121' $'tqdm~=4.45.0' transformers $'triton==2.1.0' $'ujson==5.8.0' $'weasyprint==51' webcolors xformers xlsxwriter
That command hangs. using -vvv shows another command that it appears to hang on. I might investigate that, but i'm not seeing any errors, so clearly whatever is going wrong is being hidden by somethingfast-photographer-12719
07/12/2024, 10:18 AMModuleNotFoundError: No module named '_pex_pip_patches'
which i guess means i'm in the wrong folder for that. So essentially this seems to be pex hanging on this installation.fast-photographer-12719
07/12/2024, 10:28 AMfast-photographer-12719
07/12/2024, 1:17 PMfast-photographer-12719
07/12/2024, 1:17 PMbroad-processor-92400
07/12/2024, 9:12 PM