Skip to content

Conversation

@MthwRobinson
Copy link
Contributor

Summary

Upstreams a temporary workaround to install mesa-gl==24.1.0 because libgallium is missing from mesa-gl==24.2.0 in the wolfi package manager. This was causing build errors in jobs like this one.

 > [model-deps 4/4] RUN --mount=type=secret,id=hf_token,uid=1000   export UNSTRUCTURED_HF_TOKEN=$(cat /run/secrets/hf_token) || true;   ./scripts/preload-models.sh:
9.719   File "/home/notebook-user/unstructured/unstructured/partition/utils/ocr_models/paddle_ocr.py", line 23, in __init__
9.719     self.agent = self.load_agent(language)
9.719                  ^^^^^^^^^^^^^^^^^^^^^^^^^
9.719   File "/home/notebook-user/unstructured/unstructured/partition/utils/ocr_models/paddle_ocr.py", line 29, in load_agent
9.719     from unstructured_paddleocr import PaddleOCR
9.719   File "/home/notebook-user/.local/lib/python3.11/site-packages/unstructured_paddleocr/__init__.py", line 14, in <module>
9.719     from .paddleocr import *
9.719   File "/home/notebook-user/.local/lib/python3.11/site-packages/unstructured_paddleocr/paddleocr.py", line 26, in <module>
9.719     import cv2
9.719 ImportError: libgallium-24.2.2.so: cannot open shared object file: No such file or directory

Copy link
Contributor

@christinestraub christinestraub left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@MthwRobinson MthwRobinson merged commit 6ad07c1 into main Sep 10, 2024
@MthwRobinson MthwRobinson deleted the fix/mesa-gl branch September 10, 2024 16:34
github-merge-queue bot pushed a commit to Unstructured-IO/unstructured that referenced this pull request Sep 13, 2024
### Summary

Per [this
job](https://github.com/Unstructured-IO/unstructured/actions/runs/10842120429/job/30087252047),
`arm64` builds are currently failing, likely because the workaround for
the broken `mesa-gl` package from the `wolfi` repository only works for
`amd64`. Temporarily disabling the `arm64` build in order to push out
the latest `amd64` image with security patches, then will revert and
work the fix for the `arm64` image.

- Unstructured-IO/base-images#44
temp-adelyn pushed a commit to temp-adelyn/unstructured that referenced this pull request Mar 3, 2025
### Summary

Per [this
job](https://github.com/Unstructured-IO/unstructured/actions/runs/10842120429/job/30087252047),
`arm64` builds are currently failing, likely because the workaround for
the broken `mesa-gl` package from the `wolfi` repository only works for
`amd64`. Temporarily disabling the `arm64` build in order to push out
the latest `amd64` image with security patches, then will revert and
work the fix for the `arm64` image.

- Unstructured-IO/base-images#44
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

Successfully merging this pull request may close these issues.

3 participants