Closed 573 closed 3 weeks ago
Same when nix-build --keep-going --show-trace tests/default.nix
with that repo cloned:
error: cannot download source from any mirror error: builder for '/nix/store/fs4bzf4rsbda0bvs5lpjf0rxlzf9q3x1-source.drv' failed with exit code 1; last 14 log lines: error checking the existence of https://tarballs.nixos.org/sha256/sha256-+Ey384Nz6hvDZAA5OYO0EAGkGjY9Kz4134CRIMjEeyg=: curl: (6) Could not resolve host: tarballs.nixos.org
trying https://github.com/nix-community/pynixutil/archive/d27d778dc9109227b927ab88fedb2e3c2d6a7265.tar.gz % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (6) Could not resolve host: github.com Warning: Problem : timeout. Will retry in 1 seconds. 3 retries left. 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (6) Could not resolve host: github.com Warning: Problem : timeout. Will retry in 2 seconds. 2 retries left. 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (6) Could not resolve host: github.com Warning: Problem : timeout. Will retry in 4 seconds. 1 retries left. 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (6) Could not resolve host: github.com error: cannot download source from any mirror For full logs, run 'nix log /nix/store/fs4bzf4rsbda0bvs5lpjf0rxlzf9q3x1-source.drv'. error: … from call site at /home/nixos/poetry2nix/tests/default.nix:228:24: 227| pytest-randomly = callTest ./pytest-randomly { }; 228| fetched-projectdir = callTest ./fetched-projectdir { }; | ^ 229| } // lib.optionalAttrs (stdenv.isLinux && stdenv.isx86_64) {
Interestingly the version of fetchPypi
in master seems to have no difficulty fetching this:
[nixos@DANIELKNB1:~/.nix-config]$ nix repl
Welcome to Nix 2.20.8. Type :? for help.
nix-repl> :lf .#
warning: Git tree '/home/nixos/.nix-config' is dirty
Added 21 variables.
nix-repl> inputs.latest.legacyPackages.x86_64-linux.fetchPypi { pname = "cffi"; version = "1.17.1"; hash = "sha256:1c39c6016c32bc48dd54561950ebd6836e1670f2ae46128f67cf49e789c52824"; }
«derivation /nix/store/f8llinv6d0pa375gkd85cv7yh9izvnh5-cffi-1.17.1.tar.gz.drv»
[nixos@DANIELKNB1:~/.nix-config]$ nix-store -r /nix/store/f8llinv6d0pa375gkd85cv7yh9izvnh5-cffi-1.17.1.tar.gz.drv
warning: you did not specify '--add-root'; the result might be removed by the garbage collector
/nix/store/2n28r9ajmfysxnk1snfn5ax2qxp6c97p-cffi-1.17.1.tar.gz
[nixos@DANIELKNB1:~/.nix-config]$ tar tvzf /nix/store/2n28r9ajmfysxnk1snfn5ax2qxp6c97p-cffi-1.17.1.tar.gz | wc -l
229
Changing the DNS server on the builder brought a different error message (the new error) - 404 response by pythonhosted and connection reset by pypi.org. Closing this.
Describe the issue
When
nix develop
the flake listed below I end up getting variations ofCould not resolve host: files.pythonhosted.org
:Additional context
nix shell nixpkgs#poetry --command poetry lock
andgit add --all .
did not mitigate the issue.flake.nix
:pyproject.toml
:poetry.lock
: