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

DockerFile有问题 #91

Open
OrangeJuice3211 opened this issue Mar 12, 2024 · 3 comments
Open

DockerFile有问题 #91

OrangeJuice3211 opened this issue Mar 12, 2024 · 3 comments

Comments

@OrangeJuice3211
Copy link

OrangeJuice3211 commented Mar 12, 2024

大家好,我在使用docker build . -t bevfusion命令构建位于docker文件夹下的DockerFile时,出现了一系列问题,详细问题如下:

  1. 运行到第16行 wget https://pitaya-data-for-annotation.oss-cn-hangzhou.aliyuncs.com/software/cmake-3.18.5.tar.gz 时报错不可达,应该是作者团队自己的oss,我们无法访问,遂改为 wget https://cmake.org/files/v3.18/cmake-3.18.5.tar.gz
  2. 运行到第32行RUN pip install nuscenes-devkit einops时,报错
    企业微信截图_171021497999
  3. 注释掉这一行,再次构建镜像,又报错:
ERROR: Could not open requirements file: [Errno 2] No such file or directory: 'requirements/build.txt'
  1. 发现这个TXT里面啥也没有,遂又注释掉,再次构建,又报错:
ERROR: File "setup.py" not found. Directory cannot be installed in editable mode: /workspace

请问这个DockerFile是能用的吗?

@OrangeJuice3211
Copy link
Author

修改了一堆问题之后,出现了最终错误,能到DockerFile第42行RUN pip install mmpycocotools --no-cache-dir --force --no-deps ,麻了,放弃了
image
image

@Barath19
Copy link

RUN pip install cython==0.29.33
RUN pip install mmpycocotools --no-cache-dir --force --no-deps

@cheopis
Copy link

cheopis commented Sep 10, 2024

I don't know if this wold still be useful, but I managed to fix some of your problems:

  1. RUN pip install nuscenes-devkit einops returning:
    ERROR: Could not find a version that satisfies the requirement numpy>=1.22.0

    Change the line RUN pip install nuscenes-devkit einops in Dockerfile to

RUN pip install nuscenes-devkit==1.1.9 einops
  1. ERROR: Could not open requirements file: [Errno 2] No such file or directory: 'requirements/build.txt'
    ERROR: File "setup.py" not found. Directory cannot be installed in editable mode: /workspace

Comment RUN pip install -r ../requirements/build.txt and change RUN pip install --no-cache-dir -e . to:

RUN git clone https://github.com/ADLab-AutoDrive/BEVFusion /BEVFusion \
    && cd /BEVFusion \
    && pip install --no-cache-dir -e .
  1. RUN pip install mmpycocotools --no-cache-dir --force --no-deps

Resolved by changing RUN pip install cython as described by @Barath19

RUN pip install cython==0.29.33
  1. I also got an error with line RUN find . -name "*.so" | xargs rm, but just commented it

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

3 participants