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

build docker image error #44

Closed
JiageWang opened this issue May 12, 2020 · 4 comments
Closed

build docker image error #44

JiageWang opened this issue May 12, 2020 · 4 comments

Comments

@JiageWang
Copy link

Step 12/12 : RUN pip install --no-cache-dir -e .
 ---> Running in 10680a3a2218
Obtaining file:///SOLO
    ERROR: Command errored out with exit status 1:
     command: /opt/conda/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/SOLO/setup.py'"'"'; __file__='"'"'/SOLO/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info
         cwd: /SOLO/
    Complete output (8 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/SOLO/setup.py", line 251, in <module>
        sources=['src/compiling_info.cpp']),
      File "/SOLO/setup.py", line 103, in make_cuda_ext
        raise EnvironmentError('CUDA is required to compile MMDetection!')
    OSError: CUDA is required to compile MMDetection!
    No CUDA runtime is found, using CUDA_HOME='/usr/local/cuda'
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
@WXinlong
Copy link
Owner

@JiageWang Please make sure CUDA is installed.

@liuhj86
Copy link

liuhj86 commented Jun 24, 2021

I have installed cuda and used it normally on other projects for a long time on my computer, but this still happened.

@BranVan
Copy link

BranVan commented Aug 6, 2021

I had the same problem, here's what worked for me.
Add this line to your docker file anywhere before the installation of SOLO i.e before line 19:
ENV FORCE_CUDA="1"

@JRBusiness
Copy link

I had the same problem, here's what worked for me. Add this line to your docker file anywhere before the installation of SOLO i.e before line 19: ENV FORCE_CUDA="1"

Had the same problem and this resolve my issue, thank you.

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

5 participants