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

Apple M3 Pro cannot build PyMuPDF==1.20.2 any more #3253

Closed
R4Ajeti opened this issue Mar 11, 2024 · 2 comments
Closed

Apple M3 Pro cannot build PyMuPDF==1.20.2 any more #3253

R4Ajeti opened this issue Mar 11, 2024 · 2 comments
Labels
not a bug not a bug / user error / unable to reproduce

Comments

@R4Ajeti
Copy link

R4Ajeti commented Mar 11, 2024

Description of the bug

My problem is that I cannot install PyMuPDF version 1.20.2
pip install --verbose PyMuPDF==1.20.2 > pip_install_log.txt 2>&1

My full logs are here:
pip_install_log.txt

More info about: brew info mupdf swig freetype
are here:

==> mupdf: stable 1.23.11 (bottled), HEAD
Lightweight PDF and XPS viewer
https://mupdf.com/
Conflicts with:
mupdf-tools (because mupdf and mupdf-tools install the same binaries)
/opt/homebrew/Cellar/mupdf/1.23.11 (107 files, 48.3MB) *
Poured from bottle using the formulae.brew.sh API on 2024-03-11 at 05:11:28
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/m/mupdf.rb
License: AGPL-3.0-or-later
==> Dependencies
Build: pkg-config ✔
Required: freetype ✔, gumbo-parser ✔, harfbuzz ✔, jbig2dec ✔, jpeg-turbo ✔, mujs ✔, openjpeg ✔, openssl@3 ✔
==> Options
--HEAD
Install HEAD version
==> Analytics
install: ...
install-on-request: ...
build-error: 0 ..

==> swig: stable 4.2.1 (bottled), HEAD
Generate scripting interfaces to C/C++ code
https://www.swig.org/
/opt/homebrew/Cellar/swig/4.2.1 (829 files, 5.7MB) *
Poured from bottle using the formulae.brew.sh API on 2024-03-11 at 05:03:14
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/s/swig.rb
License: GPL-3.0-or-later
==> Dependencies
Required: pcre2 ✔
==> Options
--HEAD
Install HEAD version
==> Analytics
install: ...
install-on-request: ...
build-error: 21 ...

==> freetype: stable 2.13.2 (bottled)
Software library to render fonts
https://www.freetype.org/
/opt/homebrew/Cellar/freetype/2.13.2 (67 files, 2.4MB) *
Poured from bottle using the formulae.brew.sh API on 2024-02-10 at 20:33:37
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/f/freetype.rb
License: FTL
==> Dependencies
Build: pkg-config ✔
Required: libpng ✔
==> Analytics
install: ...
install-on-request: ...
build-error: 0 ...

How to reproduce the bug

Buy a Macbook M3 Pro install pyenv install python 3.12.1 create environment and try to build PyMuPDF==1.20.2

PyMuPDF version

Built from source

Operating system

MacOS

Python version

3.12

@julian-smith-artifex-com
Copy link
Collaborator

PyMuPDF 1.20.2 is very old and unsupported.

Please try the latest release, currently 1.23.26, for example install with: pip install pymupdf.

@julian-smith-artifex-com julian-smith-artifex-com added the not a bug not a bug / user error / unable to reproduce label Mar 11, 2024
@julian-smith-artifex-com
Copy link
Collaborator

I'll close this now. Please reopen if you find a problem with the current release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
not a bug not a bug / user error / unable to reproduce
Projects
None yet
Development

No branches or pull requests

2 participants