-
Notifications
You must be signed in to change notification settings - Fork 634
Closed
Labels
Description
I'm on an Ubuntu 18.04 VM using Python 3.6.
Looks a bit like a dupe of #358 but my understanding from https://pypi.org/project/PyMuPDF/ is that MuPDF is included in a wheel.
Again, apologies if I've misunderstood: perhaps the new install procedure is that everyone needs to get MuPDF manually!?
$ pip install --user pymupdf
Collecting pymupdf
Using cached https://files.pythonhosted.org/packages/99/4c/5f1506fed9d6dc1cb58b11e7d4e773fa11da99bd3dbe77b38cc09d130643/PyMuPDF-1.16.7.tar.gz
Building wheels for collected packages: pymupdf
Running setup.py bdist_wheel for pymupdf ... error
Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-JN8Hwk/pymupdf/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/tmpaDrZ6cpip-wheel- --python-tag cp27:
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/fitz
copying fitz/__init__.py -> build/lib.linux-x86_64-2.7/fitz
copying fitz/fitz.py -> build/lib.linux-x86_64-2.7/fitz
copying fitz/utils.py -> build/lib.linux-x86_64-2.7/fitz
running build_ext
building 'fitz._fitz' extension
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/fitz
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-PPrPZj/python2.7-2.7.15=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/mupdf -I/usr/local/include/mupdf -I/usr/include/python2.7 -c fitz/fitz_wrap.c -o build/temp.linux-x86_64-2.7/fitz/fitz_wrap.o
fitz/fitz_wrap.c:2732:10: fatal error: fitz.h: No such file or directory
#include <fitz.h>
^~~~~~~~
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
Failed building wheel for pymupdf
Running setup.py clean for pymupdf
Failed to build pymupdf
Installing collected packages: pymupdf
Running setup.py install for pymupdf ... error
Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-JN8Hwk/pymupdf/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-nqzDYP-record/install-record.txt --single-version-externally-managed --compile --user --prefix=:
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/fitz
copying fitz/__init__.py -> build/lib.linux-x86_64-2.7/fitz
copying fitz/fitz.py -> build/lib.linux-x86_64-2.7/fitz
copying fitz/utils.py -> build/lib.linux-x86_64-2.7/fitz
running build_ext
building 'fitz._fitz' extension
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/fitz
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-PPrPZj/python2.7-2.7.15=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/mupdf -I/usr/local/include/mupdf -I/usr/include/python2.7 -c fitz/fitz_wrap.c -o build/temp.linux-x86_64-2.7/fitz/fitz_wrap.o
fitz/fitz_wrap.c:2732:10: fatal error: fitz.h: No such file or directory
#include <fitz.h>
^~~~~~~~
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-JN8Hwk/pymupdf/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-nqzDYP-record/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-build-JN8Hwk/pymupdf/