From cf78800d0c5bf4ee518d9a8cfd4ed7176f9f2268 Mon Sep 17 00:00:00 2001 From: Kastan Day Date: Tue, 7 Nov 2023 17:57:56 +0100 Subject: [PATCH] add libgl1 for cv2 in Docker (for unstructured) --- railway.json | 3 ++- requirements.txt | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/railway.json b/railway.json index 5a014344..51f73aac 100644 --- a/railway.json +++ b/railway.json @@ -17,7 +17,8 @@ }, "setup": { "aptPkgs": [ - "libcap-dev" + "libcap-dev", + "libgl1" ], "nixPkgs": [ "python310", diff --git a/requirements.txt b/requirements.txt index b3d3912f..8d3585f9 100644 --- a/requirements.txt +++ b/requirements.txt @@ -25,7 +25,7 @@ boto3==1.28.79 # ImportError: libcrypt.so.2: cannot open shared object file: No such file or directory # only safe version of pymupdf is 1.22.5 PyMuPDF==1.23.6 -unstructured[xlsx,image,pptx]==0.10.29 +unstructured[xlsx,image,pptx]==0.10.29 # causes huge ~5.3 GB of installs. Probbably from onnx: https://github.com/Unstructured-IO/unstructured/blob/ad14321016533dc03c1782f6ebea00bc9c804846/requirements/extra-pdf-image.in#L4 tabulate==0.9.0 pdf2image==1.16.3 typing-inspect==0.9.0