nix-community / trustix

Trustix: Distributed trust and reproducibility tracking for binary caches [maintainer=@adisbladis]
https://nix-community.github.io/trustix/
290 stars 20 forks source link

trustix-nix-reprod: No version that satisfies the requirement diffoscope<172,>=171 #42

Closed davidak closed 2 years ago

davidak commented 2 years ago

Describe the bug

[davidak@gaming:~/code/trustix]$ nix-build ./. -A packages.trustix-nix-reprod
this derivation will be built:
  /nix/store/scanjik9qs1r40l5gs9wpravj77szwv7-python3.8-trustix-nix-reprod-0.1.0.drv
these 50 paths will be fetched (15.63 MiB download, 70.96 MiB unpacked):
  /nix/store/01y2yl6gw2lsxx3yah2kssxcs9fwzki4-squashfs-4.4
  /nix/store/07zqfpr47mg8rynxh19yi2zhcyfn9w45-imlib2-1.7.1
  /nix/store/271pdmg1vh31fns381m8jvw7k1cpy8dx-python3.8-libarchive-c-2.9
  /nix/store/2mmqlgqqzmahqwxjrndksn7p4ly9xdxw-python3.8-defusedxml-0.7.0
  /nix/store/49xip1fqvxsqs4jljf7crl5scz1nbd1c-python3.8-chardet-3.0.4
  /nix/store/4cddvmfw30d43afx81xnk4s0ffc363zs-python3.8-requests-toolbelt-0.9.1
  /nix/store/4l0m5abhbaky2fbajirdkdfshhpslw37-python3.8-argcomplete-1.12.2
  /nix/store/5hz6ggb9nnly1zglp29yj5510nm3vj76-python3.8-editorconfig-0.12.2
  /nix/store/60n64ml3fl88kidsn23izk09yz96cm5g-libpng-1.2.59
  /nix/store/70nblr4d6rbcxz59lq04zkbf187bk49g-python3.8-python-magic-0.4.22
  /nix/store/7c3s3lraq18055nrj7r0jajzn2v2xj19-python3.8-dicttoxml-1.7.4
  /nix/store/7gafa9azsajafb39jag9w9ppz0h6s40g-acl-2.2.53-bin
  /nix/store/7s09cnjlmi9nzvs2xsf0i213pb8b3czb-lzo-2.10
  /nix/store/83kgzg9jrrx1b6q4kzmf6iczirgwy0d3-python3.8-jsondiff-1.2.0
  /nix/store/8pxgjk70b5hv6gq82zs20qbbb9qbdmcl-sng-1.1.0
  /nix/store/8xhm968gk4vr4dwq1dg3gxigkc4gjmnw-e2fsprogs-1.45.6-bin
  /nix/store/95vyfn0yc7f9h4k0rczgq6rn28qd4c7m-diffoscope-166
  /nix/store/97ky3m2fsda0sjp6aswxgw64gp0wf0nm-python3.8-pyxattr-0.7.2
  /nix/store/9dpvvsqhsz8mcic2w57w8xc8j6xpib0b-pgpdump-0.33
  /nix/store/9izlcbb6mnwm4nbxn7hpv7ap5q2md4a4-woff2-1.0.2-lib
  /nix/store/9ydwcnshdrqnw200i19gz8iqy3hcpcrj-python3.8-more-itertools-8.6.0
  /nix/store/ap9ydmw7kqryh079f6hh4yx3bjb16y3p-zip-3.0
  /nix/store/bkgh1d8mx9msc5p54v08qx6m3d9mc7jw-jsbeautifier-1.13.5
  /nix/store/bl8dkmvjkvwmiclcbfqyx38ic9kbwfzp-libcaca-0.99.beta19
  /nix/store/bnyz816gwamgflzz3pymn5yyhm54cy76-dtc-1.6.0
  /nix/store/dviqx9x1hyagmphvx468k9ify9w16v29-python3.8-zipp-3.4.0
  /nix/store/f30mrvjcb84pzxw2lkmkcgi7v8qwmgwp-python3.8-tlsh-4.5.0
  /nix/store/g0casx8sxb8ldh1947nxzqpx856xnnqi-libarchive-3.5.1
  /nix/store/gzi1i4dnpfvvvbqjccvx85ih5w836ynw-python3.8-wcwidth-0.2.5
  /nix/store/h1zkkd9hi3rqrnkksqy93gy8k69xhln0-python3.8-PyPDF2-1.26.0
  /nix/store/k4xdivwv9jmmp0zk2h1hzd3m9bgj97q6-netpbm-10.92.0
  /nix/store/kkgdii4a197v8bvpi6sbnf9zmyv5457w-libid3tag-0.15.1b
  /nix/store/pyjb0qk4s6g7xygphn9mvqwcraxzrvl1-python3.8-ptyprocess-0.6.0
  /nix/store/rffbd45zb07nbv2x6dc47n4yvqkpgw35-libungif-4.1.4
  /nix/store/rh8lvf0jklz59b8sjbm01slv54rf6syy-python3.8-progressbar33-2.4
  /nix/store/rz7saw2wyclxz3inn3paljhns3vviwy6-colordiff-1.0.19
  /nix/store/sg8c2w86gd0a8g4qprl398qfgb5dn5yi-xxd-1003.1-2008
  /nix/store/vhxcssfr7b866ippb3l1d0cap8xfydrq-vim-8.2.1522
  /nix/store/w7rjgzgcr7ncifr7n3w742a5zip00n2m-fontforge-20201107
  /nix/store/wdxn89sgq02ayqfj8cwxxixvdgcfdz3n-python3.8-python-debian-0.1.39
  /nix/store/x3bz3fpg96qa4a1fjc9wjwadmqb4d6gp-python3.8-requests-2.25.1
  /nix/store/xc8nbxr692drvbxgarjlp4az80x8x8sc-python3.8-pexpect-4.8.0
  /nix/store/xrx963rmp92g41k6iidrsp1idi7bxsmn-e2fsprogs-1.45.6
  /nix/store/xz4riy7vck8g8yh4083xsc0jdij27rff-lz4-1.9.3-bin
  /nix/store/y97dvplpwy4k214ndyya9xzrqhsf9rwx-python3.8-importlib-metadata-1.7.0
  /nix/store/yf3wjxc895q03q8ckrkzslqjj2g8sgb9-python3.8-prettytable-2.0.0
  /nix/store/yqzqn3h84h3nybwvaj6siw1clw1vpv6l-nix-2.3.10-dev
  /nix/store/yrl946k33gqc91vvrqc4ffkykjd8c92j-libuninameslist-20200413
  /nix/store/z4yr5l36zaikgh8svgdi13kybpy2a5by-libcaca-0.99.beta19-bin
  /nix/store/z8dfc8mhkzk6vpzymlhwd2pp4q2ffikz-db-5.3.28-bin
copying path '/nix/store/yqzqn3h84h3nybwvaj6siw1clw1vpv6l-nix-2.3.10-dev' from 'https://cache.nixos.org'...
copying path '/nix/store/7gafa9azsajafb39jag9w9ppz0h6s40g-acl-2.2.53-bin' from 'https://cache.nixos.org'...
copying path '/nix/store/rz7saw2wyclxz3inn3paljhns3vviwy6-colordiff-1.0.19' from 'https://cache.nixos.org'...
copying path '/nix/store/z8dfc8mhkzk6vpzymlhwd2pp4q2ffikz-db-5.3.28-bin' from 'https://cache.nixos.org'...
copying path '/nix/store/bnyz816gwamgflzz3pymn5yyhm54cy76-dtc-1.6.0' from 'https://cache.nixos.org'...
copying path '/nix/store/xrx963rmp92g41k6iidrsp1idi7bxsmn-e2fsprogs-1.45.6' from 'https://cache.nixos.org'...
copying path '/nix/store/g0casx8sxb8ldh1947nxzqpx856xnnqi-libarchive-3.5.1' from 'https://cache.nixos.org'...
copying path '/nix/store/xz4riy7vck8g8yh4083xsc0jdij27rff-lz4-1.9.3-bin' from 'https://cache.nixos.org'...
copying path '/nix/store/9dpvvsqhsz8mcic2w57w8xc8j6xpib0b-pgpdump-0.33' from 'https://cache.nixos.org'...
copying path '/nix/store/h1zkkd9hi3rqrnkksqy93gy8k69xhln0-python3.8-PyPDF2-1.26.0' from 'https://cache.nixos.org'...
copying path '/nix/store/49xip1fqvxsqs4jljf7crl5scz1nbd1c-python3.8-chardet-3.0.4' from 'https://cache.nixos.org'...
copying path '/nix/store/2mmqlgqqzmahqwxjrndksn7p4ly9xdxw-python3.8-defusedxml-0.7.0' from 'https://cache.nixos.org'...
copying path '/nix/store/7c3s3lraq18055nrj7r0jajzn2v2xj19-python3.8-dicttoxml-1.7.4' from 'https://cache.nixos.org'...
copying path '/nix/store/5hz6ggb9nnly1zglp29yj5510nm3vj76-python3.8-editorconfig-0.12.2' from 'https://cache.nixos.org'...
copying path '/nix/store/83kgzg9jrrx1b6q4kzmf6iczirgwy0d3-python3.8-jsondiff-1.2.0' from 'https://cache.nixos.org'...
copying path '/nix/store/271pdmg1vh31fns381m8jvw7k1cpy8dx-python3.8-libarchive-c-2.9' from 'https://cache.nixos.org'...
copying path '/nix/store/bl8dkmvjkvwmiclcbfqyx38ic9kbwfzp-libcaca-0.99.beta19' from 'https://cache.nixos.org'...
copying path '/nix/store/kkgdii4a197v8bvpi6sbnf9zmyv5457w-libid3tag-0.15.1b' from 'https://cache.nixos.org'...
copying path '/nix/store/60n64ml3fl88kidsn23izk09yz96cm5g-libpng-1.2.59' from 'https://cache.nixos.org'...
copying path '/nix/store/rffbd45zb07nbv2x6dc47n4yvqkpgw35-libungif-4.1.4' from 'https://cache.nixos.org'...
copying path '/nix/store/yrl946k33gqc91vvrqc4ffkykjd8c92j-libuninameslist-20200413' from 'https://cache.nixos.org'...
copying path '/nix/store/7s09cnjlmi9nzvs2xsf0i213pb8b3czb-lzo-2.10' from 'https://cache.nixos.org'...
copying path '/nix/store/k4xdivwv9jmmp0zk2h1hzd3m9bgj97q6-netpbm-10.92.0' from 'https://cache.nixos.org'...
copying path '/nix/store/bkgh1d8mx9msc5p54v08qx6m3d9mc7jw-jsbeautifier-1.13.5' from 'https://cache.nixos.org'...
copying path '/nix/store/9ydwcnshdrqnw200i19gz8iqy3hcpcrj-python3.8-more-itertools-8.6.0' from 'https://cache.nixos.org'...
copying path '/nix/store/rh8lvf0jklz59b8sjbm01slv54rf6syy-python3.8-progressbar33-2.4' from 'https://cache.nixos.org'...
copying path '/nix/store/pyjb0qk4s6g7xygphn9mvqwcraxzrvl1-python3.8-ptyprocess-0.6.0' from 'https://cache.nixos.org'...
copying path '/nix/store/wdxn89sgq02ayqfj8cwxxixvdgcfdz3n-python3.8-python-debian-0.1.39' from 'https://cache.nixos.org'...
copying path '/nix/store/70nblr4d6rbcxz59lq04zkbf187bk49g-python3.8-python-magic-0.4.22' from 'https://cache.nixos.org'...
copying path '/nix/store/97ky3m2fsda0sjp6aswxgw64gp0wf0nm-python3.8-pyxattr-0.7.2' from 'https://cache.nixos.org'...
copying path '/nix/store/x3bz3fpg96qa4a1fjc9wjwadmqb4d6gp-python3.8-requests-2.25.1' from 'https://cache.nixos.org'...
copying path '/nix/store/f30mrvjcb84pzxw2lkmkcgi7v8qwmgwp-python3.8-tlsh-4.5.0' from 'https://cache.nixos.org'...
copying path '/nix/store/gzi1i4dnpfvvvbqjccvx85ih5w836ynw-python3.8-wcwidth-0.2.5' from 'https://cache.nixos.org'...
copying path '/nix/store/07zqfpr47mg8rynxh19yi2zhcyfn9w45-imlib2-1.7.1' from 'https://cache.nixos.org'...
copying path '/nix/store/4cddvmfw30d43afx81xnk4s0ffc363zs-python3.8-requests-toolbelt-0.9.1' from 'https://cache.nixos.org'...
copying path '/nix/store/dviqx9x1hyagmphvx468k9ify9w16v29-python3.8-zipp-3.4.0' from 'https://cache.nixos.org'...
copying path '/nix/store/vhxcssfr7b866ippb3l1d0cap8xfydrq-vim-8.2.1522' from 'https://cache.nixos.org'...
copying path '/nix/store/9izlcbb6mnwm4nbxn7hpv7ap5q2md4a4-woff2-1.0.2-lib' from 'https://cache.nixos.org'...
copying path '/nix/store/01y2yl6gw2lsxx3yah2kssxcs9fwzki4-squashfs-4.4' from 'https://cache.nixos.org'...
copying path '/nix/store/ap9ydmw7kqryh079f6hh4yx3bjb16y3p-zip-3.0' from 'https://cache.nixos.org'...
copying path '/nix/store/xc8nbxr692drvbxgarjlp4az80x8x8sc-python3.8-pexpect-4.8.0' from 'https://cache.nixos.org'...
copying path '/nix/store/8pxgjk70b5hv6gq82zs20qbbb9qbdmcl-sng-1.1.0' from 'https://cache.nixos.org'...
copying path '/nix/store/y97dvplpwy4k214ndyya9xzrqhsf9rwx-python3.8-importlib-metadata-1.7.0' from 'https://cache.nixos.org'...
copying path '/nix/store/yf3wjxc895q03q8ckrkzslqjj2g8sgb9-python3.8-prettytable-2.0.0' from 'https://cache.nixos.org'...
copying path '/nix/store/8xhm968gk4vr4dwq1dg3gxigkc4gjmnw-e2fsprogs-1.45.6-bin' from 'https://cache.nixos.org'...
copying path '/nix/store/z4yr5l36zaikgh8svgdi13kybpy2a5by-libcaca-0.99.beta19-bin' from 'https://cache.nixos.org'...
copying path '/nix/store/4l0m5abhbaky2fbajirdkdfshhpslw37-python3.8-argcomplete-1.12.2' from 'https://cache.nixos.org'...
copying path '/nix/store/w7rjgzgcr7ncifr7n3w742a5zip00n2m-fontforge-20201107' from 'https://cache.nixos.org'...
copying path '/nix/store/sg8c2w86gd0a8g4qprl398qfgb5dn5yi-xxd-1003.1-2008' from 'https://cache.nixos.org'...
copying path '/nix/store/95vyfn0yc7f9h4k0rczgq6rn28qd4c7m-diffoscope-166' from 'https://cache.nixos.org'...
building '/nix/store/scanjik9qs1r40l5gs9wpravj77szwv7-python3.8-trustix-nix-reprod-0.1.0.drv'...
Sourcing python-remove-tests-dir-hook
Sourcing python-catch-conflicts-hook.sh
Sourcing python-remove-bin-bytecode-hook.sh
Sourcing pip-build-hook
Using pipBuildPhase
Using pipShellHook
Sourcing pip-install-hook
Using pipInstallPhase
Sourcing python-imports-check-hook.sh
Using pythonImportsCheckPhase
Sourcing python-namespaces-hook
unpacking sources
unpacking source archive /nix/store/lry24jsz28rawy90as1j471mn10xvhyp-source
source root is source
setting SOURCE_DATE_EPOCH to timestamp 315619200 of file source/trustix_nix_reprod/templates/search.jinja2
patching sources
configuring
no configure script, doing nothing
building
Executing pipBuildPhase
Creating a wheel...
WARNING: The directory '/homeless-shelter/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Processing /build/source
    Preparing wheel metadata ... done
