Poetry2nix | 322 Members | |
| https://github.com/nix-community/poetry2nix | 62 Servers |
| Sender | Message | Time |
|---|---|---|
| 24 Mar 2024 | ||
| I am trying to update poetry2nix to work with a more recent nixpkgs, and I need some help with the darwin builds. I don't have access to a mac. | 13:19:51 | |
| https://github.com/nix-community/poetry2nix/pull/1559 is the PR | 13:20:16 | |
| It looks like there's some issues with function pointer signatures with lxml, scipy and matplotlib (or some transitive dependency thereof) | 13:21:20 | |
| latenighticecream: welcome to dependency hell 🫠if you can provide a minimal example repo (i.e. flake with drjit+mitsuba packages) i'd be willing to help but i only have time to work on such projects on weekends | 13:37:14 | |
| i wanted to try out mitsuba for photogrammetry | 13:37:35 | |
| Related to this, all the cloud providers I've tried to use, including Scaleway and MacStadium seem to prohibit me from doing anything without first undergoing an account review. I'm using masked email address via fastmail, and I'm guessing they flag that or something. | 13:43:44 | |
| * Related to this, all the cloud providers I've tried to use, including Scaleway and MacStadium seem to prohibit me from doing anything without first undergoing an account review. I'm using masked email addresses via fastmail, and I'm guessing they flag that or something. | 13:44:02 | |
| Scaleway in particular was horrendous. They locked my account after I spun up an instance and continued to charge me for the instance after locking my account. | 13:45:13 | |
In reply to@leonardp:matrix.orghere it is: https://github.com/LateNightIceCream/poetry2nix-mitsuba | 13:51:41 | |
| cool i'll look into it | 13:57:07 | |
In reply to@leonardp:matrix.orgthank you !! | 13:58:37 | |
| latenighticecream: i think your problems go deeper | 15:11:13 | |
| :/ | 15:11:18 | |
| i do not think the dependencies are built correctly at all | 15:11:55 | |
| id basically did:
| 15:12:37 | |
| an the tried an example from: https://drjit.readthedocs.io/en/latest/firststeps-py.html#signed-distance-functions-and-sphere-tracing | 15:12:59 | |
| everything seems to be fine (i.e. importing) until you execute some function | 15:13:44 | |
RuntimeError: jit_init_thread_state(): the LLVM backend is inactive because the LLVM shared library ("libLLVM.so") could not be found! Set the DRJIT_LIBLLVM_PATH environment variable to specify its path.then you will see some errors like this | 15:14:12 | |
| which also kind of happens when trying to use mitsuba from your example:
| 15:14:50 | |
| i think you will have to build some dependencies by hand | 15:18:45 | |
| i would start by trying to build drjit | 15:20:58 | |
| for example you can look at: https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/python-modules/h3/default.nix and https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/python-modules/blosc2/default.nix | 15:21:23 | |
| and maybe: https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/python-modules/lightgbm/default.nix | 15:22:33 | |
In reply to@leonardp:matrix.orgahh I had this error before, as well.. I don't remember how I resolved it though.. Anyways, I will try building it by hand. I already built drjit before by hand, which worked on its own (although I also only tested importing). Mitsuba should then also not be too bloated as its only real dependency is drjit. Thank you for your help! I will let you know when I made some progress :) | 15:24:37 | |
| I am wondering though if this "hybrid" approach will work with poetry2nix? Do I just put the python packages inside the packages of my shell? Since they wont be listed in my pyproject.toml | 15:26:45 | |
| not so sure about that aswell, but i haven't done too much with poetry2nix you said that you don't really need the packages so you might get away with it | 15:28:28 | |
| depending on how little you actually need the packages.. but i suspect only passing the import test will not suffice -.- | 15:30:23 | |
| best of luck :) | 15:31:02 | |
| thank you ! I will need that :D | 15:31:39 | |
| Soo.. I'm kind of giving up. In the end I received the same LLVM library error as you showed before and am unable to get rid of it. drjit on its own works when built by hand, even with the sdf example you provided (mitsuba still produces the same error). But when I try to import sionna (the thing I actually need) said error appears. Unfortunately, it has already eaten way too much time without producing anything useful. But I learned a lot of nix on the way :) So I'm now going back to the impure versions with pip + venvs inside a shell | 18:26:03 | |