!rWxyQqNqMUDLECdsIf:blad.is

Poetry2nix

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

Load older messages


SenderMessageTime
18 Jan 2024
@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
@djacu:matrix.org@djacu:matrix.org

Hi everyone

I am having trouble with a minimal pyproject.toml file that only includes python 3.9 and pandas 2.2.0. Charles Duffy it looks related to your issue with overriding Cython.

Looking through the error longs, it apperas that it was using an old version of cython (v 0.29.36). I tried overriding it as per the edgecases doc in the poetry2nix repo but it didn't fix it.

Repo with the minimal environment -> https://github.com/djacu/poetry2nix-pandas-broken

my flake vvv. i am trying to use the devShell named pandas

{
  description = "Test poetry2nix env to investigate why pandas 2.2.0 won't build.";

  inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
  inputs.flake-utils.url = "github:numtide/flake-utils";
  inputs.poetry2nix.url = "github:nix-community/poetry2nix";
  inputs.poetry2nix.inputs.flake-utils.follows = "flake-utils";
  inputs.poetry2nix.inputs.nixpkgs.follows = "nixpkgs";

  outputs = {
    self,
    nixpkgs,
    flake-utils,
    poetry2nix,
  }:
    flake-utils.lib.eachDefaultSystem (
      system: let
        pkgs = nixpkgs.legacyPackages.${system};

        inherit
          (poetry2nix.lib.mkPoetry2Nix {inherit pkgs;})
          mkPoetryEnv
          defaultPoetryOverrides
          ;

        python = pkgs.python39;
        pandas-env = mkPoetryEnv {
          projectDir = ./.;
          inherit python;
          #preferWheels = true;
          overrides =
            defaultPoetryOverrides.extend
            (final: prev: {
              pandas =
                prev.pandas.overridePythonAttrs
                (
                  old: {
                    buildInputs =
                      (old.buildInputs or [])
                      ++ [
                        prev.cython_3
                      ];
                  }
                );
            });
        };
      in {
        devShells = {
          poetry = pkgs.mkShell {
            packages = [
              pkgs.poetry
              python
            ];
          };
          pandas = pkgs.mkShell {
            buildInputs = [
              pandas-env
              pkgs.poetry
            ];
          };
        };
      }
    );
}

error message vvv

% nix develop .\#pandas -L --show-trace
python3.9-pandas> Sourcing python-remove-tests-dir-hook
python3.9-pandas> Sourcing python-catch-conflicts-hook.sh
python3.9-pandas> Sourcing python-remove-bin-bytecode-hook.sh
python3.9-pandas> Sourcing pypa-install-hook
python3.9-pandas> Using pypaInstallPhase
python3.9-pandas> Sourcing python-imports-check-hook.sh
python3.9-pandas> Using pythonImportsCheckPhase
python3.9-pandas> Sourcing python-namespaces-hook
python3.9-pandas> Sourcing pip-build-hook
python3.9-pandas> Using pipBuildPhase
python3.9-pandas> Using pipShellHook
python3.9-pandas> Running phase: unpackPhase
python3.9-pandas> unpacking source archive /nix/store/z6kcw10jha7qvmdlq63pv3mr64c678gg-pandas-2.2.0.tar.gz
python3.9-pandas> source root is pandas-2.2.0
python3.9-pandas> setting SOURCE_DATE_EPOCH to timestamp 1705699087 of file pandas-2.2.0/_version_meson.py
python3.9-pandas> Running phase: patchPhase
python3.9-pandas> Removing path dependencies
python3.9-pandas> Finished removing path dependencies
python3.9-pandas> Removing git dependencies
python3.9-pandas> Finished removing git dependencies
python3.9-pandas> Removing wheel-url dependencies
python3.9-pandas> Finished removing wheel-url dependencies
python3.9-pandas> Running phase: updateAutotoolsGnuConfigScriptsPhase
python3.9-pandas> Running phase: configurePhase
python3.9-pandas> no configure script, doing nothing
python3.9-pandas> Running phase: buildPhase
python3.9-pandas> Executing pipBuildPhase
python3.9-pandas> Creating a wheel...
python3.9-pandas> WARNING: The directory '/homeless-shelter/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you should use sudo's -H flag.
python3.9-pandas> Processing /build/pandas-2.2.0
python3.9-pandas>   Running command Preparing metadata (pyproject.toml)
python3.9-pandas>   + meson setup /build/pandas-2.2.0 /build/pandas-2.2.0/.mesonpy-lv7as6fy -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --vsenv --native-file=/build/pandas-2.2.0/.mesonpy-lv7as6fy/meson-python-native-file.ini
python3.9-pandas>   The Meson build system
python3.9-pandas>   Version: 1.3.0
python3.9-pandas>   Source dir: /build/pandas-2.2.0
python3.9-pandas>   Build dir: /build/pandas-2.2.0/.mesonpy-lv7as6fy
python3.9-pandas>   Build type: native build
python3.9-pandas>   Project name: pandas
python3.9-pandas>   Project version: 2.2.0
python3.9-pandas>   C compiler for the host machine: gcc (gcc 13.2.0 "gcc (GCC) 13.2.0")
python3.9-pandas>   C linker for the host machine: gcc ld.bfd 2.40
python3.9-pandas>   C++ compiler for the host machine: g++ (gcc 13.2.0 "g++ (GCC) 13.2.0")
python3.9-pandas>   C++ linker for the host machine: g++ ld.bfd 2.40
python3.9-pandas>   Cython compiler for the host machine: cython (cython 0.29.36)
python3.9-pandas>   Host machine cpu family: x86_64
python3.9-pandas>   Host machine cpu: x86_64
python3.9-pandas>   Program python found: YES (/nix/store/29gs240159d8rb3kyskpy12mmnfvh0sd-python3-3.9.18/bin/python3.9)
python3.9-pandas>   Found pkg-config: YES (/nix/store/v6n306xw0v850dn01s9fdd0qjwh2j082-pkg-config-wrapper-0.29.2/bin/pkg-config) 0.29.2
python3.9-pandas>   Run-time dependency python found: YES 3.9
python3.9-pandas>   Build targets in project: 53
python3.9-pandas>   pandas 2.2.0
python3.9-pandas>     User defined options
python3.9-pandas>       Native files: /build/pandas-2.2.0/.mesonpy-lv7as6fy/meson-python-native-file.ini
python3.9-pandas>       buildtype   : release
python3.9-pandas>       vsenv       : true
python3.9-pandas>       b_ndebug    : if-release
python3.9-pandas>       b_vscrt     : md
python3.9-pandas>   Found ninja-1.11.1 at /nix/store/msbzwb470a7gqbsv2xvdd4jcrpkl4hmb-ninja-1.11.1/bin/ninja
python3.9-pandas>   Visual Studio environment is needed to run Ninja. It is recommended to use Meson wrapper:
python3.9-pandas>   /nix/store/kymhw7cdmp4alf69pran40s35m347m5z-meson-1.3.0/bin/meson compile -C .
python3.9-pandas>   + /nix/store/msbzwb470a7gqbsv2xvdd4jcrpkl4hmb-ninja-1.11.1/bin/ninja
python3.9-pandas>   [1/151] Generating pandas/_libs/algos_common_helper_pxi with a custom command
python3.9-pandas>   [2/151] Generating pandas/_libs/khash_primitive_helper_pxi with a custom command
python3.9-pandas>   [3/151] Generating pandas/_libs/algos_take_helper_pxi with a custom command
python3.9-pandas>   [4/151] Generating pandas/_libs/hashtable_func_helper_pxi with a custom command
python3.9-pandas>   [5/151] Generating pandas/_libs/index_class_helper_pxi with a custom command
python3.9-pandas>   [6/151] Generating pandas/_libs/intervaltree_helper_pxi with a custom command
python3.9-pandas>   [7/151] Copying file pandas/__init__.py
python3.9-pandas>   [8/151] Generating pandas/_libs/hashtable_class_helper_pxi with a custom command
python3.9-pandas>   [9/151] Generating pandas/_libs/sparse_op_helper_pxi with a custom command
python3.9-pandas>   [10/151] Compiling C object pandas/_libs/pandas_datetime.cpython-39-x86_64-linux-gnu.so.p/src_datetime_pd_datetime.c.o
python3.9-pandas>   [11/151] Compiling C object pandas/_libs/pandas_datetime.cpython-39-x86_64-linux-gnu.so.p/src_datetime_date_conversions.c.o
python3.9-pandas>   [12/151] Compiling Cython source /build/pandas-2.2.0/pandas/_libs/groupby.pyx
python3.9-pandas>   FAILED: pandas/_libs/groupby.cpython-39-x86_64-linux-gnu.so.p/pandas/_libs/groupby.pyx.c
python3.9-pandas>   cython -M --fast-fail -3 --include-dir /build/pandas-2.2.0/.mesonpy-lv7as6fy/pandas/_libs '-X always_allow_keywords=true' /build/pandas-2.2.0/pandas/_libs/groupby.pyx -o pandas/_libs/groupby.cpython-39-x86_64-linux-gnu.so.p/pandas/_libs/groupby.pyx.c
python3.9-pandas>   Error compiling Cython file:
python3.9-pandas>   ------------------------------------------------------------
python3.9-pandas>   ...
python3.9-pandas>       sumx = np.zeros((<object>out).shape, dtype=(<object>out).base.dtype)
python3.9-pandas>       compensation = np.zeros((<object>out).shape, dtype=(<object>out).base.dtype)
python3.9-pandas>       N, K = (<object>values).shape
python3.9-pandas>       with nogil(sum_t is not object):
python3.9-pandas>                ^
python3.9-pandas>   ------------------------------------------------------------
python3.9-pandas>   /build/pandas-2.2.0/pandas/_libs/groupby.pyx:698:14: Expected ':', found '('
python3.9-pandas>   [13/151] Compiling C object pandas/_libs/pandas_datetime.cpython-39-x86_64-linux-gnu.so.p/src_vendored_numpy_datetime_np_datetime.c.o
python3.9-pandas>   [14/151] Compiling Cython source /build/pandas-2.2.0/pandas/_libs/indexing.pyx
python3.9-pandas>   [15/151] Compiling Cython source /build/pandas-2.2.0/pandas/_libs/internals.pyx
python3.9-pandas>   FAILED: pandas/_libs/internals.cpython-39-x86_64-linux-gnu.so.p/pandas/_libs/internals.pyx.c
python3.9-pandas>   cython -M --fast-fail -3 --include-dir /build/pandas-2.2.0/.mesonpy-lv7as6fy/pandas/_libs '-X always_allow_keywords=true' /build/pandas-2.2.0/pandas/_libs/internals.pyx -o pandas/_libs/internals.cpython-39-x86_64-linux-gnu.so.p/pandas/_libs/internals.pyx.c
python3.9-pandas>   Error compiling Cython file:
python3.9-pandas>   ------------------------------------------------------------
python3.9-pandas>   ...
python3.9-pandas>   from collections import defaultdict
python3.9-pandas>   import weakref
python3.9-pandas>   cimport cython
python3.9-pandas>   from cpython.pyport cimport PY_SSIZE_T_MAX
python3.9-pandas>   ^
python3.9-pandas>   ------------------------------------------------------------
python3.9-pandas>   /build/pandas-2.2.0/pandas/_libs/internals.pyx:5:0: 'cpython/pyport.pxd' not found
python3.9-pandas>   [16/151] Compiling C object pandas/_libs/pandas_parser.cpython-39-x86_64-linux-gnu.so.p/src_parser_io.c.o
python3.9-pandas>   [17/151] Compiling Cython source /build/pandas-2.2.0/pandas/_libs/tslibs/base.pyx
python3.9-pandas>   [18/151] Compiling C object pandas/_libs/pandas_datetime.cpython-39-x86_64-linux-gnu.so.p/src_vendored_numpy_datetime_np_datetime_strings.c.o
python3.9-pandas>   [19/151] Compiling Cython source /build/pandas-2.2.0/pandas/_libs/algos.pyx
python3.9-pandas>   FAILED: pandas/_libs/algos.cpython-39-x86_64-linux-gnu.so.p/pandas/_libs/algos.pyx.c
python3.9-pandas>   cython -M --fast-fail -3 --include-dir /build/pandas-2.2.0/.mesonpy-lv7as6fy/pandas/_libs '-X always_allow_keywords=true' /build/pandas-2.2.0/pandas/_libs/algos.pyx -o pandas/_libs/algos.cpython-39-x86_64-linux-gnu.so.p/pandas/_libs/algos.pyx.c
python3.9-pandas>   Error compiling Cython file:
python3.9-pandas>   ------------------------------------------------------------
python3.9-pandas>   ...
python3.9-pandas>       # each incremental i value can be looked up in the lexsort_indexer
python3.9-pandas>       # array that we sorted previously, which gives us the location of
python3.9-pandas>       # that sorted value for retrieval back from the original
python3.9-pandas>       # values / masked_vals arrays
python3.9-pandas>       # TODO(cython3): de-duplicate once cython supports conditional nogil
python3.9-pandas>       with gil(numeric_object_t is object):
python3.9-pandas>              ^
python3.9-pandas>   ------------------------------------------------------------
python3.9-pandas>   /build/pandas-2.2.0/pandas/_libs/algos.pyx:1147:12: Expected ':', found '('
python3.9-pandas>   [20/151] Compiling Cython source /build/pandas-2.2.0/pandas/_libs/tslibs/ccalendar.pyx
python3.9-pandas>   [21/151] Compiling C object pandas/_libs/tslibs/parsing.cpython-39-x86_64-linux-gnu.so.p/.._src_parser_tokenizer.c.o
python3.9-pandas>   [22/151] Compiling C object pandas/_libs/lib.cpython-39-x86_64-linux-gnu.so.p/src_parser_tokenizer.c.o
python3.9-pandas>   [23/151] Compiling Cython source /build/pandas-2.2.0/pandas/_libs/tslibs/nattype.pyx
python3.9-pandas>   [24/151] Compiling Cython source /build/pandas-2.2.0/pandas/_libs/tslibs/dtypes.pyx
python3.9-pandas>   [25/151] Compiling Cython source /build/pandas-2.2.0/pandas/_libs/arrays.pyx
python3.9-pandas>   [26/151] Compiling Cython source /build/pandas-2.2.0/pandas/_libs/missing.pyx
python3.9-pandas>   [27/151] Compiling Cython source /build/pandas-2.2.0/pandas/_libs/tslibs/np_datetime.pyx
python3.9-pandas>   [28/151] Compiling C object pandas/_libs/pandas_parser.cpython-39-x86_64-linux-gnu.so.p/src_parser_tokenizer.c.o
python3.9-pandas>   [29/151] Compiling Cython source /build/pandas-2.2.0/pandas/_libs/hashing.pyx
python3.9-pandas>   [30/151] Compiling Cython source /build/pandas-2.2.0/pandas/_libs/tslibs/timezones.pyx
python3.9-pandas>   [31/151] Compiling Cython source /build/pandas-2.2.0/pandas/_libs/tslibs/vectorized.pyx
python3.9-pandas>   [32/151] Compiling Cython source /build/pandas-2.2.0/pandas/_libs/tslibs/parsing.pyx
python3.9-pandas>   [33/151] Compiling Cython source /build/pandas-2.2.0/pandas/_libs/tslibs/tzconversion.pyx
python3.9-pandas>   [34/151] Compiling Cython source /build/pandas-2.2.0/pandas/_libs/tslibs/conversion.pyx
python3.9-pandas>   [35/151] Compiling Cython source /build/pandas-2.2.0/pandas/_libs/tslibs/timestamps.pyx
python3.9-pandas>   [36/151] Compiling Cython source /build/pandas-2.2.0/pandas/_libs/tslibs/fields.pyx
python3.9-pandas>   [37/151] Compiling Cython source /build/pandas-2.2.0/pandas/_libs/tslibs/strptime.pyx
python3.9-pandas>   [38/151] Compiling Cython source /build/pandas-2.2.0/pandas/_libs/tslibs/offsets.pyx
python3.9-pandas>   [39/151] Compiling Cython source /build/pandas-2.2.0/pandas/_libs/tslibs/timedeltas.pyx
python3.9-pandas>   [40/151] Compiling Cython source /build/pandas-2.2.0/pandas/_libs/tslibs/period.pyx
python3.9-pandas>   [41/151] Compiling Cython source /build/pandas-2.2.0/pandas/_libs/lib.pyx
python3.9-pandas>   [42/151] Compiling Cython source /build/pandas-2.2.0/pandas/_libs/index.pyx
python3.9-pandas>   [43/151] Compiling Cython source /build/pandas-2.2.0/pandas/_libs/interval.pyx
python3.9-pandas>   [44/151] Compiling Cython source /build/pandas-2.2.0/pandas/_libs/join.pyx
python3.9-pandas>   [45/151] Compiling Cython source /build/pandas-2.2.0/pandas/_libs/hashtable.pyx
python3.9-pandas>   ninja: build stopped: subcommand failed.
python3.9-pandas>   error: subprocess-exited-with-error
python3.9-pandas>   × Preparing metadata (pyproject.toml) did not run successfully.
python3.9-pandas>   │ exit code: 1
python3.9-pandas>   ╰─> See above for output.
python3.9-pandas>   note: This error originates from a subprocess, and is likely not a problem with pip.
python3.9-pandas>   full command: /nix/store/29gs240159d8rb3kyskpy12mmnfvh0sd-python3-3.9.18/bin/python3.9 /nix/store/varikjjnhhb11lxxvdz5bg7zacgni854-python3.9-pip-23.3.1/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py prepare_metadata_for_build_wheel /build/tmpti23o6k6
python3.9-pandas>   cwd: /build/pandas-2.2.0
python3.9-pandas>   Preparing metadata (pyproject.toml) ... error
python3.9-pandas> error: metadata-generation-failed
python3.9-pandas> × Encountered error while generating package metadata.
python3.9-pandas> ╰─> See above for output.
python3.9-pandas> note: This is an issue with the package mentioned above, not pip.
python3.9-pandas> hint: See above for details.
error: builder for '/nix/store/gij87sklxn2455p8lmrmljr063zmy4h9-python3.9-pandas-2.2.0.drv' failed with exit code 1;
       last 10 log lines:
       >   full command: /nix/store/29gs240159d8rb3kyskpy12mmnfvh0sd-python3-3.9.18/bin/python3.9 /nix/store/varikjjnhhb11lxxvdz5bg7zacgni854-python3.9-pip-23.3.1/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py prepare_metadata_for_build_wheel /build/tmpti23o6k6
       >   cwd: /build/pandas-2.2.0
       >   Preparing metadata (pyproject.toml) ... error
       > error: metadata-generation-failed
       >
       > × Encountered error while generating package metadata.
       > ╰─> See above for output.
       >
       > note: This is an issue with the package mentioned above, not pip.
       > hint: See above for details.
       For full logs, run 'nix log /nix/store/gij87sklxn2455p8lmrmljr063zmy4h9-python3.9-pandas-2.2.0.drv'.
