MinerU icon indicating copy to clipboard operation
MinerU copied to clipboard

使用Docker快速部署报错

Open hxuaj opened this issue 1 year ago • 4 comments

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 avatar Dec 17 '24 10:12 hxuaj

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

myhloli avatar Dec 17 '24 11:12 myhloli

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

是在x86_64的设备上

uname -m
x86_64

hxuaj avatar Dec 17 '24 11:12 hxuaj

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

daaain avatar Dec 17 '24 14:12 daaain

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

hanqingwu avatar Dec 20 '24 03:12 hanqingwu

请问一下最后怎么解决的呀

Tingo116 avatar Mar 31 '25 07:03 Tingo116