-
Notifications
You must be signed in to change notification settings - Fork 32
Description
When setup a devcontainers with a Dockerfile with the follwoing setup:
FROM nvidia/cuda:12.3.2-cudnn9-devel-ubuntu22.04
RUN apt-get update && \
apt-get install -y python3 python3-pip git
The tmu will fail to completely install and you will get the following:
root@bf177e7fc0be:/workspace/tmu# pip install . Processing /workspace/tmu Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... done Building wheels for collected packages: UNKNOWN Building wheel for UNKNOWN (pyproject.toml) ... done Created wheel for UNKNOWN: filename=UNKNOWN-0.0.0-cp310-cp310-linux_x86_64.whl size=341308 sha256=e7045db872d540b5dc497516fbb824b9a4438bd3424387718101918b354ce32d Stored in directory: /tmp/pip-ephem-wheel-cache-idcychq5/wheels/d7/7a/5c/30cd08eb0b6d6d9d2d6de8fc09fa8953b946b1df112c6e2f91 Successfully built UNKNOWN Installing collected packages: UNKNOWN Successfully installed UNKNOWN-0.0.0
The problem seems to be because the pip version installed by default in the Docker image is outdated, which can cause compatibility issues with some packages or dependencies.
https://stackoverflow.com/questions/78034052/unknown-project-name-and-version-number-for-my-own-pip-package
To ensure the complete install of tmu the follwoing command should be done before the installation:
pip install --upgrade pip
Or you can explicitly add the command in your Dockerfile.