!rWxyQqNqMUDLECdsIf:blad.is

Poetry2nix

303 Members
https://github.com/nix-community/poetry2nix54 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
5 Mar 2024
@meditans:matrix.orgmeditans

Now I have still a problem, and I'm wandering if someone encountered it before:

RuntimeError: Cannot find CUDA_HOME. CUDA must be available to build the package.

This happens when I try to build the wheel for the last package I need, llvm itself. As usual, one can try the failing build at the latest commit of the repo I linked in the first question. I wonder who should set CUDA_HOME, and how could I set it so that the build process of vllm sees it (I don't think a shellHook is early enough)

18:18:55
@meditans:matrix.orgmeditans *

Now I have still a problem, and I'm wondering if someone encountered it before:

RuntimeError: Cannot find CUDA_HOME. CUDA must be available to build the package.

This happens when I try to build the wheel for the last package I need, llvm itself. As usual, one can try the failing build at the latest commit of the repo I linked in the first question. I wonder who should set CUDA_HOME, and how could I set it so that the build process of vllm sees it (I don't think a shellHook is early enough)

18:19:04
@meditans:matrix.orgmeditans *

Now I have still a problem, and I'm wondering if someone encountered it before:

RuntimeError: Cannot find CUDA_HOME. CUDA must be available to build the package.

This happens when I try to build the wheel for the last package I need, vllm itself. As usual, one can try the failing build at the latest commit of the repo I linked in the first question. I wonder who should set CUDA_HOME, and how could I set it so that the build process of vllm sees it (I don't think a shellHook is early enough)

18:19:19
@meditans:matrix.orgmeditans *

Now I have still a problem, and I'm wondering if someone encountered it before:

RuntimeError: Cannot find CUDA_HOME. CUDA must be available to build the package.

This happens when I try to build the wheel for the last package I need, vllm itself. As usual, one can try the failing build at the latest commit of the repo I linked in the first question. I wonder who should set CUDA_HOME, and how could I set it so that the build process of vllm sees it (I don't think a shellHook is early enough)

18:19:38
@meditans:matrix.orgmeditans

I solved this problem via:

  addCudaHome = { name, final, prev, pkg }@args:
    pkg.overridePythonAttrs (old: {
      preBuild = (old.preBuild or "")
        + ''export CUDA_HOME="${final.pkgs.cudatoolkit}"'';
    });

19:18:28
@meditans:matrix.orgmeditans But now the build expects to find the executable which and it ignores it even if I put it in the build deps 19:19:03
@meditans:matrix.orgmeditans duh, buildInputs vs nativeBuildInputs. I didn't realize before that native means build time 😂 20:28:13
@meditans:matrix.orgmeditans * duh, buildInputs vs nativeBuildInputs. I didn't realize before that native means build time 😂. So, the which thing is solved too. 20:28:34
6 Mar 2024
@vengmark2:matrix.org@vengmark2:matrix.org How do I create a mkPoetryEnv which includes a poetry executable with the Python version passed to mkPoetryEnv? 02:23:46
@reivilibre:librepush.net@reivilibre:librepush.net left the room.08:11:33
@meditans:matrix.orgmeditans Usually for me is enough installing poetry-core that I can find in any python's package collection. Eg python311Packages.poetry-core. Does this help? 12:31:21
@meditans:matrix.orgmeditansI created a github issue for my remaining problems in packaging vllm https://github.com/nix-community/poetry2nix/issues/1553 If you have packaged deep-learning dependencies and you have suggestions I'm very happy to hear them15:56:34
@vengmark2:matrix.org@vengmark2:matrix.org poetry-core doesn't seem to include the poetry CLI. 21:27:21
7 Mar 2024
@taitusi_muavesi:matrix.orgsunil joined the room.10:35:54
@taitusi_muavesi:matrix.orgsunilHi, I thought I could "just" use poetry2nix to create a nix package for a poetry application I want to use. The problem is that I'm quite new to nix and I quite quickly ended up in the "edgecases.md" section of missing setuptools for a bunch of dependencies. My overrides are now ~ 200 loc and the suggested shorter solution won't work because I have to overwrite the hash of another dependency. Is there a quick way to propergate setuptools and setuptools-scm to all dependecies as PythonAttrs? 10:41:58
@taitusi_muavesi:matrix.orgsunilThe python lib in question is: https://github.com/earthobservations/wetterdienst 10:43:32
@angryant:envs.net@angryant:envs.netWhat does your WIP nix look like?12:50:55

Show newer messages


Back to Room ListRoom Version: 6