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

using boxdetect in a lambda errors due to GUI artifacts #31

Open
churdman001 opened this issue Jun 15, 2023 · 0 comments
Open

using boxdetect in a lambda errors due to GUI artifacts #31

churdman001 opened this issue Jun 15, 2023 · 0 comments

Comments

@churdman001
Copy link

churdman001 commented Jun 15, 2023

When trying to use boxdetect in an AWS lambda, this error occurs when deploying:

[ERROR] Runtime.ImportModuleError: Unable to import module 'pd_ocr/handlers/s3_write': libGL.so.1: cannot open shared object file: No such file or directory Traceback (most recent call last):

The error occurs because it is trying to use opencv artifacts necessary for GUI interface which is not needed in a lambda.

Proposed solution: boxdetect should use opencv-python-headless instead of opencv-python. That way these unneeded GUI artifacts are not included allowing boxdetect to be used in a lambda.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant