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

Infinite recursion #708

Closed
Smaug123 opened this issue Sep 7, 2022 · 2 comments
Closed

Infinite recursion #708

Smaug123 opened this issue Sep 7, 2022 · 2 comments

Comments

@Smaug123
Copy link
Contributor

Smaug123 commented Sep 7, 2022

I was trying to get towards a packaging of stable-diffusion via Poetry, but for this repro I've stripped out everything except the flake and Poetry files.

Describe the issue

I expected to get a successful Nix build, but instead got:

error: infinite recursion encountered

       at /nix/store/kwrkp98r7aypb4z6jfl78fc5w5pqzqgl-source/pkgs/stdenv/generic/make-derivation.nix:314:7:

          313|       depsHostHost                = lib.elemAt (lib.elemAt dependencies 1) 0;
          314|       buildInputs                 = lib.elemAt (lib.elemAt dependencies 1) 1;
             |       ^
          315|       depsTargetTarget            = lib.elemAt (lib.elemAt dependencies 2) 0;

Additional context

It seems likely that this is another problem along the lines of #674, but I've run out of willpower to keep going on this myself (Python is simply too cursed for mortal minds, and I spent all my effort on getting a working lockfile), so I'm just throwing this onto the poetry2nix issues queue.

Repro: Smaug123/poetry-to-nix-repro@040003c
Just clone and nix develop, possibly changing the string aarch64-darwin to your target system throughout.

If you think it would help, I can attach the --show-trace.

@Smaug123
Copy link
Contributor Author

By the way, this continues to reproduce on the latest poetry2nix after the 1.2.0 bump (869580c).

@Smaug123
Copy link
Contributor Author

I think this is a duplicate of #648, actually. Deleting setuptools-scm and setuptools from my Poetry files got through to the point where poetry2nix was unable to find torch from the non-pypi repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant