-
Notifications
You must be signed in to change notification settings - Fork 951
bug/opencv-python should be headless
to avoid dependency on Xorg
#2503
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
Comments
Having the same issue when importing partition_pdf
|
Is there a workaround @tigerinus ? |
@tigerinus, @mhfarahani what base image are you using? I'd like to replicate the described behavior on my side |
any distro that doesn't come with the required binary In our case, it's a highly customized embedded linux ( |
As far as I can tell, there's a quite relevant dependency: We have two options: @tigerinus @adi-kmt @mhfarahani
if Please let me know if that helps 🤝 |
Facing the same problem. The workaround works, thank you! |
I've tried the workaround but now the error when importing partition_pdf is: ModuleNotFoundError: No module named 'cv2.typing'; 'cv2' is not a package |
Hitting the same issue. Is there any news on whether this could be changed to the headless version? |
Thanks everyone, we're going to take a look at this. |
The workaround works, just make sure that you do your uninstall after you've done your requirements install RUN pip install -r requirements.txt
RUN pip uninstall -y opencv-python opencv-contrib-python && pip install opencv-python-headless==4.8.0.76 *edited as I forgot what project I was looking at |
Closing as inactive. |
Worked well. Got error unstructured ModuleNotFoundError: No module named 'cv2.typing'
|
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug
Getting following error when loading PDF files on a container image to be hosted in cloud:
However
libGL.so.1
is part of Xorg binaries. We could switch to a full Linux distro to resolve this, but a better option is to haveopencv-python-headless
in dependency requirements instead ofopencv-python
.The text was updated successfully, but these errors were encountered: