Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker file doesn't work #190

Open
Colin123 opened this issue Nov 9, 2023 · 2 comments
Open

Docker file doesn't work #190

Colin123 opened this issue Nov 9, 2023 · 2 comments

Comments

@Colin123
Copy link

Colin123 commented Nov 9, 2023

Hi,

Can you check the docker file?

The first error I got was this:

ERROR: failed to solve: nvidia/cuda:11.3.0-cudnn8-devel-ubuntu20.04: docker.io/nvidia/cuda:11.3.0-cudnn8-devel-ubuntu20.04: not found

I then edited the Dockerfile to use the following version:
FROM nvidia/cuda:11.8.0-cudnn8-devel-ubuntu20.04

But then I get the following error later:

**0.530 Using pip 23.3 from /opt/conda/envs/TradeMaster/lib/python3.9/site-packages/pip (python 3.9)
0.570 Processing /home/apex
0.573 Installing build dependencies: started
...
...
2.504 File "", line 5, in
2.505 ModuleNotFoundError: No module named 'packaging'
2.515 error: subprocess-exited-with-error
2.515
2.515 × Getting requirements to build wheel did not run successfully.
2.515 │ exit code: 1
2.515 ╰─> See above for output.
2.515
2.515 note: This error originates from a subprocess, and is likely not a problem with pip.
2.515 full command: /opt/conda/envs/TradeMaster/bin/python /opt/conda/envs/TradeMaster/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py get_requires_for_build_wheel /tmp/tmp7uip7l83
2.516 cwd: /home/apex
2.516 Getting requirements to build wheel: finished with status 'error'
2.518 error: subprocess-exited-with-error
2.518
2.518 × Getting requirements to build wheel did not run successfully.
2.518 │ exit code: 1
2.518 ╰─> See above for output.
2.518
2.518 note: This error originates from a subprocess, and is likely not a problem with pip.

Dockerfile:41

39 | RUN git clone https://github.com/NVIDIA/apex
40 | WORKDIR apex
41 | >>> RUN /opt/conda/envs/TradeMaster/bin/python -m pip install -v --no-cache-dir .
42 |
43 | # Install requirements

ERROR: failed to solve: process "/bin/sh -c /opt/conda/envs/TradeMaster/bin/python -m pip install -v --no-cache-dir ." did not complete successfully: exit code: 1**

@joshwigginton
Copy link

Found this worked per NVIDIA/apex#1594

RUN /opt/conda/envs/TradeMaster/bin/python -m pip install -v --no-cache-dir --no-build-isolation .

@joshwigginton
Copy link

Once I got through the apex install. I did run into another issues w/ the requirements.txt when installing gym 0.21. I fixed it with adding these lines before the install of requirements.txt. Might be able to just adjust the version of gym that is installed also.

RUN /opt/conda/envs/TradeMaster/bin/python -m pip install setuptools==65.5.1 pip==21
RUN /opt/conda/envs/TradeMaster/bin/python -m pip install wheel==0.38.0
RUN /opt/conda/envs/TradeMaster/bin/python -m pip install -r requirements.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants