Sender | Message | Time |
---|---|---|
24 Mar 2024 | ||
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 | |
and thank you for your help nevertheless! | 18:28:02 | |
* 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 already ate 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:33:07 | |
26 Mar 2024 | ||
Hi there ! I have a question about https://github.com/nix-community/poetry2nix/blob/master/docs/edgecases.md#modulenotfounderror-no-module-named-packagename. Why do we have to add eg. poetry-core in overrides/build-systems.json (or in a overridePythonAttrs / buildInputs) as dependency of a package which has [build-system] \n requires = ["poetry-core"] in its pyproject.toml ? Couldn't we autodetect that ? | 10:43:23 | |
Because we can't read pyproject.toml at eval time | 10:43:45 | |
Well, we can | 10:43:53 | |
But it would then mean we have to fetch the sources of the package at eval time | 10:44:04 | |
* But it would then mean we have to fetch the sources of the package at eval time | 10:44:07 | |
Which will slow down evaluation massively and is probably a bad idea | 10:44:16 | |
ok, for now we only get metadata from pypi ? | 10:44:18 | |
We don't get metadata from anywhere | 10:44:58 | |
Except poetry2nix itself and nixpkgs | 10:45:02 |