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命令,报错OpenBLAS线程限制 #1019

Open
Muyi030 opened this issue Nov 19, 2024 · 1 comment
Open

使用magic-pdf命令,报错OpenBLAS线程限制 #1019

Muyi030 opened this issue Nov 19, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@Muyi030
Copy link

Muyi030 commented Nov 19, 2024

Description of the bug | 错误描述

magic-pdf -p ./demo.pdf -o ./output -m auto

报错:
OpenBLAS blas_thread_init: pthread_create failed for thread 1 of 10: Operation not permitted
OpenBLAS blas_thread_init: RLIMIT_NPROC -1 current, -1 max
OpenBLAS blas_thread_init: pthread_create failed for thread 2 of 10: Operation not permitted
OpenBLAS blas_thread_init: RLIMIT_NPROC -1 current, -1 max
OpenBLAS blas_thread_init: pthread_create failed for thread 3 of 10: Operation not permitted
OpenBLAS blas_thread_init: RLIMIT_NPROC -1 current, -1 max
OpenBLAS blas_thread_init: pthread_create failed for thread 4 of 10: Operation not permitted
OpenBLAS blas_thread_init: RLIMIT_NPROC -1 current, -1 max
OpenBLAS blas_thread_init: pthread_create failed for thread 5 of 10: Operation not permitted
OpenBLAS blas_thread_init: RLIMIT_NPROC -1 current, -1 max
OpenBLAS blas_thread_init: pthread_create failed for thread 6 of 10: Operation not permitted
OpenBLAS blas_thread_init: RLIMIT_NPROC -1 current, -1 max
OpenBLAS blas_thread_init: pthread_create failed for thread 7 of 10: Operation not permitted
OpenBLAS blas_thread_init: RLIMIT_NPROC -1 current, -1 max
OpenBLAS blas_thread_init: pthread_create failed for thread 8 of 10: Operation not permitted
OpenBLAS blas_thread_init: RLIMIT_NPROC -1 current, -1 max
OpenBLAS blas_thread_init: pthread_create failed for thread 9 of 10: Operation not permitted
OpenBLAS blas_thread_init: RLIMIT_NPROC -1 current, -1 max
Traceback (most recent call last):
File "/miniconda/envs/MinerU/bin/magic-pdf", line 5, in
from magic_pdf.tools.cli import cli
File "/miniconda/envs/MinerU/lib/python3.10/site-packages/magic_pdf/tools/cli.py", line 11, in
from magic_pdf.tools.common import do_parse, parse_pdf_methods
File "/miniconda/envs/MinerU/lib/python3.10/site-packages/magic_pdf/tools/common.py", line 9, in
from magic_pdf.libs.draw_bbox import (draw_layout_bbox, draw_line_sort_bbox,
File "/miniconda/envs/MinerU/lib/python3.10/site-packages/magic_pdf/libs/draw_bbox.py", line 1, in
from magic_pdf.data.dataset import PymuDocDataset
File "/miniconda/envs/MinerU/lib/python3.10/site-packages/magic_pdf/data/dataset.py", line 8, in
from magic_pdf.data.utils import fitz_doc_to_image
File "/miniconda/envs/MinerU/lib/python3.10/site-packages/magic_pdf/data/utils.py", line 3, in
import numpy as np
File "/miniconda/envs/MinerU/lib/python3.10/site-packages/numpy/init.py", line 130, in
from numpy.config import show as show_config
File "/miniconda/envs/MinerU/lib/python3.10/site-packages/numpy/config.py", line 4, in
from numpy.core._multiarray_umath import (
File "/miniconda/envs/MinerU/lib/python3.10/site-packages/numpy/core/init.py", line 24, in
from . import multiarray
File "/miniconda/envs/MinerU/lib/python3.10/site-packages/numpy/core/multiarray.py", line 10, in
from . import overrides
File "/miniconda/envs/MinerU/lib/python3.10/site-packages/numpy/core/overrides.py", line 8, in
from numpy.core._multiarray_umath import (
File "", line 216, in _lock_unlock_module
KeyboardInterrupt

How to reproduce the bug | 如何复现

magic-pdf -p ./demo.pdf -o ./output -m auto

Operating system | 操作系统

Linux

Python version | Python 版本

3.10

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

0.9.x

Device mode | 设备模式

cpu

@Muyi030 Muyi030 added the bug Something isn't working label Nov 19, 2024
@Muyi030
Copy link
Author

Muyi030 commented Nov 19, 2024

能帮忙看一下什么原因吗?十分感谢!

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