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

Library not loaded: @loader_path/libjxl.0.6.1.dylib #504

Open
audio-github-2020 opened this issue Aug 29, 2024 · 2 comments
Open

Library not loaded: @loader_path/libjxl.0.6.1.dylib #504

audio-github-2020 opened this issue Aug 29, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@audio-github-2020
Copy link

Description of the bug | 错误描述

ImportError: dlopen(/opt/anaconda3/envs/MinerU/lib/python3.10/site-packages/cv2/cv2.abi3.so, 2): Library not loaded: @loader_path/libjxl.0.6.1.dylib
Referenced from: /opt/anaconda3/envs/MinerU/lib/python3.10/site-packages/cv2/.dylibs/libavcodec.58.134.100.dylib
Reason: no suitable image found. Did find:
/opt/anaconda3/envs/MinerU/lib/python3.10/site-packages/cv2/.dylibs/libjxl.0.6.1.dylib: file too short
/opt/anaconda3/envs/MinerU/lib/python3.10/site-packages/cv2/.dylibs/libjxl.0.6.1.dylib: file too short
2024-08-29 11:33:11.312 | ERROR | magic_pdf.model.pdf_extract_kit::28 - Required dependency not installed, please install by
"pip install magic-pdf[full] --extra-index-url https://myhloli.github.io/wheels/"

环境:macOs 10.15.7

重新安装也还是不行,根据目录找到对应的文件只有0字节
Snipaste_2024-08-29_13-43-53

How to reproduce the bug | 如何复现

根据wiki要求完成安装,执行命令进行pdf解析时报错

magic-pdf -p {some_pdf} -o {some_output_dir} -m auto

Operating system | 操作系统

MacOS

Python version | Python 版本

3.10

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

0.7.x

Device mode | 设备模式

cpu

@audio-github-2020 audio-github-2020 added the bug Something isn't working label Aug 29, 2024
@myhloli
Copy link
Collaborator

myhloli commented Aug 29, 2024

pip uninstall opencv-python
pip install opencv-python

重新安装opencv库试试

@audio-github-2020
Copy link
Author

已解决,直接从国外的源下载就没问题。从国内源下载、重新安装依赖包等方式都没解决。

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

2 participants