!rWxyQqNqMUDLECdsIf:blad.is

Poetry2nix

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

Load older messages


SenderMessageTime
17 Jan 2024
@daquintero:matrix.orgdaquinteroDid you find an answer?11:14:32
@daquintero:matrix.orgdaquintero * Hi Ryan Swart I'm really struggling twith this too 11:16:23
@daquintero:matrix.orgdaquintero Hi nazarewk ! Did you manage to package it with watchfiles? Strugging to get it to build the wheel 11:18:48
@nazarewk:matrix.orgkdnI didn't continue the topic 11:19:37
@daquintero:matrix.orgdaquinteroAhh fair thanks!11:19:59
18 Jan 2024
@jarrodfarrell:matrix.orgJarrod Farrell joined the room.02:17:20
@jarrodfarrell:matrix.orgJarrod Farrell So poetry2nix has a bunch of examples of starting fresh and just packaging your project. But I have a prexisting project that isn't mine and thus I'm fetching from GitHub. The docs mention it has the src declaration so I've put src = pkgs.fetchFromGitHub { /* stuff here */ } but it still wants to grab from the folder where the declaration lives instead of the src I've provided. 02:21:11
@jarrodfarrell:matrix.orgJarrod Farrell I could just clone the repo onto my system and tack on the .flake but I figure that isn't the right way to do things. 02:22:19
@k900:0upti.meK900 You also need to provide the paths to pyproject.toml and poetry.lock 05:25:09
@k900:0upti.meK900And it will be IFD05:25:14
@k900:0upti.meK900Are you doing this for your personal use or for nixpkgs?05:25:21
@jarrodfarrell:matrix.orgJarrod FarrellUniversity related. I ended up just writing it as a bonafided deriative due a dependecy throwing an error with poetry2nix.05:26:35
@jarrodfarrell:matrix.orgJarrod FarrellSo far I'm...still working on that. Time is a blur now.05:27:14
@jarrodfarrell:matrix.orgJarrod FarrellI'm getting close to it working though so...that's something.05:27:46
@daquintero:matrix.orgdaquintero changed their display name from Dario Antonio Quintero Dominguez to daq.12:12:52
@daquintero:matrix.orgdaquintero changed their display name from daq to daquintero.12:14:12
@daquintero:matrix.orgdaquinteroRedacted or Malformed Event16:57:11
@daquintero:matrix.orgdaquinteroRedacted or Malformed Event16:57:11
@daquintero:matrix.orgdaquintero

Hi everyone, I'm really struggling to work out how to debug this error. If you have any tips how to approach debuging this flake I'd really appreciate it.

This is the error I'm getting

error: builder for '/nix/store/l5s935sksbdnk6ivjigkv45603yg6hkz-python3.11-watchfiles-0.21.0.drv' failed with exit code 1;
       last 10 log lines:
       > Using wheelUnpackPhase
       > Sourcing pypa-install-hook
       > Using pypaInstallPhase
       > Sourcing python-imports-check-hook.sh
       > Using pythonImportsCheckPhase
       > Sourcing python-namespaces-hook
       > Sourcing python-catch-conflicts-hook.sh
       > Running phase: unpackPhase
       > Executing wheelUnpackPhase
       > cp: -r not specified; omitting directory '/nix/store/q3zw45mf49af911hphcpb8ng348m3qfq-source'
       For full logs, run 'nix log /nix/store/l5s935sksbdnk6ivjigkv45603yg6hkz-python3.11-watchfiles-0.21.0.drv'.

I'm running this command
nix develop --debugger --extra-experimental-features nix-command --extra-experimental-features flakes --show-trace

Any tips how to apporach this would be most appreciated!

I'm attaching the relevant flake files and pyproject.toml in the thread if you are more curious

16:58:28
@daquintero:matrix.orgdaquintero *

Hi everyone, I'm really struggling to work out how to debug this error. If you have any tips how to approach debuging this flake I'd really appreciate it.

This is the error I'm getting

error: builder for '/nix/store/l5s935sksbdnk6ivjigkv45603yg6hkz-python3.11-watchfiles-0.21.0.drv' failed with exit code 1;
       last 10 log lines:
       > Using wheelUnpackPhase
       > Sourcing pypa-install-hook
       > Using pypaInstallPhase
       > Sourcing python-imports-check-hook.sh
       > Using pythonImportsCheckPhase
       > Sourcing python-namespaces-hook
       > Sourcing python-catch-conflicts-hook.sh
       > Running phase: unpackPhase
       > Executing wheelUnpackPhase
       > cp: -r not specified; omitting directory '/nix/store/q3zw45mf49af911hphcpb8ng348m3qfq-source'
       For full logs, run 'nix log /nix/store/l5s935sksbdnk6ivjigkv45603yg6hkz-python3.11-watchfiles-0.21.0.drv'.

I'm running this command

nix develop --debugger --extra-experimental-features nix-command --extra-experimental-features flakes --show-trace

Any tips how to apporach this would be most appreciated!

I'm attaching the relevant flake files and pyproject.toml in the thread if you are more curious

16:58:46
@daquintero:matrix.orgdaquinteroDownload flake.nix16:59:02
@daquintero:matrix.orgdaquinteroDownload flake.lock16:59:04
@daquintero:matrix.orgdaquinteroDownload poetry.lock16:59:33
@daquintero:matrix.orgdaquinteroDownload pyproject.toml16:59:34
21 Jan 2024
@cadr:matrix.orgcadr joined the room.18:18:40
@cadr:matrix.orgcadrHi, did you solve your issues related to cuda?18:49:41
@cadr:matrix.orgcadri get the following libnvJitLink.so.12 -> not found! but have no idea how to install libnvjitlink to libcusparse18:50:50
@tcarls:matrix.orgCharles Duffy joined the room.21:39:48
@tcarls:matrix.orgCharles Duffy

Howdy --

I have a project I'm building against Python 3.12 using poetry2nix that has Cython 3.0.8 in its pyproject.toml and poetry.lock. This almost works as-intended, except for the build of pandas, which is instead using cython 0.29.36 (the revision pinned by nixpkgs). I've added an overlay to nixpkgs in my flake (python312 = prev.python312.override { packageOverrides = ... }) setting cython to be version 3.0.8, but again this has no impact on the inputs to the build of pandas.

Any guidance on where to start in trying to understand this?

21:45:23
@tcarls:matrix.orgCharles Duffy Ah! poetry2nix/overrides/default.nix:34 -- if attr == "cython" then self.python.pythonForBuild.pkgs.cython else self.${attr} 22:00:08

Show newer messages


Back to Room ListRoom Version: 6