!rWxyQqNqMUDLECdsIf:blad.is

Poetry2nix

319 Members
https://github.com/nix-community/poetry2nix63 Servers

Load older messages


SenderMessageTime
21 Jun 2024
@janik0:matrix.org@janik0:matrix.org left the room.09:14:53
@tyberius_prime:matrix.orgTyberiusPrime (smilodon inopinatus)I think it's the source tarball, where it's trying to get the Cargo.lock from?12:33:56
@tyberius_prime:matrix.orgTyberiusPrime (smilodon inopinatus)you got a minimal reproducing example?12:37:03
@linus:schreibt.jetzt@linus:schreibt.jetzt left the room.14:03:29
25 Jun 2024
@julius:mtx.liftm.deˈt͡sɛːzaɐ̯ How much of a sin is overrides = defaultPoetryOverrides.extend (_: _: pkgs.python311Packages);? 01:50:45
@tyberius_prime:matrix.orgTyberiusPrime (smilodon inopinatus)
In reply to @julius:mtx.liftm.de
How much of a sin is overrides = defaultPoetryOverrides.extend (_: _: pkgs.python311Packages);?
that sounds like a good way to get 'weird' problems ;).
13:12:19
@tyberius_prime:matrix.orgTyberiusPrime (smilodon inopinatus)no later then when your pyproject.toml says 3.12 and you forgot to adjust this ^^13:12:38
26 Jun 2024
@elonsroadster:matrix.orgcolonelpanic

I'm getting

➜ LD_LIBRARY_PATH='' nix build '.?submodules=1#railbird-api' --dry-run --impure --show-trace
warning: Git tree '/home/imalison/Projects/railbird' is dirty
trace: warning: pythonForBuild (from python*) has been renamed to pythonOnBuildForHost
trace: warning: pythonForBuild (from python*) has been renamed to pythonOnBuildForHost
trace: warning: pythonForBuild (from python*) has been renamed to pythonOnBuildForHost
evaluating derivation 'git+file:///home/imalison/Projects/railbird#railbird-api'error: stack overflow (possible infinite recursion)

after updating the nixpkgs and poetry2nix versions in my flake.

sort of at a loss as to how to try to even ascertain which package is causing this because why depends and dry run are failing with the same issue.

the only thing I can think of is to start putting traces in the poetry2nix code itself. Does anyone have any idea how I can debug this?

00:00:10
28 Jun 2024
@howird:matrix.orgHoward Nguyen-Huu joined the room.02:44:28
30 Jun 2024
@elonsroadster:matrix.orgcolonelpanicturns out that my nixpkgs was too out of date for the newer poetry2nix that I was using04:22:56
1 Jul 2024
@olaf_freund:matrix.orgOlaf Krasicki Freund joined the room.21:57:20
4 Jul 2024
@adis:blad.isadisbladis
In reply to @tyberius_prime:matrix.org
adisbladis: Hi, are you still working on poetry2nix?

For various reasons I haven't worked on anything Nix related for a bit.

