!rWxyQqNqMUDLECdsIf:blad.is

Poetry2nix

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

Load older messages


SenderMessageTime
18 Jan 2024
@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
@tcarls:matrix.orgCharles Duffy ...though when I look at legacyPackges.${builtins.currentSystem}.python213.pythonForBuild.pkgs.cython from my flake, I see the overridden cython, not the old one... 22:04:11
22 Jan 2024
@tcarls:matrix.orgCharles DuffyPublished a reproducer for the bug at https://github.com/charles-dyfis-net/poetry2nix-cython-repro01:19:03
@tcarls:matrix.orgCharles Duffy Hmm. If in poetry2nixOverrides I refer to self.cython or super.cython, it's the 0.29.36 version from nixpkgs, not the 3.0.8 one from pyproject.toml or poetry.lock... 01:47:02
@tcarls:matrix.orgCharles Duffy ...whereas in the poetry2nix overrides, cython = pkgs.python312Packages.cython -- exiting the poetry2nix ecosystem and getting Cython from nixpkgs -- does appear to cause the nixpkgs overlay updating cython to be honored. Not as good as honoring the version requested in pyproject.toml, but better than not having any solution at all. 03:37:44
@tcarls:matrix.orgCharles DuffyIs there a poetry2nix bug report to be filed in the above (re: poetry's choice of cython versions not being honored)?17:23:09
@tcarls:matrix.orgCharles Duffy

...hm. Another curious one, trying to install pandas (mind, while this is reproducible in my repo's current state, I haven't determined which aspect of that state is the trigger; if that happens, it'll become another branch in the repo above with the cython reproducer):

Building wheels for collected packages: pandas
  Running command Building wheel for pandas (pyproject.toml)
  Building wheel for pandas (pyproject.toml) ... done
  Created wheel for pandas: filename=pandas-2.1.0-cp312-cp312-linux_x86_64.whl size=47165120 sha256=a46fc3f2699d67680045e8fb4ee090458728cf065216e78b6740be9da595f4b2
  Stored in directory: /build/pip-ephem-wheel-cache-27sl17l7/wheels/d0/7a/c2/4a8bb40cfa28f50f4142d01b212e11e4cbfd3fed07ea663e42
Successfully built pandas
Finished creating a wheel...
Finished executing pipBuildPhase
buildPhase completed in 9 minutes 9 seconds
@nix { "action": "setPhase", "phase": "installPhase" }
installing
Executing pypaInstallPhase
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/nix/store/max9q2g1dy9mqs8ciy9awh8bgkyp3j1w-python3.12-installer-0.7.0/lib/python3.12/site-packages/installer/__main__.py", line 98, in <module>
    _main(sys.argv[1:], "python -m installer")
  File "/nix/store/max9q2g1dy9mqs8ciy9awh8bgkyp3j1w-python3.12-installer-0.7.0/lib/python3.12/site-packages/installer/__main__.py", line 94, in _main
    installer.install(source, destination, {})
  File "/nix/store/max9q2g1dy9mqs8ciy9awh8bgkyp3j1w-python3.12-installer-0.7.0/lib/python3.12/site-packages/installer/_core.py", line 109, in install
    record = destination.write_file(
             ^^^^^^^^^^^^^^^^^^^^^^^
  File "/nix/store/max9q2g1dy9mqs8ciy9awh8bgkyp3j1w-python3.12-installer-0.7.0/lib/python3.12/site-packages/installer/destinations.py", line 207, in write_file
    return self.write_to_fs(scheme, path_, stream, is_executable)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/nix/store/max9q2g1dy9mqs8ciy9awh8bgkyp3j1w-python3.12-installer-0.7.0/lib/python3.12/site-packages/installer/destinations.py", line 167, in write_to_fs
    raise FileExistsError(message)
FileExistsError: File already exists: /nix/store/g07js3dnpxcgm77c2i58lzpj5ynxjbs9-python3.12-pandas-2.1.0/lib/python3.12/site-packages/pandas/_libs/__init__.py

And indeed, that file does exist -- even outside the build sandbox, despite being inside the $out path of a build that failed.

22:33:04
23 Jan 2024
@tcarls:matrix.orgCharles Duffy
In reply to @tcarls:matrix.org

...hm. Another curious one, trying to install pandas (mind, while this is reproducible in my repo's current state, I haven't determined which aspect of that state is the trigger; if that happens, it'll become another branch in the repo above with the cython reproducer):

Building wheels for collected packages: pandas
  Running command Building wheel for pandas (pyproject.toml)
  Building wheel for pandas (pyproject.toml) ... done
  Created wheel for pandas: filename=pandas-2.1.0-cp312-cp312-linux_x86_64.whl size=47165120 sha256=a46fc3f2699d67680045e8fb4ee090458728cf065216e78b6740be9da595f4b2
  Stored in directory: /build/pip-ephem-wheel-cache-27sl17l7/wheels/d0/7a/c2/4a8bb40cfa28f50f4142d01b212e11e4cbfd3fed07ea663e42
Successfully built pandas
Finished creating a wheel...
Finished executing pipBuildPhase
buildPhase completed in 9 minutes 9 seconds
@nix { "action": "setPhase", "phase": "installPhase" }
installing
Executing pypaInstallPhase
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/nix/store/max9q2g1dy9mqs8ciy9awh8bgkyp3j1w-python3.12-installer-0.7.0/lib/python3.12/site-packages/installer/__main__.py", line 98, in <module>
    _main(sys.argv[1:], "python -m installer")
  File "/nix/store/max9q2g1dy9mqs8ciy9awh8bgkyp3j1w-python3.12-installer-0.7.0/lib/python3.12/site-packages/installer/__main__.py", line 94, in _main
    installer.install(source, destination, {})
  File "/nix/store/max9q2g1dy9mqs8ciy9awh8bgkyp3j1w-python3.12-installer-0.7.0/lib/python3.12/site-packages/installer/_core.py", line 109, in install
    record = destination.write_file(
             ^^^^^^^^^^^^^^^^^^^^^^^
  File "/nix/store/max9q2g1dy9mqs8ciy9awh8bgkyp3j1w-python3.12-installer-0.7.0/lib/python3.12/site-packages/installer/destinations.py", line 207, in write_file
    return self.write_to_fs(scheme, path_, stream, is_executable)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/nix/store/max9q2g1dy9mqs8ciy9awh8bgkyp3j1w-python3.12-installer-0.7.0/lib/python3.12/site-packages/installer/destinations.py", line 167, in write_to_fs
    raise FileExistsError(message)
FileExistsError: File already exists: /nix/store/g07js3dnpxcgm77c2i58lzpj5ynxjbs9-python3.12-pandas-2.1.0/lib/python3.12/site-packages/pandas/_libs/__init__.py

And indeed, that file does exist -- even outside the build sandbox, despite being inside the $out path of a build that failed.

This one was solved by moving to a newer pandas release.
12:41:02
24 Jan 2024
@djacu:matrix.org@djacu:matrix.org joined the room.07:50:22

Show newer messages


Back to Room ListRoom Version: 6