"Could not build wheels for pikepdf"
sypianski opened this issue · 1 comments
sypianski commented
As I was trying to install p2r, but got this error. I'm not much familiar with Terminal. I'm running macOS Monterrey 12.1.
click
ERROR: Command errored out with exit status 1:
command: /opt/homebrew/opt/python@3.9/bin/python3.9 /opt/homebrew/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py build_wheel /var/folders/lp/xc0xj9hx5vd88zclq8jyw6_m0000gn/T/tmp5ajtbs2y
cwd: /private/var/folders/lp/xc0xj9hx5vd88zclq8jyw6_m0000gn/T/pip-install-m8xew6sq/pikepdf_1d18861d04524fd49d0f739383a8cdf6
Complete output (86 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-12-arm64-3.9
creating build/lib.macosx-12-arm64-3.9/pikepdf
copying src/pikepdf/_methods.py -> build/lib.macosx-12-arm64-3.9/pikepdf
copying src/pikepdf/_version.py -> build/lib.macosx-12-arm64-3.9/pikepdf
copying src/pikepdf/__init__.py -> build/lib.macosx-12-arm64-3.9/pikepdf
copying src/pikepdf/_cpphelpers.py -> build/lib.macosx-12-arm64-3.9/pikepdf
copying src/pikepdf/jbig2.py -> build/lib.macosx-12-arm64-3.9/pikepdf
copying src/pikepdf/_xml.py -> build/lib.macosx-12-arm64-3.9/pikepdf
copying src/pikepdf/objects.py -> build/lib.macosx-12-arm64-3.9/pikepdf
copying src/pikepdf/codec.py -> build/lib.macosx-12-arm64-3.9/pikepdf
creating build/lib.macosx-12-arm64-3.9/pikepdf/models
copying src/pikepdf/models/matrix.py -> build/lib.macosx-12-arm64-3.9/pikepdf/models
copying src/pikepdf/models/_transcoding.py -> build/lib.macosx-12-arm64-3.9/pikepdf/models
copying src/pikepdf/models/encryption.py -> build/lib.macosx-12-arm64-3.9/pikepdf/models
copying src/pikepdf/models/metadata.py -> build/lib.macosx-12-arm64-3.9/pikepdf/models
copying src/pikepdf/models/_content_stream.py -> build/lib.macosx-12-arm64-3.9/pikepdf/models
copying src/pikepdf/models/__init__.py -> build/lib.macosx-12-arm64-3.9/pikepdf/models
copying src/pikepdf/models/outlines.py -> build/lib.macosx-12-arm64-3.9/pikepdf/models
copying src/pikepdf/models/image.py -> build/lib.macosx-12-arm64-3.9/pikepdf/models
running egg_info
listing git files failed - pretending there aren't any
writing manifest file 'src/pikepdf.egg-info/SOURCES.txt'
copying src/pikepdf/_qpdf.pyi -> build/lib.macosx-12-arm64-3.9/pikepdf
copying src/pikepdf/py.typed -> build/lib.macosx-12-arm64-3.9/pikepdf
running build_ext
creating build/temp.macosx-12-arm64-3.9
creating build/temp.macosx-12-arm64-3.9/src
creating build/temp.macosx-12-arm64-3.9/src/qpdf
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/private/var/folders/lp/xc0xj9hx5vd88zclq8jyw6_m0000gn/T/pip-build-env-gv_akt2f/overlay/lib/python3.9/site-packages/pybind11/include -I/opt/homebrew/Cellar/python@3.9/3.9.10/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c src/qpdf/embeddedfiles.cpp -o build/temp.macosx-12-arm64-3.9/src/qpdf/embeddedfiles.o -fvisibility=hidden -g0 -stdlib=libc++ -std=c++17 -mmacosx-version-min=10.14
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/private/var/folders/lp/xc0xj9hx5vd88zclq8jyw6_m0000gn/T/pip-build-env-gv_akt2f/overlay/lib/python3.9/site-packages/pybind11/include -I/opt/homebrew/Cellar/python@3.9/3.9.10/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c src/qpdf/annotation.cpp -o build/temp.macosx-12-arm64-3.9/src/qpdf/annotation.o -fvisibility=hidden -g0 -stdlib=libc++ -std=c++17 -mmacosx-version-min=10.14
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/private/var/folders/lp/xc0xj9hx5vd88zclq8jyw6_m0000gn/T/pip-build-env-gv_akt2f/overlay/lib/python3.9/site-packages/pybind11/include -I/opt/homebrew/Cellar/python@3.9/3.9.10/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c src/qpdf/nametree.cpp -o build/temp.macosx-12-arm64-3.9/src/qpdf/nametree.o -fvisibility=hidden -g0 -stdlib=libc++ -std=c++17 -mmacosx-version-min=10.14
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/private/var/folders/lp/xc0xj9hx5vd88zclq8jyw6_m0000gn/T/pip-build-env-gv_akt2f/overlay/lib/python3.9/site-packages/pybind11/include -I/opt/homebrew/Cellar/python@3.9/3.9.10/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c src/qpdf/object.cpp -o build/temp.macosx-12-arm64-3.9/src/qpdf/object.o -fvisibility=hidden -g0 -stdlib=libc++ -std=c++17 -mmacosx-version-min=10.14
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/private/var/folders/lp/xc0xj9hx5vd88zclq8jyw6_m0000gn/T/pip-build-env-gv_akt2f/overlay/lib/python3.9/site-packages/pybind11/include -I/opt/homebrew/Cellar/python@3.9/3.9.10/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c src/qpdf/object_convert.cpp -o build/temp.macosx-12-arm64-3.9/src/qpdf/object_convert.o -fvisibility=hidden -g0 -stdlib=libc++ -std=c++17 -mmacosx-version-min=10.14
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/private/var/folders/lp/xc0xj9hx5vd88zclq8jyw6_m0000gn/T/pip-build-env-gv_akt2f/overlay/lib/python3.9/site-packages/pybind11/include -I/opt/homebrew/Cellar/python@3.9/3.9.10/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c src/qpdf/page.cpp -o build/temp.macosx-12-arm64-3.9/src/qpdf/page.o -fvisibility=hidden -g0 -stdlib=libc++ -std=c++17 -mmacosx-version-min=10.14
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/private/var/folders/lp/xc0xj9hx5vd88zclq8jyw6_m0000gn/T/pip-build-env-gv_akt2f/overlay/lib/python3.9/site-packages/pybind11/include -I/opt/homebrew/Cellar/python@3.9/3.9.10/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c src/qpdf/object_repr.cpp -o build/temp.macosx-12-arm64-3.9/src/qpdf/object_repr.o -fvisibility=hidden -g0 -stdlib=libc++ -std=c++17 -mmacosx-version-min=10.14
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/private/var/folders/lp/xc0xj9hx5vd88zclq8jyw6_m0000gn/T/pip-build-env-gv_akt2f/overlay/lib/python3.9/site-packages/pybind11/include -I/opt/homebrew/Cellar/python@3.9/3.9.10/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c src/qpdf/parsers.cpp -o build/temp.macosx-12-arm64-3.9/src/qpdf/parsers.o -fvisibility=hidden -g0 -stdlib=libc++ -std=c++17 -mmacosx-version-min=10.14
src/qpdf/annotation.cppsrc/qpdf/nametree.cpp::99::1010:: src/qpdf/embeddedfiles.cpp:9:10: fatal error: 'qpdf/Constants.h' file not found
#include <qpdf/Constants.h>
^~~~~~~~~~~~~~~~~~
fatal error: 'qpdf/Constants.h' file not found
#include <qpdf/Constants.h>
^~~~~~~~~~~~~~~~~~
fatal error: 'qpdf/Constants.h' file not found
#include <qpdf/Constants.h>
^~~~~~~~~~~~~~~~~~
src/qpdf/object.cpp:12:10: fatal error: 'qpdf/Constants.h' file not found
#include <qpdf/Constants.h>
^~~~~~~~~~~~~~~~~~
src/qpdf/object_convert.cpp:17:10: fatal error: 'qpdf/Constants.h' file not found
#include <qpdf/Constants.h>
^~~~~~~~~~~~~~~~~~
src/qpdf/object_repr.cpp:24:10: fatal error: 'qpdf/Constants.h' file not found
#include <qpdf/Constants.h>
^~~~~~~~~~~~~~~~~~
In file included from src/qpdf/page.cpp:14:
src/qpdf/pikepdf.h:15:10: fatal error: 'qpdf/PointerHolder.hh' file not found
#include <qpdf/PointerHolder.hh>
^~~~~~~~~~~~~~~~~~~~~~~
In file included from src/qpdf/parsers.cpp:12:
src/qpdf/pikepdf.h:15:10: fatal error: 'qpdf/PointerHolder.hh' file not found
#include <qpdf/PointerHolder.hh>
^~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
1 error generated.
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/private/var/folders/lp/xc0xj9hx5vd88zclq8jyw6_m0000gn/T/pip-build-env-gv_akt2f/overlay/lib/python3.9/site-packages/pybind11/include -I/opt/homebrew/Cellar/python@3.9/3.9.10/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c src/qpdf/pikepdf.cpp -o build/temp.macosx-12-arm64-3.9/src/qpdf/pikepdf.o -fvisibility=hidden -g0 -stdlib=libc++ -std=c++17 -mmacosx-version-min=10.14
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/private/var/folders/lp/xc0xj9hx5vd88zclq8jyw6_m0000gn/T/pip-build-env-gv_akt2f/overlay/lib/python3.9/site-packages/pybind11/include -I/opt/homebrew/Cellar/python@3.9/3.9.10/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c src/qpdf/pipeline.cpp -o build/temp.macosx-12-arm64-3.9/src/qpdf/pipeline.o -fvisibility=hidden -g0 -stdlib=libc++ -std=c++17 -mmacosx-version-min=10.14
1 error generated.
error: command '/usr/bin/clang' failed with exit code 1
1 error generated.
src/qpdf/pipeline.cpp:9:10: fatal error: 'qpdf/Constants.h' file not found
#include <qpdf/Constants.h>
^~~~~~~~~~~~~~~~~~
1 error generated.
1 error generated.
1 error generated.
1 error generated.
In file included from src/qpdf/pikepdf.cpp:18:
src/qpdf/pikepdf.h:15:10: fatal error: 'qpdf/PointerHolder.hh' file not found
#include <qpdf/PointerHolder.hh>
^~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
1 error generated.
----------------------------------------
ERROR: Failed building wheel for pikepdf
GjjvdBurg commented
Hi @sypianski, thanks for reporting this. It looks to be an issue with installing the pikepdf dependency. The output you posted suggests that pip is trying to build the wheel for pikepdf, but this shoudn't be necessary as pikepdf distributes the wheels on PyPI (see this page). That link also suggests that it was recently updated, so it may just have been a timing issue. You could try to install pikepdf separately using pip install pikepdf
. If the issue persists, please report it here as it is not a problem with paper2remarkable.