error: 1 dependencies of derivation '/nix/store/z5j81dyyj21xgjbgvyl094ymbqc0zdvv-python3-3.9.18-env.drv' failed to build
error: 1 dependencies of derivation '/nix/store/67yy9m9cvnprkg950d3963gzr6lxshaf-nix-shell-env.drv' failed to build
08:01:14
25 Jan 2024
@tyberius_prime:matrix.orgTyberiusPrime (smilodon inopinatus)Does anybody have an example on how to use the poetry2nix overrides in pdm2nix? (Is there a more appropriate channel to ask?). I made it 'compile', but it's not actually using the overrides.12:22:26
@tyberius_prime:matrix.orgTyberiusPrime (smilodon inopinatus)

i've got as far as

 overrides = [
        (builtins.trace poetry2nix.overlays.default poetry2nix.overlays.default)

        (self: super: {
          packaging = super.packaging.overridePythonAttrs (old: {
            buildInputs = old.buildInputs or [] ++ [super.flit-core];
          });
        })
      ];
    in
      lib.composeManyExtensions ([overlay'] ++ overrides);

(though actually the packaging should also be in poetry2nix, if I read build-systems.json correctly).

12:28:52
@angryant:envs.netAngryAnt joined the room.15:30:21
@angryant:envs.netAngryAnt I am having trouble building a Poetry project which has tiktoken as a dependency. I am assuming the issue is related to https://github.com/nix-community/poetry2nix/issues/261 - but I am unsure how to fix it. 17:49:35
@angryant:envs.netAngryAnt Like in that issue, my build is failing at tiktoken with ModuleNotFoundError: No module named 'setuptools_rust' 17:50:18

Show newer messages


Back to Room ListRoom Version: 6