!rWxyQqNqMUDLECdsIf:blad.is

Poetry2nix

305 Members
https://github.com/nix-community/poetry2nix55 Servers

Load older messages


SenderMessageTime
6 Mar 2024
@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.netAngryAntWhat does your WIP nix look like?12:50:55
@angryant:envs.netAngryAnt

I am trying to get nvidia-cusparse-cu12, part of my dependencies, to build. It is currently failing with auto-patchelf not able to resolve libnvJitLink.so.12. So I tried this override which has no effect. Am I missing something obvious?

      python311.nvidia-cusparse-cu12 = super.python311.nvidia-cusparse-cu12.overridePythonAttrs (old: {
        preferWheel = true;
        nativeBuildInputs = (old.nativeBuildInputs or [ ]) ++ [ pkgs.cudaPackages.libnvjitlink ];
        autoPatchelfIgnoreMissingDeps = [ "libnvJitLink.so.12" ];
      });
16:31:04
@angryant:envs.netAngryAnt Ah indeed I was. The python311 prefix had made its way in there. 16:47:16
8 Mar 2024
@gsaurel:laas.frnim65s joined the room.16:50:32
10 Mar 2024
@taitusi_muavesi:matrix.orgsunil
In reply to @angryant:envs.net
What does your WIP nix look like?

somewhat like this: https://gist.github.com/paradx/af5de890145e70b5921e9169aecf1119

I had more of the override bits but in the end it just fails further down the line, there has to be an easier solution.

07:58:30
11 Mar 2024
@dorekhov:matrix.orgDaniil Orekhov joined the room.17:50:16
@dorekhov:matrix.orgDaniil Orekhov i am trying to install sanic and getting No module named 'pkg_resources' for tracerite. I have tried adding setuptools as overrides to both sanic and tracerite, but the issue persists. Any suggestions on how to fix/dubug this issue? 19:45:11
@dorekhov:matrix.orgDaniil Orekhov * i am trying to install sanic and getting No module named 'pkg_resources' for tracerite. I have tried adding setuptools as overrides to both sanic and tracerite, but the issue persists. Any suggestions on how to fix/debug this issue? 19:45:27
12 Mar 2024
@gaivs:matrix.orggaivs Could you add pkg_resources, as that is the missing module? 10:41:38
13 Mar 2024
@matusf:matrix.orgmatusf Hello, how do you do local development with poetry2nix? I started from the template and created an app with mkPoetryApplication function and included it in a shell. Then I ran the package using python ./app/__init__.py and it successfully runs the program. I noticed that I can edit the sources and without rebuilding I'm able to run it with the same command and see the change. Is this the correct way to use poetry2nix for local development? Are there any pitfalls in this solution? I'm bit unsure because I've seen mkPoetryEditablePackage function. When should one use it instead of mkPoetryApplication as I described? 01:24:29
@dantefromhell:matrix.org@dantefromhell:matrix.org joined the room.15:00:37
@dantefromhell:matrix.org@dantefromhell:matrix.orgI'm using `poetry2nix` inside a flake and it duplicates my `systems` input via `inputs.flake-utils.systems`. since `poetry2nix` already has `inputs.systems` I wonder if it's intentional that `flake-utils` is not following this input?15:05:22
14 Mar 2024
@federicodschonborn:matrix.org@federicodschonborn:matrix.org left the room.02:04:48
@vbear:matrix.orgVebjørn Halvorsen joined the room.12:31:31
@vbear:matrix.orgVebjørn HalvorsenIm getting this error when trying to install tensorflow: 🤔 974| (old.buildInputs or [ ]) 975| ++ [ pkgs.hdf5 self.pkg-config ] | ^ 976| ++ lib.optional mpiSupport mpi Did you mean pkgconfig?12:32:31
@mjolnir:nixos.orgNixOS Moderation Botchanged room power levels.18:45:09
@tcarls:matrix.orgCharles Duffy How does one set overlays &c when using mkPoetryScriptsPackage? I tried setting python = myPoetryEnv, but that's not actually putting the dependencies in that poetryEnv (which does have overrides &c defined) in the PYTHONPATH. 20:40:19
15 Mar 2024
@truh:matrix.orgtruh
In reply to @vbear:matrix.org
Im getting this error when trying to install tensorflow: 🤔

974| (old.buildInputs or [ ])
975| ++ [ pkgs.hdf5 self.pkg-config ]
| ^
976| ++ lib.optional mpiSupport mpi
Did you mean pkgconfig?
maybe you need self.pkgconfig instead of self.pkg-config
11:05:14
@grahamc:nixos.org@grahamc:nixos.org joined the room.23:50:24
17 Mar 2024
@sankaratupi:matrix.orgFelipe Marcelino joined the room.17:59:18
18 Mar 2024
@truh:matrix.orgtruh

I'm getting ModuleNotFoundError: No module named 'poetry' for one of my dependencies even though I'm adding poetry-core to the buildInputs. Any suggestions what I could try to get it to build, short of changing the build system of the dependency?

The dependency in question is maphash and I'm its maintainer. It's possible that I didn't package it correctly but it works fine without poetry2nix and it's pretty basic as far as python packages go.

09:02:06
@truh:matrix.orgtruh *

I'm getting ModuleNotFoundError: No module named 'poetry' for one of my dependencies even though I'm adding poetry-core to the buildInputs. Any suggestions what I could try to get it to build, short of changing the build system of the dependency?

The dependency in question is maphash and I'm its maintainer. It's possible that I didn't package it correctly but it works fine without poetry2nix and it's pretty basic as far as python packages go.

edit: Can't reproduce this in a repo without other dependencies, will have to give this some more thought.

09:22:39
@truh:matrix.orgtruh

I had an error in my overrides, in addition to maphash = super.maphash.overridePythonAttrs .... I had some-other-package = super.maphash.overridePythonAttrs ..... I guess this lead to the overwritten maphash not getting evaluated properly.

I found this out by checking the maphash derivation with nix derivation show </nix/store ** maphash.drv> and not finding poetry-core in the buildInputs.

10:41:10
@ubbabeck:matrix.orgubbabeck set a profile picture.19:13:34

Show newer messages


Back to Room ListRoom Version: 6