The reasons are many-fold:

  • Personal (I don't want to get into details here, not relevant to the overall community regardless)

  • I don't exactly enjoy the maintenance aspect
    Overrides et al was something I always saw as a stop gap, but now takes up the brunt of maintenance time. This is not what I enjoy working on.

  • Ongoing political conflicts in Nix
    I have extremely low patience for social BS at the best of times, this is too much to handle.

I have some pretty large changes that I want to do to how Nixpkgs deals with Python in general that would break things drastically for some people. Dealing with any sort of social fallout in this climate is something I see as untenable.

  • I barely even use Python myself any more

  • Companies make money off poetry2nix, I make none
    This reality makes me question how much unpaid time I should put into the project.

00:14:25
@adis:blad.isadisbladis
In reply to @tyberius_prime:matrix.org
adisbladis: Hi, are you still working on poetry2nix?
*

For various reasons I haven't worked on anything Nix related for a bit.

The reasons are many-fold:

  • Personal (I don't want to get into details here, not relevant to the overall community regardless)
  • I don't exactly enjoy the maintenance aspect
    Overrides et al was something I always saw as a stop gap, but now takes up the brunt of maintenance time. This is not what I enjoy working on. I want to work on fundamentals, not what I consider to be a "software janitor".
  • Ongoing political conflicts in Nix
    I have extremely low patience for social BS at the best of times, this is too much to handle.

I have some pretty large changes that I want to do to how Nixpkgs deals with Python in general that would break things drastically for some people. Dealing with any sort of social fallout in this climate is something I see as untenable.

  • I barely even use Python myself any more
  • Companies make money off poetry2nix, I make none
    This reality makes me question how much unpaid time I should put into the project.
00:15:19
@tyberius_prime:matrix.orgTyberiusPrime (smilodon inopinatus) adisbladis: Thanks for the explanation. Glad to hear you haven't been run over by a bus or something, I do tend to worry. 05:08:05
@tyberius_prime:matrix.orgTyberiusPrime (smilodon inopinatus)(and I do think all you reasons are perfectly valid!).05:08:56
5 Jul 2024
@tyberius_prime:matrix.orgTyberiusPrime (smilodon inopinatus)So, I'm 98% certain that preferWheels just doesn't work.12:34:55
@tyberius_prime:matrix.orgTyberiusPrime (smilodon inopinatus)but I sure have trouble tracing the code and finding out why.12:49:32
@tyberius_prime:matrix.orgTyberiusPrime (smilodon inopinatus)correction, it works for some packages and does not for others ?!14:22:16
@ma27:nicht-so.sexyma27 joined the room.18:32:39
@sliedes:hacklab.fiSami Liedes joined the room.23:02:15
8 Jul 2024
@axgxpxyxix:matrix.orgaxgxpxyxix joined the room.13:34:35
9 Jul 2024
@FRidh:matrix.orgFRidhIt would be great if this PR could be merged adding a cargo hash https://github.com/nix-community/poetry2nix/pull/172609:10:13
@truh:matrix.orgtruhI'm trying to investigate why opencv is no longer building (probably the same as https://github.com/nix-community/poetry2nix/issues/1715). Do the opencv packages in poetry2nix rely on the instructions from https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/libraries/opencv/4.x.nix ?10:37:52
10 Jul 2024
@tyberius_prime:matrix.orgTyberiusPrime (smilodon inopinatus)
In reply to @FRidh:matrix.org
It would be great if this PR could be merged adding a cargo hash https://github.com/nix-community/poetry2nix/pull/1726
my work in progress giant PR should fix that 'en passant'
10:02:48
@tyberius_prime:matrix.orgTyberiusPrime (smilodon inopinatus)
In reply to @truh:matrix.org
I'm trying to investigate why opencv is no longer building (probably the same as https://github.com/nix-community/poetry2nix/issues/1715).

Do the opencv packages in poetry2nix rely on the instructions from https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/libraries/opencv/4.x.nix ?
I don't think they do, reading the source.
10:04:08
@tyberius_prime:matrix.orgTyberiusPrime (smilodon inopinatus)and once again, my mega-PR fixes that as well.10:04:39
@tyberius_prime:matrix.orgTyberiusPrime (smilodon inopinatus)

by doing

 postPatch = ''
              sed -i pyproject.toml -e 's/numpy==[0-9]\+\.[0-9]\+\.[0-9]\+;/numpy;/g'
              # somehow the type information doesn't get build
              substituteInPlace setup.py --replace-fail '[ r"python/cv2/py.typed" ] if sys.version_info >= (3, 6) else []' "[]" \
              --replace-fail 'rearrange_cmake_output_data["cv2.typing"] = ["python/cv2" + r"/typing/.*\.py"]' "pass"
            '';

10:04:57
@tyberius_prime:matrix.orgTyberiusPrime (smilodon inopinatus)(basically, by saying to not build the py.typed file)10:05:14
@truh:matrix.orgtruh My current workaround is p2n.defaultPoetryOverrides.extend (self: super: { opencv-contrib-python = super.opencv4; }) & dontCheckRuntimeDeps = true; but your patch thing looks more reasonable 10:07:42
@truh:matrix.orgtruhHonestly feels like a bit of a waste not to use all those handcrafted build expressions in nixpkgs, I guess those only need to work with specific versions so maybe more problems than gain by using them.10:09:48

Show newer messages


Back to Room ListRoom Version: 6