Building wheels for collected packages: trustix-nix-reprod
  Building wheel for trustix-nix-reprod (PEP 517) ... done
  Created wheel for trustix-nix-reprod: filename=trustix_nix_reprod-0.1.0-py3-none-any.whl size=71325 sha256=39a3691a2f8678ac9c37a017fb312545398ad77bc731150b02334bf9a6186a79
  Stored in directory: /build/pip-ephem-wheel-cache-rumekrmr/wheels/e1/fb/ff/3c7bf8327fe7b38e0848fbd084e404c8a61b776977c550714b
Successfully built trustix-nix-reprod
Finished creating a wheel...
Finished executing pipBuildPhase
installing
Executing pipInstallPhase
/build/source/dist /build/source
Processing ./trustix_nix_reprod-0.1.0-py3-none-any.whl
Requirement already satisfied: uvicorn[standard]<0.14.0,>=0.13.4 in /nix/store/yqilzd4hn2vs8s4i56k6p13jmpd6r6yi-python3.8-uvicorn-0.13.4/lib/python3.8/site-packages (from trustix-nix-reprod==0.1.0) (0.13.4)
Requirement already satisfied: aiohttp[speedups]<4.0.0,>=3.7.4 in /nix/store/7nmaaiklmz14fh4yxgilxdp7xfqd693j-python3.8-aiohttp-3.7.4.post0/lib/python3.8/site-packages (from trustix-nix-reprod==0.1.0) (3.7.4.post0)
Requirement already satisfied: trustix-python in /nix/store/5vsl4w7rimf12i1dvf1a6547nxzzwajj-python3.8-trustix-python-0.1.0/lib/python3.8/site-packages (from trustix-nix-reprod==0.1.0) (0.1.0)
Requirement already satisfied: aiofiles<0.7.0,>=0.6.0 in /nix/store/yprd4cjj4gq3y5h2ck26a6w1g5z6ryf2-python3.8-aiofiles-0.6.0/lib/python3.8/site-packages (from trustix-nix-reprod==0.1.0) (0.6.0)
Requirement already satisfied: requests<3.0.0,>=2.25.1 in /nix/store/azmvgbdprg3blf9ngba1j3147aissl2c-python3.8-requests-2.25.1/lib/python3.8/site-packages (from trustix-nix-reprod==0.1.0) (2.25.1)
Requirement already satisfied: ijson<4.0.0,>=3.1.3 in /nix/store/bvcs4rr6i90fcf8c0d2qiwb4igw08pmh-python3.8-ijson-3.1.4/lib/python3.8/site-packages (from trustix-nix-reprod==0.1.0) (3.1.4)
Requirement already satisfied: aioredis<2.0.0,>=1.3.1 in /nix/store/i67zm0rx7ihjpsl02fa7v19qrc0ssrix-python3.8-aioredis-1.3.1/lib/python3.8/site-packages (from trustix-nix-reprod==0.1.0) (1.3.1)
Requirement already satisfied: fastapi[standard]<0.64.0,>=0.63.0 in /nix/store/2sgqk6rr60b5ahmvbzybkm41c2b20394-python3.8-fastapi-0.63.0/lib/python3.8/site-packages (from trustix-nix-reprod==0.1.0) (0.63.0)
  WARNING: fastapi 0.63.0 does not provide the extra 'standard'
Requirement already satisfied: orjson<4.0.0,>=3.5.1 in /nix/store/46fr3mx3gwz8jiwa8b9c6mc2jbmrcba6-python3.8-orjson-3.5.1/lib/python3.8/site-packages (from trustix-nix-reprod==0.1.0) (3.5.1)
ERROR: Could not find a version that satisfies the requirement diffoscope<172,>=171 (from trustix-nix-reprod==0.1.0) (from versions: none)
ERROR: No matching distribution found for diffoscope<172,>=171 (from trustix-nix-reprod==0.1.0)
error: builder for '/nix/store/scanjik9qs1r40l5gs9wpravj77szwv7-python3.8-trustix-nix-reprod-0.1.0.drv' failed with exit code 1;
       last 10 log lines:
       > Requirement already satisfied: trustix-python in /nix/store/5vsl4w7rimf12i1dvf1a6547nxzzwajj-python3.8-trustix-python-0.1.0/lib/python3.8/site-packages (from trustix-nix-reprod==0.1.0) (0.1.0)
       > Requirement already satisfied: aiofiles<0.7.0,>=0.6.0 in /nix/store/yprd4cjj4gq3y5h2ck26a6w1g5z6ryf2-python3.8-aiofiles-0.6.0/lib/python3.8/site-packages (from trustix-nix-reprod==0.1.0) (0.6.0)
       > Requirement already satisfied: requests<3.0.0,>=2.25.1 in /nix/store/azmvgbdprg3blf9ngba1j3147aissl2c-python3.8-requests-2.25.1/lib/python3.8/site-packages (from trustix-nix-reprod==0.1.0) (2.25.1)
       > Requirement already satisfied: ijson<4.0.0,>=3.1.3 in /nix/store/bvcs4rr6i90fcf8c0d2qiwb4igw08pmh-python3.8-ijson-3.1.4/lib/python3.8/site-packages (from trustix-nix-reprod==0.1.0) (3.1.4)
       > Requirement already satisfied: aioredis<2.0.0,>=1.3.1 in /nix/store/i67zm0rx7ihjpsl02fa7v19qrc0ssrix-python3.8-aioredis-1.3.1/lib/python3.8/site-packages (from trustix-nix-reprod==0.1.0) (1.3.1)
       > Requirement already satisfied: fastapi[standard]<0.64.0,>=0.63.0 in /nix/store/2sgqk6rr60b5ahmvbzybkm41c2b20394-python3.8-fastapi-0.63.0/lib/python3.8/site-packages (from trustix-nix-reprod==0.1.0) (0.63.0)
       >   WARNING: fastapi 0.63.0 does not provide the extra 'standard'
       > Requirement already satisfied: orjson<4.0.0,>=3.5.1 in /nix/store/46fr3mx3gwz8jiwa8b9c6mc2jbmrcba6-python3.8-orjson-3.5.1/lib/python3.8/site-packages (from trustix-nix-reprod==0.1.0) (3.5.1)
       > ERROR: Could not find a version that satisfies the requirement diffoscope<172,>=171 (from trustix-nix-reprod==0.1.0) (from versions: none)
       > ERROR: No matching distribution found for diffoscope<172,>=171 (from trustix-nix-reprod==0.1.0)
       For full logs, run 'nix log /nix/store/scanjik9qs1r40l5gs9wpravj77szwv7-python3.8-trustix-nix-reprod-0.1.0.drv'.

To Reproduce

[davidak@gaming:~/code/trustix]$ nix-build ./. -A packages.trustix-nix-reprod

Expected behavior No errors

Environment OS name + version: NixOS 22.05pre375061.c777cdf5c56 Version of the code: https://github.com/tweag/trustix/commit/7ed5270f76588a6b635c232681b3af6d9f09c1fa

Additional context Add any other context about the problem here.

davidak commented 2 years ago

Maybe that command style only works for trustix and the other packages have to be build differently.

From Makefile:

https://github.com/tweag/trustix/blob/4d84eb1241ad3d3c9be4ace299dc8fbe21378e13/Makefile#L5

This works:

[davidak@gaming:~/code/trustix/packages/trustix-nix-reprod]$ nix-shell --run 'make build'

I can run this and the app starts with redis and postgres and everything:

[davidak@gaming:~/code/trustix/packages/trustix-nix-reprod]$ nix-shell --run 'make develop'

Screenshot from 2022-05-09 01-18-04