Poetry2nix | 306 Members | |
| https://github.com/nix-community/poetry2nix | 56 Servers |
| Sender | Message | Time |
|---|---|---|
| 21 Mar 2024 | ||
| It probably does something completely different, but as a developer this whole syntax is incredibly confusing. | 03:12:29 | |
| that is different | 03:12:47 | |
| Nothing should need to take two references to something else. | 03:12:55 | |
| that's a different instance of the same nixpkgs | 03:13:01 | |
| That's bad DX | 03:13:15 | |
the difference being that overlays you apply to your own pkgs would not be observable by poetry2nix (or any other flake input) | 03:13:28 | |
| i don't care, i'm just telling you how it is | 03:13:33 | |
| Thanks for the info | 03:14:26 | |
In reply to @latenighticecream:matrix.orgAs l0b0 pointed out, the python packages do not need manual packaging - poetry2nix takes care of that. The only parts you need to manually provide are non-python dependencies, such as the library files which fail to resolve for you. | 09:37:01 | |
In reply to@angryant:envs.netThese library files come from the drjit python package though which does get installed properly. So I am wondering then why it cannot find them. Do I need to add the explicit directory/.so files somehow to an env variable like LD_LIBRARY_PATH? | 14:31:48 | |
Ah yes with that package already bringing in the binaries, you should have a look where those binaries end up in the store and add the path to the containing folder to LD_LIBRARY_PATH in your patch for the python package which fails to load them. mitsuba I believe? | 15:01:53 | |
In reply to@angryant:envs.netok! Is there a way to specify the ld_library_path env variable inside the override (similar to how buildInputs is specified)? | 15:42:25 | |
| You should be able to set it quite literally. Though it's been a while since I've done so for a package derivation an not just a shell. | 15:44:48 | |
| Alright, I will try it out later! | 15:51:02 | |
| 18:03:28 | ||
I did it (i think)! Setting the LD_LIBRARY_PATH did nothing. But what fixed it for me was to use nativeBuildInputs instead of buildInputs inside the override.. onto the next error :) | 18:37:02 | |
| 20:10:04 | ||
| 22 Mar 2024 | ||
| 00:45:14 | ||
| 23 Mar 2024 | ||
| 15:57:09 | ||
| hi | 16:12:19 | |
i was just trying out the template but ran into: error: stack overflow (possible infinite recursion) | 16:13:51 | |
| i've seen some issues on github that point to a similar problem i guess but i couldn't figure out how to work around this | 16:14:30 | |
| is there a workaround? am i doing something wrong? is the template broken? i am very confused | 16:16:33 | |
| okaay | 18:33:55 | |
| after staring at it for a while i figured it out | 18:34:07 | |
| also reading this issue more carefully helped: https://github.com/nix-community/poetry2nix/issues/1471 | 18:34:46 | |
The template project passes the flake self to projectDir, which seems weird to me. | 18:34:58 | |
replacing self with ./. fixed the issue | 18:35:25 | |
| Redacted or Malformed Event | 20:05:25 | |
| 24 Mar 2024 | ||
Hey, I'm back with mitsuba problems. My devshell builds fine but when I try to import the module in python, I get this (actually very nice) warning:Which later produces the error:So drjit is supposed to be over at the mitsuba derivation but it of course has its own. Is there any way to fix this?Maybe the second output is not even related to this problem? This is my current override: | 10:21:42 | |