-
Notifications
You must be signed in to change notification settings - Fork 511
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
PyMuPDF no longer builds in Alpine Linux #3279
Comments
Unfortunately this is a known problem for which i don't know a simple solution. It's caused by the recent (two days ago) release of a new version 18 of the The next PyMuPDF release will use an updated MuPDF that works with libclang 18, so should build fine for you. I'm hoping that this release will be made later this week. Ideally there would be a way to tell Separate from this, i'm curious why |
Thanks for the prompt reply, looking forward to the new release!
That's probably because Alpine Linux uses |
Fixed in 1.24.0. |
The problem (MuPDF C++ bindings generation breakage) was apparently caused by a recent libclang update on pypi, and fixed in the 1.24.0 release[1]. Fixes freedomofpress#750 [1]: pymupdf/PyMuPDF#3279
The problem (MuPDF C++ bindings generation breakage) was apparently caused by a recent libclang update on pypi, and fixed in the 1.24.0 release[1]. Fixes freedomofpress#750 [1]: pymupdf/PyMuPDF#3279
Just for the people coming here to look for a solution and want to copy, one additional dependency is missing from what @apyrgio wrote.
|
@waza-ari Looks like Full Dockerfile that worked for me:
|
This issue was fixed in 1.24.0. Please do not post here unless it is to reopen this issue, otherwise it's difficult to keep track of what's going on. Instead please create a new issue or discussion. Thanks. |
Description of the bug
Installing PyMuPDF on Alpine Linux via PyPI fails. It seems that this happens while building MuPDF 1.23.10. The error log is pretty big, filled with lines like these:
How to reproduce the bug
Steps to reproduce the bug:
Execute into an Alpine Linux environment:
docker run --rm -it python:alpine ash
Install necessary helpers:
apk add gcc python3-dev musl-dev linux-headers make g++
Install PyMuPDF from PyPI:
PyMuPDF version
1.23.26
Operating system
Linux
Python version
3.12
The text was updated successfully, but these errors were encountered: