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快速部署报错 #1309

Open
hxuaj opened this issue Dec 17, 2024 · 4 comments
Open

使用Docker快速部署报错 #1309

hxuaj opened this issue Dec 17, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@hxuaj
Copy link

hxuaj commented Dec 17, 2024

Description of the bug | 错误描述

在使用官网安装文档中的docker快速部署时发生了报错。

wget https://github.com/opendatalab/MinerU/raw/master/Dockerfile
docker build -t mineru:latest .
docker run --rm -it --gpus=all mineru:latest /bin/bash
magic-pdf --help

报错信息如下:

576.7 ERROR: Ignored the following versions that require a different python version: 0.0.10 Requires-Python >=3.6,<=3.10; 0.0.9 Requires-Python >=3.6,<=3.10
576.7 ERROR: Could not find a version that satisfies the requirement detectron2 (from versions: none)
577.0 ERROR: No matching distribution found for detectron2
------
Dockerfile:31
--------------------
  30 |     # Activate the virtual environment and install necessary Python packages
  31 | >>> RUN /bin/bash -c "source /opt/mineru_venv/bin/activate && \
  32 | >>>     pip3 install --upgrade pip && \
  33 | >>>     wget https://gitee.com/myhloli/MinerU/raw/master/requirements-docker.txt && \
  34 | >>>     pip3 install -r requirements-docker.txt --extra-index-url https://wheels.myhloli.com -i https://mirrors.aliyun.com/pypi/simple && \
  35 | >>>     pip3 install paddlepaddle-gpu==3.0.0b1 -i https://www.paddlepaddle.org.cn/packages/stable/cu118/"
  36 |     
--------------------
ERROR: failed to solve: process "/bin/sh -c /bin/bash -c \"source /opt/mineru_venv/bin/activate &&     pip3 install --upgrade pip &&     wget https://gitee.com/myhloli/MinerU/raw/master/requirements-docker.txt &&     pip3 install -r requirements-docker.txt --extra-index-url https://wheels.myhloli.com -i https://mirrors.aliyun.com/pypi/simple &&     pip3 install paddlepaddle-gpu==3.0.0b1 -i https://www.paddlepaddle.org.cn/packages/stable/cu118/\"" did not complete successfully: exit code: 1

How to reproduce the bug | 如何复现

wget https://github.com/opendatalab/MinerU/raw/master/Dockerfile
docker build -t mineru:latest .

Operating system | 操作系统

Linux

Python version | Python 版本

3.10

Software version | 软件版本 (magic-pdf --version)

0.10.x

Device mode | 设备模式

cuda

@hxuaj hxuaj added the bug Something isn't working label Dec 17, 2024
@myhloli
Copy link
Collaborator

myhloli commented Dec 17, 2024

不支持arm版本的linux,需要在x86-64的设备上build和使用

@hxuaj
Copy link
Author

hxuaj commented Dec 17, 2024

不支持arm版本的linux,需要在x86-64的设备上build和使用

是在x86_64的设备上

uname -m
x86_64

@daaain
Copy link

daaain commented Dec 17, 2024

Thanks, this did solve my issue on ARM Mac, had to start like this for my app:

FROM --platform=linux/amd64 python:3.10-bookworm

@hanqingwu
Copy link

看下编译镜像的前面log 有没有其他报错,看起来像是python3.10 没有安装成功,后面 detectron2 装不上

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants