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

pikepdf build fails trying to download pytest from pypi #67850

Closed
ivan opened this issue Aug 31, 2019 · 1 comment · Fixed by #67853
Closed

pikepdf build fails trying to download pytest from pypi #67850

ivan opened this issue Aug 31, 2019 · 1 comment · Fixed by #67853

Comments

@ivan
Copy link
Member

ivan commented Aug 31, 2019

Describe the bug

pikepdf does not build; ocrmypdf is affected. I think this started happening after the staging-next merge.

To Reproduce
Steps to reproduce the behavior:

  1. With nixpkgs master, nix-env -iA python3Packages.pikepdf
  2. Observe:
Current branch master is up to date.
at@ra:/home/at/code/system/nixpkgs:master# nix-env --builders '' -iA python3Packages.pikepdf
installing 'python3.7-pikepdf-1.1.0'
these derivations will be built:
  /nix/store/s97qkfgkv0n1h7s4fflfy8qawpd9v2i3-python3.7-pikepdf-1.1.0.drv
building '/nix/store/s97qkfgkv0n1h7s4fflfy8qawpd9v2i3-python3.7-pikepdf-1.1.0.drv'...
unpacking sources
unpacking source archive /nix/store/jidp5m4avapjfss6wdymicy368144n08-pikepdf-1.1.0.tar.gz
source root is pikepdf-1.1.0
setting SOURCE_DATE_EPOCH to timestamp 1551571794 of file pikepdf-1.1.0/src/pikepdf.egg-info/top_level.txt
patching sources
configuring
building
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.7
creating build/lib.linux-x86_64-3.7/pikepdf
copying src/pikepdf/__init__.py -> build/lib.linux-x86_64-3.7/pikepdf
copying src/pikepdf/_cpphelpers.py -> build/lib.linux-x86_64-3.7/pikepdf
copying src/pikepdf/_methods.py -> build/lib.linux-x86_64-3.7/pikepdf
copying src/pikepdf/_version.py -> build/lib.linux-x86_64-3.7/pikepdf
copying src/pikepdf/objects.py -> build/lib.linux-x86_64-3.7/pikepdf
creating build/lib.linux-x86_64-3.7/pikepdf/models
copying src/pikepdf/models/__init__.py -> build/lib.linux-x86_64-3.7/pikepdf/models
copying src/pikepdf/models/image.py -> build/lib.linux-x86_64-3.7/pikepdf/models
copying src/pikepdf/models/matrix.py -> build/lib.linux-x86_64-3.7/pikepdf/models
copying src/pikepdf/models/metadata.py -> build/lib.linux-x86_64-3.7/pikepdf/models
running build_ext
gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/nix/store/xw06hkwpxyjxil3d5h374imxp3qhkscq-python3-3.7.4/include/python3.7m -c /build/tmpxe93rgq5.cpp -o build/tmpxe93rgq5.o -std=c++14
gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/nix/store/xw06hkwpxyjxil3d5h374imxp3qhkscq-python3-3.7.4/include/python3.7m -c /build/tmpsgygt9ip.cpp -o build/tmpsgygt9ip.o -fvisibility=hidden
building 'pikepdf._qpdf' extension
creating build/temp.linux-x86_64-3.7
creating build/temp.linux-x86_64-3.7/src
creating build/temp.linux-x86_64-3.7/src/qpdf
gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/nix/store/lx2b9fr1rj5578zhv1cxal30kwqabl53-python3.7-pybind11-2.2.4/include/python3.7m -I/nix/store/lx2b9fr1rj5578zhv1cxal30kwqabl53-python3.7-pybind11-2.2.4/include/python3.7m -I/nix/store/xw06hkwpxyjxil3d5h374imxp3qhkscq-python3-3.7.4/include/python3.7m -c src/qpdf/annotation.cpp -o build/temp.linux-x86_64-3.7/src/qpdf/annotation.o -DVERSION_INFO="1.1.0" -std=c++14 -fvisibility=hidden
gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/nix/store/lx2b9fr1rj5578zhv1cxal30kwqabl53-python3.7-pybind11-2.2.4/include/python3.7m -I/nix/store/lx2b9fr1rj5578zhv1cxal30kwqabl53-python3.7-pybind11-2.2.4/include/python3.7m -I/nix/store/xw06hkwpxyjxil3d5h374imxp3qhkscq-python3-3.7.4/include/python3.7m -c src/qpdf/object.cpp -o build/temp.linux-x86_64-3.7/src/qpdf/object.o -DVERSION_INFO="1.1.0" -std=c++14 -fvisibility=hidden
gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/nix/store/lx2b9fr1rj5578zhv1cxal30kwqabl53-python3.7-pybind11-2.2.4/include/python3.7m -I/nix/store/lx2b9fr1rj5578zhv1cxal30kwqabl53-python3.7-pybind11-2.2.4/include/python3.7m -I/nix/store/xw06hkwpxyjxil3d5h374imxp3qhkscq-python3-3.7.4/include/python3.7m -c src/qpdf/object_convert.cpp -o build/temp.linux-x86_64-3.7/src/qpdf/object_convert.o -DVERSION_INFO="1.1.0" -std=c++14 -fvisibility=hidden
gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/nix/store/lx2b9fr1rj5578zhv1cxal30kwqabl53-python3.7-pybind11-2.2.4/include/python3.7m -I/nix/store/lx2b9fr1rj5578zhv1cxal30kwqabl53-python3.7-pybind11-2.2.4/include/python3.7m -I/nix/store/xw06hkwpxyjxil3d5h374imxp3qhkscq-python3-3.7.4/include/python3.7m -c src/qpdf/object_repr.cpp -o build/temp.linux-x86_64-3.7/src/qpdf/object_repr.o -DVERSION_INFO="1.1.0" -std=c++14 -fvisibility=hidden
gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/nix/store/lx2b9fr1rj5578zhv1cxal30kwqabl53-python3.7-pybind11-2.2.4/include/python3.7m -I/nix/store/lx2b9fr1rj5578zhv1cxal30kwqabl53-python3.7-pybind11-2.2.4/include/python3.7m -I/nix/store/xw06hkwpxyjxil3d5h374imxp3qhkscq-python3-3.7.4/include/python3.7m -c src/qpdf/pikepdf.cpp -o build/temp.linux-x86_64-3.7/src/qpdf/pikepdf.o -DVERSION_INFO="1.1.0" -std=c++14 -fvisibility=hidden
gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/nix/store/lx2b9fr1rj5578zhv1cxal30kwqabl53-python3.7-pybind11-2.2.4/include/python3.7m -I/nix/store/lx2b9fr1rj5578zhv1cxal30kwqabl53-python3.7-pybind11-2.2.4/include/python3.7m -I/nix/store/xw06hkwpxyjxil3d5h374imxp3qhkscq-python3-3.7.4/include/python3.7m -c src/qpdf/qpdf.cpp -o build/temp.linux-x86_64-3.7/src/qpdf/qpdf.o -DVERSION_INFO="1.1.0" -std=c++14 -fvisibility=hidden
gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/nix/store/lx2b9fr1rj5578zhv1cxal30kwqabl53-python3.7-pybind11-2.2.4/include/python3.7m -I/nix/store/lx2b9fr1rj5578zhv1cxal30kwqabl53-python3.7-pybind11-2.2.4/include/python3.7m -I/nix/store/xw06hkwpxyjxil3d5h374imxp3qhkscq-python3-3.7.4/include/python3.7m -c src/qpdf/qpdf_pagelist.cpp -o build/temp.linux-x86_64-3.7/src/qpdf/qpdf_pagelist.o -DVERSION_INFO="1.1.0" -std=c++14 -fvisibility=hidden
gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/nix/store/lx2b9fr1rj5578zhv1cxal30kwqabl53-python3.7-pybind11-2.2.4/include/python3.7m -I/nix/store/lx2b9fr1rj5578zhv1cxal30kwqabl53-python3.7-pybind11-2.2.4/include/python3.7m -I/nix/store/xw06hkwpxyjxil3d5h374imxp3qhkscq-python3-3.7.4/include/python3.7m -c src/qpdf/shims.cpp -o build/temp.linux-x86_64-3.7/src/qpdf/shims.o -DVERSION_INFO="1.1.0" -std=c++14 -fvisibility=hidden
gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/nix/store/lx2b9fr1rj5578zhv1cxal30kwqabl53-python3.7-pybind11-2.2.4/include/python3.7m -I/nix/store/lx2b9fr1rj5578zhv1cxal30kwqabl53-python3.7-pybind11-2.2.4/include/python3.7m -I/nix/store/xw06hkwpxyjxil3d5h374imxp3qhkscq-python3-3.7.4/include/python3.7m -c src/qpdf/utils.cpp -o build/temp.linux-x86_64-3.7/src/qpdf/utils.o -DVERSION_INFO="1.1.0" -std=c++14 -fvisibility=hidden
g++ -pthread -shared -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-zlib-1.2.11/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-bzip2-1.0.6.0.1/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-expat-2.2.7/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-xz-5.2.4/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-libffi-3.2.1/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-gdbm-1.18.1/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-sqlite-3.28.0/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-readline-6.3p08/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-ncurses-6.1-20190112/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-openssl-1.1.1c/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-zlib-1.2.11/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-bzip2-1.0.6.0.1/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-expat-2.2.7/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-xz-5.2.4/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-libffi-3.2.1/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-gdbm-1.18.1/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-sqlite-3.28.0/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-readline-6.3p08/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-ncurses-6.1-20190112/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-openssl-1.1.1c/lib build/temp.linux-x86_64-3.7/src/qpdf/annotation.o build/temp.linux-x86_64-3.7/src/qpdf/object.o build/temp.linux-x86_64-3.7/src/qpdf/object_convert.o build/temp.linux-x86_64-3.7/src/qpdf/object_repr.o build/temp.linux-x86_64-3.7/src/qpdf/pikepdf.o build/temp.linux-x86_64-3.7/src/qpdf/qpdf.o build/temp.linux-x86_64-3.7/src/qpdf/qpdf_pagelist.o build/temp.linux-x86_64-3.7/src/qpdf/shims.o build/temp.linux-x86_64-3.7/src/qpdf/utils.o -L/nix/store/xw06hkwpxyjxil3d5h374imxp3qhkscq-python3-3.7.4/lib -lqpdf -lpython3.7m -o build/lib.linux-x86_64-3.7/pikepdf/_qpdf.cpython-37m-x86_64-linux-gnu.so
installing to build/bdist.linux-x86_64/wheel
running install
running install_lib
creating build/bdist.linux-x86_64
creating build/bdist.linux-x86_64/wheel
creating build/bdist.linux-x86_64/wheel/pikepdf
copying build/lib.linux-x86_64-3.7/pikepdf/__init__.py -> build/bdist.linux-x86_64/wheel/pikepdf
copying build/lib.linux-x86_64-3.7/pikepdf/_cpphelpers.py -> build/bdist.linux-x86_64/wheel/pikepdf
copying build/lib.linux-x86_64-3.7/pikepdf/_methods.py -> build/bdist.linux-x86_64/wheel/pikepdf
copying build/lib.linux-x86_64-3.7/pikepdf/_version.py -> build/bdist.linux-x86_64/wheel/pikepdf
copying build/lib.linux-x86_64-3.7/pikepdf/objects.py -> build/bdist.linux-x86_64/wheel/pikepdf
creating build/bdist.linux-x86_64/wheel/pikepdf/models
copying build/lib.linux-x86_64-3.7/pikepdf/models/__init__.py -> build/bdist.linux-x86_64/wheel/pikepdf/models
copying build/lib.linux-x86_64-3.7/pikepdf/models/image.py -> build/bdist.linux-x86_64/wheel/pikepdf/models
copying build/lib.linux-x86_64-3.7/pikepdf/models/matrix.py -> build/bdist.linux-x86_64/wheel/pikepdf/models
copying build/lib.linux-x86_64-3.7/pikepdf/models/metadata.py -> build/bdist.linux-x86_64/wheel/pikepdf/models
copying build/lib.linux-x86_64-3.7/pikepdf/_qpdf.cpython-37m-x86_64-linux-gnu.so -> build/bdist.linux-x86_64/wheel/pikepdf
running install_egg_info
running egg_info
writing src/pikepdf.egg-info/PKG-INFO
writing dependency_links to src/pikepdf.egg-info/dependency_links.txt
writing requirements to src/pikepdf.egg-info/requires.txt
writing top-level names to src/pikepdf.egg-info/top_level.txt
reading manifest file 'src/pikepdf.egg-info/SOURCES.txt'
writing manifest file 'src/pikepdf.egg-info/SOURCES.txt'
Copying src/pikepdf.egg-info to build/bdist.linux-x86_64/wheel/pikepdf-1.1.0-py3.7.egg-info
running install_scripts
creating build/bdist.linux-x86_64/wheel/pikepdf-1.1.0.dist-info/WHEEL
creating 'dist/pikepdf-1.1.0-cp37-cp37m-linux_x86_64.whl' and adding 'build/bdist.linux-x86_64/wheel' to it
adding 'pikepdf/__init__.py'
adding 'pikepdf/_cpphelpers.py'
adding 'pikepdf/_methods.py'
adding 'pikepdf/_qpdf.cpython-37m-x86_64-linux-gnu.so'
adding 'pikepdf/_version.py'
adding 'pikepdf/objects.py'
adding 'pikepdf/models/__init__.py'
adding 'pikepdf/models/image.py'
adding 'pikepdf/models/matrix.py'
adding 'pikepdf/models/metadata.py'
adding 'pikepdf-1.1.0.dist-info/METADATA'
adding 'pikepdf-1.1.0.dist-info/WHEEL'
adding 'pikepdf-1.1.0.dist-info/license.wheel.txt'
adding 'pikepdf-1.1.0.dist-info/top_level.txt'
adding 'pikepdf-1.1.0.dist-info/RECORD'
removing build/bdist.linux-x86_64/wheel
installing
~/pikepdf-1.1.0/dist ~/pikepdf-1.1.0
Processing ./pikepdf-1.1.0-cp37-cp37m-linux_x86_64.whl
Requirement already satisfied: lxml>=4.0 in /nix/store/6j7na6r51b7iam6l8j5lsfx3c9kp89c5-python3.7-lxml-4.3.3/lib/python3.7/site-packages (from pikepdf==1.1.0) (4.3.3)
Requirement already satisfied: defusedxml>=0.5.0 in /nix/store/s1kaa0vdbr1rvsyy0jjhs0y03w61an12-python3.7-defusedxml-0.5.0/lib/python3.7/site-packages (from pikepdf==1.1.0) (0.5.0)
Installing collected packages: pikepdf
Successfully installed pikepdf-1.1.0
~/pikepdf-1.1.0
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/gnxdrjy06xaj4bnz7swl2hw180rcfk0m-python3.7-pikepdf-1.1.0
shrinking /nix/store/gnxdrjy06xaj4bnz7swl2hw180rcfk0m-python3.7-pikepdf-1.1.0/lib/python3.7/site-packages/pikepdf/_qpdf.cpython-37m-x86_64-linux-gnu.so
strip is /nix/store/z13djm1k89vc8myzd5qayk8hddk4glk4-binutils-2.31.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/gnxdrjy06xaj4bnz7swl2hw180rcfk0m-python3.7-pikepdf-1.1.0/lib
patching script interpreter paths in /nix/store/gnxdrjy06xaj4bnz7swl2hw180rcfk0m-python3.7-pikepdf-1.1.0
checking for references to /build/ in /nix/store/gnxdrjy06xaj4bnz7swl2hw180rcfk0m-python3.7-pikepdf-1.1.0...
running install tests
running pytest
Searching for pytest<5,>=4.2.1
Reading https://pypi.org/simple/pytest/
Download error on https://pypi.org/simple/pytest/: [Errno -2] Name or service not known -- Some packages may not be found!
Couldn't retrieve index page for 'pytest'
Scanning index of all packages (this may take a while)
Reading https://pypi.org/simple/
Download error on https://pypi.org/simple/: [Errno -2] Name or service not known -- Some packages may not be found!
No local packages or working download links found for pytest<5,>=4.2.1
error: Could not find suitable distribution for Requirement.parse('pytest<5,>=4.2.1')
builder for '/nix/store/s97qkfgkv0n1h7s4fflfy8qawpd9v2i3-python3.7-pikepdf-1.1.0.drv' failed with exit code 1
error: build of '/nix/store/s97qkfgkv0n1h7s4fflfy8qawpd9v2i3-python3.7-pikepdf-1.1.0.drv' failed

Metadata

  • system: "x86_64-linux"
  • host os: Linux 4.19.69-hardened, NixOS, 19.09.git.91f6b94 (Loris)
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.2.2

Maintainer information:

# a list of nixpkgs attributes affected by the problem
attribute:
# a list of nixos modules affected by the problem
module:

cc @Kiwi @FRidh

@ivan
Copy link
Member Author

ivan commented Aug 31, 2019

I'm working on bumping a lot of things to see if this can be made to work with pytest 5

ivan added a commit to ivan/nixpkgs that referenced this issue Aug 31, 2019
pikepdf's tests work with the nixpkgs versions of pytest, attrs, and
hypothesis. I skipped bumping these to avoid mass rebuilds.

This fixes NixOS#67850.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant