-
Notifications
You must be signed in to change notification settings - Fork 107
Infinite recursion encountered when building a python package #470
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
Comments
I got something similar with My error is:
I guess mach-nix isn't case-sensitive here? |
@gador I'm seeing that issue too, and while the error does look the same, I think the cause might be different. I think the root of the problem you and I are seeing is that "babel" = override python-super."Babel" ( ... ) which means that I'm no expert when it comes to nix though, and mach-nix is super clever, but pretty complicated so I could definitely be wrong. If someone who knows better can confirm, then I'll create a different issue for the problem @gador and me are seeing. (My full trace output is in this gist) (@gador I did poke around trying to work around the problem but didn't have much luck. That being said, if you are able to pin to a version of nixpkgs before 2022-05-06 you can probably avoid the issue if that helps. Unfortunately for me I need to be on a newer nixpkgs for other reasons 😔 ) |
I happened to come across this again today. Setting this for the overridesPre = [
(self: super: {
_babel = super.babel;
})
]; and overridesPost = [
(self: super: {
babel = self._babel;
Babel = self._babel;
})
];
``
helped as a workaround |
Worth pointing out this bug can also look more like this;
from nix-community/poetry2nix#750 (thanks lelit for linking to that issue!) |
Works around nix-community/poetry2nix#750 > infinite recursion encountered The issue, as pointed out in DavHau/mach-nix#470 (comment), is that nixpkgs defines ``` Keras = keras; ``` https://github.com/NixOS/nixpkgs/blob/fbb042bc87bc92fc5296b8b151e36970dd996c64/pkgs/top-level/python-aliases.nix poetry2nix must (somewhere) set `keras` to depend on `Keras` meaning infinite recursion. The fix is based on the code in nix-community/poetry2nix#750 (comment)
Works around nix-community/poetry2nix#750 > infinite recursion encountered The issue, as pointed out in DavHau/mach-nix#470 (comment), is that nixpkgs defines ``` Keras = keras; ``` https://github.com/NixOS/nixpkgs/blob/fbb042bc87bc92fc5296b8b151e36970dd996c64/pkgs/top-level/python-aliases.nix poetry2nix must (somewhere) set `keras` to depend on `Keras` meaning infinite recursion. The fix is based on the code in nix-community/poetry2nix#750 (comment)
Here's a part of the trace from
nix-build
:Encountered when building this thing
Started happening after I switched from
mach-nix
3.4.0 to 3.5.0 and updated the source I was building.The text was updated successfully, but these errors were encountered: