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

[BUG] pdf文件入向量库失败 #1783

Closed
zolibra opened this issue Oct 18, 2023 · 10 comments
Closed

[BUG] pdf文件入向量库失败 #1783

zolibra opened this issue Oct 18, 2023 · 10 comments
Labels
bug Something isn't working

Comments

@zolibra
Copy link

zolibra commented Oct 18, 2023

问题描述 / Problem Description
2023-10-18 10:55:56 | ERROR | root | ImportError: 从文件 demo/abc.pdf 加载文档时出错:libGL.so.1: cannot open shared object file: No such file or directory

临时解决方案:
sudo apt-get install libgl1-mesa-glx

预期解法
pip install requirments的时候自动识别并提示安装?

@zolibra zolibra added the bug Something isn't working label Oct 18, 2023
@ecjtulrh
Copy link

libgl1-mesa-glx请问这个包是做啥用的呢?

@zRzRzRzRzRzRzR
Copy link
Collaborator

libgl1-mesa-glx不是py库,没办法写在requirments,这是系统包

@zRzRzRzRzRzRzR
Copy link
Collaborator

wiki已经写到,记得看看wiki

@ecjtulrh
Copy link

我也出现了这个问题,请问您的最后解决方案是什么呢?

@ecjtulrh
Copy link

我在我运行的docker里面运行了apt-get install libgl1-mesa-glx,成功安装了,但是PDF依然加载有问题

@Astlvk
Copy link
Contributor

Astlvk commented Oct 23, 2023

wiki已经写到,记得看看wiki

wiki过了几遍没看到相关问题……emmm,这边linux系统,看issues里安装opencv-python-headless后就没问题了。

@Astlvk
Copy link
Contributor

Astlvk commented Oct 23, 2023

我在我运行的docker里面运行了apt-get install libgl1-mesa-glx,成功安装了,但是PDF依然加载有问题

可以尝试安装下opencv-python-headless,我这边安装后可以正常加载不报错了。

@ketewang
Copy link

ketewang commented Dec 7, 2023

安装opencv-python-headless

@irisrain
Copy link

yum update -y
yum install mesa-libGL glib2 -y

@SongJayJay
Copy link

我也遇到

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

7 participants