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

magic-pdf -v 报错 #1865

Open
Dimitri666 opened this issue Mar 7, 2025 · 0 comments
Open

magic-pdf -v 报错 #1865

Dimitri666 opened this issue Mar 7, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@Dimitri666
Copy link

Description of the bug | 错误描述

按照官方下载magic-pdf后,输入magic-pdf -v 后报错
[HAMI-core Msg(4192:140020524790272:libvgpu.c:836)]: Initializing.....
[HAMI-core Warn(4192:140020524790272:multiprocess_memory_limit.c:121)]: NVML error at line 121: 1
/root/conda/envs/mineru/lib/python3.10/site-packages/paddle/utils/cpp_extension/extension_utils.py:711: UserWarning: No ccache found. Please be aware that recompiling all source files may be required. You can download and install ccache from: https://github.com/ccache/ccache/blob/master/doc/INSTALL.md
warnings.warn(warning_message)
Traceback (most recent call last):
File "/root/conda/envs/mineru/bin/magic-pdf", line 5, in
from magic_pdf.tools.cli import cli
File "/root/conda/envs/mineru/lib/python3.10/site-packages/magic_pdf/tools/cli.py", line 12, in
from magic_pdf.tools.common import do_parse, parse_pdf_methods
File "/root/conda/envs/mineru/lib/python3.10/site-packages/magic_pdf/tools/common.py", line 13, in
from magic_pdf.model.doc_analyze_by_custom_model import doc_analyze
File "/root/conda/envs/mineru/lib/python3.10/site-packages/magic_pdf/model/doc_analyze_by_custom_model.py", line 15, in
from magic_pdf.model.batch_analyze import BatchAnalyze
File "/root/conda/envs/mineru/lib/python3.10/site-packages/magic_pdf/model/batch_analyze.py", line 3, in
import cv2
ImportError: libGL.so.1: cannot open shared object file: No such file or directory
[HAMI-core Msg(4192:140020524790272:multiprocess_memory_limit.c:468)]: Calling exit handler 4192

How to reproduce the bug | 如何复现

按照官方下载方法,
conda create -n mineru python=3.10
conda activate mineru
pip install -U "magic-pdf[full]" --extra-index-url https://wheels.myhloli.com -i https://mirrors.aliyun.com/pypi/simple
pip install modelscope
wget https://gcore.jsdelivr.net/gh/opendatalab/MinerU@master/scripts/download_models.py -O download_models.py
python download_models.py

Operating system | 操作系统

Linux

Python version | Python 版本

3.10

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

1.0.x

Device mode | 设备模式

cpu

@Dimitri666 Dimitri666 added the bug Something isn't working label Mar 7, 2025
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

1 participant