Comments (5)
[Making PyMuPDF use an installed MuPDF is non-trivial because we require MuPDF's Python bindings, which are probably not installed.]
I have an experimental PyMuPDF musllinux wheel at: http://ghostscript.com/~julian/PyMuPDF-1.24.5-cp312-none-musllinux_1_2_x86_64.whl
I've no idea whether it will work on Alpine Linux, but if you could try it out that would be appreciated. For example:
wget http://ghostscript.com/~julian/PyMuPDF-1.24.5-cp312-none-musllinux_1_2_x86_64.whl
pip install PyMuPDF-1.24.5-cp312-none-musllinux_1_2_x86_64.whl
[I can build for a different Python version if required.]
from pymupdf.
Apologies, the wheel above is for x86_64, not aarch64.
Unfortunately building for musllinux aarch64 on Github does not work because the Python libclang
package appears to be broken - it cannot find libclang.so at runtime.
If you have a working build (even if very slow), could you give details of the system?
from pymupdf.
I'm currently running the following Docker container and copying the completed wheel out of it for install. Haven't had much time recently to test full compatibility due to work crunch (not detecting its building for musl linux).
FROM --platform=arm64 alpine:latest
RUN apk update && apk add python3 py3-pip py3-wheel musl-dev jpeg-dev zlib-dev freetype-dev clang clang-dev llvm m4 cmake python3-dev build-base swig
ENV VERSION=1.24.5
WORKDIR /tmp
RUN <<EOF
pip install --break-system-packages libclang
wget https://github.com/pymupdf/PyMuPDF/archive/refs/tags/$VERSION.tar.gz
tar -xvf $VERSION.tar.gz
cd PyMuPDF-$VERSION
PYMUPDF_SETUP_MUPDF_TESSERACT=0 python3 setup.py bdist_wheel
EOF
WORKDIR /project
docker build -t pymupdf .
docker run -v $(pwd):/project -it pymupdf
cp /tmp/PyMuPDF-1.24.5/dist/PyMuPDF-1.24.5-cp312-none-linux_aarch64.whl /project
from pymupdf.
Do you know why this uses --break-system-packages
in the command pip install --break-system-packages libclang
?
This looks like it might be working around the problem that i'm seeing.
from pymupdf.
from pymupdf.
Related Issues (20)
- Consider namespacing fitz HOT 4
- Can't find a word in pdf using search_for HOT 4
- high_level.extract_pages() raises TypeError HOT 2
- high_level.extract_pages() raises KeyError: MediaBox
- Missig integer values for PDF_OC_* HOT 2
- table extraction not working properly - when there is a change in contrast between Title and rows HOT 2
- Missing literals HOT 3
- About set PDF Filter HOT 2
- Information dropped when using horizontal_strategy="text" in Page.find_tables() HOT 2
- Unable to extract subset font name using the newer versions of PyMuPDF : 1.24.6 and 1.24.7. HOT 12
- Regarding some issues with reading mathematical symbols. HOT 1
- After translating and replacing the translation to the original position, the original position has a white color block. HOT 4
- Encoding issue with get_textbox() only HOT 4
- `Page.get_text` results in `AssertionError` for epub files HOT 4
- I get same origin y values and bbox values for obviously different spans HOT 1
- Pymupdf is unable to identify charts in the pdf HOT 2
- Circular Import Issue HOT 2
- page.search_for(text) splits a line break into two completely different objects HOT 1
- documentation issue - old code in the annotations documentation
- show_pdf_page mistake on page rotate HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pymupdf.