!rWxyQqNqMUDLECdsIf:blad.is

Poetry2nix

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

Load older messages


SenderMessageTime
8 Nov 2023
@adis:blad.isadisbladisAnyway, that's the nixpkgs cmake hook doing it's thing22:19:50
@adis:blad.isadisbladis And you can opt out of it using dontUseCmakeConfigure 22:20:01
@matthewcroughan:defenestrate.itmatthewcroughan

This is my override, and it needs setuptools because:

python3.11-cmake>   File "/nix/store/ffll6glz3gwx342z0ch8wx30p5cnqz1z-python3-3.11.5/lib/python3.11/importlib/__init__.py", line 126, in import_module
python3.11-cmake>     return _bootstrap._gcd_import(name[level:], package, level)
python3.11-cmake>            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
python3.11-cmake>   File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
python3.11-cmake>   File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
python3.11-cmake>   File "<frozen importlib._bootstrap>", line 1126, in _find_and_load_unlocked
python3.11-cmake>   File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
python3.11-cmake>   File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
python3.11-cmake>   File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
python3.11-cmake>   File "<frozen importlib._bootstrap>", line 1140, in _find_and_load_unlocked
python3.11-cmake> ModuleNotFoundError: No module named 'setuptools'
python3.11-cmake> 
python3.11-cmake> 
22:20:13
@adis:blad.isadisbladis Then add setuptools, and also set dontUseCmakeConfigure for triton 22:20:30
@matthewcroughan:defenestrate.itmatthewcroughanBut I can't, because I need to fix cmake first like you said 22:20:47
@matthewcroughan:defenestrate.itmatthewcroughanso cmake after providing setuptools needs skbuild22:20:59
@matthewcroughan:defenestrate.itmatthewcroughan
python3.11-cmake>              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
python3.11-cmake>     File "/nix/store/c2g2jfc4bxk447qh1ddljdw17nwmn4kg-python3.11-setuptools-68.2.2/lib/python3.11/site-packages/setuptools/build_meta.py", line 396, in prepare_metadata_for_build_wheel
python3.11-cmake>       self.run_setup()
python3.11-cmake>     File "/nix/store/c2g2jfc4bxk447qh1ddljdw17nwmn4kg-python3.11-setuptools-68.2.2/lib/python3.11/site-packages/setuptools/build_meta.py", line 341, in run_setup
python3.11-cmake>       exec(code, locals())
python3.11-cmake>     File "<string>", line 8, in <module>
python3.11-cmake>   ModuleNotFoundError: No module named 'skbuild'
22:21:00
@matthewcroughan:defenestrate.itmatthewcroughanso I add it, and then all hell breaks loose :D22:21:13
@matthewcroughan:defenestrate.itmatthewcroughan
python3.11-cmake> Sourcing python-remove-tests-dir-hook
python3.11-cmake> Sourcing python-catch-conflicts-hook.sh
python3.11-cmake> Sourcing python-remove-bin-bytecode-hook.sh
python3.11-cmake> Sourcing pypa-install-hook
python3.11-cmake> Using pypaInstallPhase
python3.11-cmake> Sourcing python-imports-check-hook.sh
python3.11-cmake> Using pythonImportsCheckPhase
python3.11-cmake> Sourcing python-namespaces-hook
python3.11-cmake> Sourcing pip-build-hook
python3.11-cmake> Using pipBuildPhase
python3.11-cmake> Using pipShellHook
python3.11-cmake> unpacking sources
python3.11-cmake> unpacking source archive /nix/store/y8cf0a3qr0wixlccrwaj4si79fhji0bc-cmake-3.27.7.tar.gz
python3.11-cmake> source root is cmake-3.27.7
python3.11-cmake> setting SOURCE_DATE_EPOCH to timestamp 1697280531 of file cmake-3.27.7/src/cmake/_version.py
python3.11-cmake> patching sources
python3.11-cmake> Removing path dependencies
python3.11-cmake> Finished removing path dependencies
python3.11-cmake> Removing git dependencies
python3.11-cmake> Finished removing git dependencies
python3.11-cmake> Removing wheel-url dependencies
python3.11-cmake> Finished removing wheel-url dependencies
python3.11-cmake> updateAutotoolsGnuConfigScriptsPhase
python3.11-cmake> configuring
python3.11-cmake> no configure script, doing nothing
python3.11-cmake> building
python3.11-cmake> Executing pipBuildPhase
python3.11-cmake> Creating a wheel...
python3.11-cmake> 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.11-cmake> Processing /build/cmake-3.27.7
python3.11-cmake>   Running command Preparing metadata (pyproject.toml)
python3.11-cmake>   running dist_info
python3.11-cmake>   creating /build/pip-modern-metadata-kbvcer5n/cmake.egg-info
python3.11-cmake>   writing /build/pip-modern-metadata-kbvcer5n/cmake.egg-info/PKG-INFO
python3.11-cmake>   writing dependency_links to /build/pip-modern-metadata-kbvcer5n/cmake.egg-info/dependency_links.txt
python3.11-cmake>   writing entry points to /build/pip-modern-metadata-kbvcer5n/cmake.egg-info/entry_points.txt
python3.11-cmake>   writing requirements to /build/pip-modern-metadata-kbvcer5n/cmake.egg-info/requires.txt
python3.11-cmake>   writing top-level names to /build/pip-modern-metadata-kbvcer5n/cmake.egg-info/top_level.txt
python3.11-cmake>   writing manifest file '/build/pip-modern-metadata-kbvcer5n/cmake.egg-info/SOURCES.txt'
python3.11-cmake>   reading manifest file '/build/pip-modern-metadata-kbvcer5n/cmake.egg-info/SOURCES.txt'
python3.11-cmake>   reading manifest template 'MANIFEST.in'
python3.11-cmake>   warning: no previously-included files matching '*' found under directory '_skbuild'
python3.11-cmake>   warning: no previously-included files matching '*' found under directory 'CMake-src'
python3.11-cmake>   adding license file 'LICENSE_Apache_20'
python3.11-cmake>   adding license file 'LICENSE_BSD_3'
python3.11-cmake>   adding license file 'AUTHORS.rst'
python3.11-cmake>   writing manifest file '/build/pip-modern-metadata-kbvcer5n/cmake.egg-info/SOURCES.txt'
python3.11-cmake>   creating '/build/pip-modern-metadata-kbvcer5n/cmake-3.27.7.dist-info'
python3.11-cmake>   Preparing metadata (pyproject.toml) ... done
python3.11-cmake> Building wheels for collected packages: cmake
python3.11-cmake>   Running command Building wheel for cmake (pyproject.toml)
python3.11-cmake>   --------------------------------------------------------------------------------
python3.11-cmake>   -- Trying 'Ninja' generator
python3.11-cmake>   --------------------------------
python3.11-cmake>   ---------------------------
python3.11-cmake>   ----------------------
python3.11-cmake>   -----------------
python3.11-cmake>   ------------
python3.11-cmake>   -------
python3.11-cmake>   --
python3.11-cmake>   Not searching for unused variables given on the command line.
python3.11-cmake>   -- The C compiler identification is GNU 12.3.0
python3.11-cmake>   -- Detecting C compiler ABI info
python3.11-cmake>   -- Detecting C compiler ABI info - done
python3.11-cmake>   -- Check for working C compiler: /nix/store/zlzz2z48s7ry0hkl55xiqp5a73b4mzrg-gcc-wrapper-12.3.0/bin/gcc - skipped
python3.11-cmake>   -- Detecting C compile features
python3.11-cmake>   -- Detecting C compile features - done
python3.11-cmake>   -- The CXX compiler identification is GNU 12.3.0
python3.11-cmake>   -- Detecting CXX compiler ABI info
python3.11-cmake>   -- Detecting CXX compiler ABI info - done
python3.11-cmake>   -- Check for working CXX compiler: /nix/store/zlzz2z48s7ry0hkl55xiqp5a73b4mzrg-gcc-wrapper-12.3.0/bin/g++ - skipped
python3.11-cmake>   -- Detecting CXX compile features
python3.11-cmake>   -- Detecting CXX compile features - done
python3.11-cmake>   -- Configuring done (0.3s)
python3.11-cmake>   -- Generating done (0.0s)
python3.11-cmake>   -- Build files have been written to: /build/cmake-3.27.7/_cmake_test_compile/build
python3.11-cmake>   --
python3.11-cmake>   -------
python3.11-cmake>   ------------
python3.11-cmake>   -----------------
python3.11-cmake>   ----------------------
python3.11-cmake>   ---------------------------
python3.11-cmake>   --------------------------------
python3.11-cmake>   -- Trying 'Ninja' generator - success
python3.11-cmake>   --------------------------------------------------------------------------------
python3.11-cmake>   Configuring Project
python3.11-cmake>     Working directory:
python3.11-cmake>       /build/cmake-3.27.7/_skbuild/linux-x86_64-3.11/cmake-build
python3.11-cmake>     Command:
python3.11-cmake>       /nix/store/5h0akwq4cwlc3yp92i84nfgcxpv5xv79-cmake-3.26.4/bin/cmake /build/cmake-3.27.7 -G Ninja --no-warn-unused-cli -DCMAKE_INSTALL_PREFIX:PATH=/build/cmake-3.27.7/_skbuild/linux-x86_64-3.11/cmake-install/src/cmake/data -DPYTHON_VERSION_STRING:STRING=3.11.5 -DSKBUILD:INTERNAL=TRUE -DCMAKE_MODULE_PATH:PATH=/nix/store/6h6a1qsnwy47xbq3qdhpkmfngyzisqx2-python3.11-scikit-build-0.17.6/lib/python3.11/site-packages/skbuild/resources/cmake -DPYTHON_EXECUTABLE:PATH=/nix/store/ffll6glz3gwx342z0ch8wx30p5cnqz1z-python3-3.11.5/bin/python3.11 -DPYTHON_INCLUDE_DIR:PATH=/nix/store/ffll6glz3gwx342z0ch8wx30p5cnqz1z-python3-3.11.5/include/python3.11 -DPYTHON_LIBRARY:PATH=/nix/store/ffll6glz3gwx342z0ch8wx30p5cnqz1z-python3-3.11.5/lib/libpython3.11.so -DPython_EXECUTABLE:PATH=/nix/store/ffll6glz3gwx342z0ch8wx30p5cnqz1z-python3-3.11.5/bin/python3.11 -DPython_ROOT_DIR:PATH=/nix/store/ffll6glz3gwx342z0ch8wx30p5cnqz1z-python3-3.11.5 -DPython_FIND_REGISTRY:STRING=NEVER -DPython_INCLUDE_DIR:PATH=/nix/store/ffll6glz3gwx342z0ch8wx30p5cnqz1z-python3-3.11.5/include/python3.11 -DPython3_EXECUTABLE:PATH=/nix/store/ffll6glz3gwx342z0ch8wx30p5cnqz1z-python3-3.11.5/bin/python3.11 -DPython3_ROOT_DIR:PATH=/nix/store/ffll6glz3gwx342z0ch8wx30p5cnqz1z-python3-3.11.5 -DPython3_FIND_REGISTRY:STRING=NEVER -DPython3_INCLUDE_DIR:PATH=/nix/store/ffll6glz3gwx342z0ch8wx30p5cnqz1z-python3-3.11.5/include/python3.11 '-DCMakeProject_SOURCE_DIR='"'"'/nix/store/sm9lchwn57x9xm9bwh45kpd0826j1r62-cmake'"'"'' -DCMAKE_BUILD_TYPE:STRING=Release -DCMakeProject_SOURCE_DIR=/nix/store/sm9lchwn57x9xm9bwh45kpd0826j1r62-cmake
python3.11-cmake>   Not searching for unused variables given on the command line.
python3.11-cmake>   -- The CXX compiler identification is GNU 12.3.0
python3.11-cmake>   -- Detecting CXX compiler ABI info
python3.11-cmake>   -- Detecting CXX compiler ABI info - done
python3.11-cmake>   -- Check for working CXX compiler: /nix/store/zlzz2z48s7ry0hkl55xiqp5a73b4mzrg-gcc-wrapper-12.3.0/bin/g++ - skipped
python3.11-cmake>   -- Detecting CXX compile features
python3.11-cmake>   -- Detecting CXX compile features - done
python3.11-cmake>   -- ***************************************************
python3.11-cmake>   -- Build CMake from source: ON
python3.11-cmake>   -- ***************************************************
python3.11-cmake>   -- SuperBuild - CMakeProject-src-download
python3.11-cmake>   -- SuperBuild - CMakeProject-src-download - CMakeProject_SOURCE_DIR: /nix/store/sm9lchwn57x9xm9bwh45kpd0826j1r62-cmake
python3.11-cmake>   -- Looking for __GLIBC__
python3.11-cmake>   -- Looking for __GLIBC__ - found
python3.11-cmake>   -- Looking for __GLIBC_MINOR__
python3.11-cmake>   -- Looking for __GLIBC_MINOR__ - found
python3.11-cmake>   CMake Error at CMakeLists.txt:185 (message):
python3.11-cmake>     GLIBC #pragma GCC diagnostic push
python3.11-cmake>     #pragma GCC diagnostic ignored "-Wcast-qual"
python3.11-cmake>     #pragma GCC diagnostic pop
python3.11-cmake>     2.#pragma GCC diagnostic push
python3.11-cmake>     #pragma GCC diagnostic ignored "-Wcast-qual"
python3.11-cmake>     #pragma GCC diagnostic pop
python3.11-cmake>     38 not supported
python3.11-cmake>   -- Configuring incomplete, errors occurred!
python3.11-cmake>   Traceback (most recent call last):
python3.11-cmake>     File "/nix/store/6h6a1qsnwy47xbq3qdhpkmfngyzisqx2-python3.11-scikit-build-0.17.6/lib/python3.11/site-packages/skbuild/setuptools_wrap.py", line 666, in setup
python3.11-cmake>       env = cmkr.configure(
python3.11-cmake>             ^^^^^^^^^^^^^^^
python3.11-cmake>     File "/nix/store/6h6a1qsnwy47xbq3qdhpkmfngyzisqx2-python3.11-scikit-build-0.17.6/lib/python3.11/site-packages/skbuild/cmaker.py", line 357, in configure
python3.11-cmake>       raise SKBuildError(msg)
python3.11-cmake>       =============================DEBUG ASSISTANCE=============================
python3.11-cmake>       If you are seeing a compilation error please try the following steps to
python3.11-cmake>       successfully install cmake:
python3.11-cmake>       1) Upgrade to the latest pip and try again. This will fix errors for most
python3.11-cmake>          users. See: https://pip.pypa.io/en/stable/installing/#upgrading-pip
python3.11-cmake>       2) If on Linux, with glibc < 2.12, you can set PIP_ONLY_BINARY=cmake in
python3.11-cmake>          order to retrieve the last manylinux1 compatible wheel.
python3.11-cmake>       3) If on Linux, with glibc < 2.12, you can cap "cmake<3.23" in your
python3.11-cmake>          requirements in order to retrieve the last manylinux1 compatible wheel.
python3.11-cmake>       4) Open an issue with the debug information that follows at
python3.11-cmake>          https://github.com/scikit-build/cmake-python-distributions/issues
python3.11-cmake>       Python: 3.11.5
python3.11-cmake>       platform: Linux-6.1.51-x86_64-with-glibc2.38
python3.11-cmake>       glibc: glibc 2.38
python3.11-cmake>       machine: x86_64
python3.11-cmake>       bits: 64
python3.11-cmake>       pip: 23.2.1
python3.11-cmake>       setuptools: 68.2.2.post0
python3.11-cmake>       scikit-build: 0.17.6
python3.11-cmake>       PEP517_BUILD_BACKEND=setuptools.build_meta
python3.11-cmake>       =============================DEBUG ASSISTANCE=============================
python3.11-cmake>   An error occurred while configuring with CMake.
python3.11-cmake>     Command:
python3.11-cmake>       /nix/store/5h0akwq4cwlc3yp92i84nfgcxpv5xv79-cmake-3.26.4/bin/cmake /build/cmake-3.27.7 -G Ninja --no-warn-unused-cli -DCMAKE_INSTALL_PREFIX:PATH=/build/cmake-3.27.7/_skbuild/linux-x86_64-3.11/cmake-install/src/cmake/data -DPYTHON_VERSION_STRING:STRING=3.11.5 -DSKBUILD:INTERNAL=TRUE -DCMAKE_MODULE_PATH:PATH=/nix/store/6h6a1qsnwy47xbq3qdhpkmfngyzisqx2-python3.11-scikit-build-0.17.6/lib/python3.11/site-packages/skbuild/resources/cmake -DPYTHON_EXECUTABLE:PATH=/nix/store/ffll6glz3gwx342z0ch8wx30p5cnqz1z-python3-3.11.5/bin/python3.11 -DPYTHON_INCLUDE_DIR:PATH=/nix/store/ffll6glz3gwx342z0ch8wx30p5cnqz1z-python3-3.11.5/include/python3.11 -DPYTHON_LIBRARY:PATH=/nix/store/ffll6glz3gwx342z0ch8wx30p5cnqz1z-python3-3.11.5/lib/libpython3.11.so -DPython_EXECUTABLE:PATH=/nix/store/ffll6glz3gwx342z0ch8wx30p5cnqz1z-python3-3.11.5/bin/python3.11 -DPython_ROOT_DIR:PATH=/nix/store/ffll6glz3gwx342z0ch8wx30p5cnqz1z-python3-3.11.5 -DPython_FIND_REGISTRY:STRING=NEVER -DPython_INCLUDE_DIR:PATH=/nix/store/ffll6glz3gwx342z0ch8wx30p5cnqz1z-python3-3.11.5/include/python3.11 -DPython3_EXECUTABLE:PATH=/nix/store/ffll6glz3gwx342z0ch8wx30p5cnqz1z-python3-3.11.5/bin/python3.11 -DPython3_ROOT_DIR:PATH=/nix/store/ffll6glz3gwx342z0ch8wx30p5cnqz1z-python3-3.11.5 -DPython3_FIND_REGISTRY:STRING=NEVER -DPython3_INCLUDE_DIR:PATH=/nix/store/ffll6glz3gwx342z0ch8wx30p5cnqz1z-python3-3.11.5/include/python3.11 '-DCMakeProject_SOURCE_DIR='"'"'/nix/store/sm9lchwn57x9xm9bwh45kpd0826j1r62-cmake'"'"'' -DCMAKE_BUILD_TYPE:STRING=Release -DCMakeProject_SOURCE_DIR=/nix/store/sm9lchwn57x9xm9bwh45kpd0826j1r62-cmake
python3.11-cmake>     Source directory:
python3.11-cmake>       /build/cmake-3.27.7
python3.11-cmake>     Working directory:
python3.11-cmake>       /build/cmake-3.27.7/_skbuild/linux-x86_64-3.11/cmake-build
python3.11-cmake>   Please see CMake's output for more information.
python3.11-cmake>   error: subprocess-exited-with-error
python3.11-cmake>   × Building wheel for cmake (pyproject.toml) did not run successfully.
python3.11-cmake>   │ exit code: 1
python3.11-cmake>   ╰─> See above for output.
python3.11-cmake>   note: This error originates from a subprocess, and is likely not a problem with pip.
python3.11-cmake>   full command: /nix/store/ffll6glz3gwx342z0ch8wx30p5cnqz1z-python3-3.11.5/bin/python3.11 /nix/store/z41lyyssxy1gza6ngn44q036k213c9gm-python3.11-pip-23.2.1/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py build_wheel /build/tmpnl47umjh
python3.11-cmake>   cwd: /build/cmake-3.27.7
python3.11-cmake>   Building wheel for cmake (pyproject.toml) ... error
python3.11-cmake>   ERROR: Failed building wheel for cmake
python3.11-cmake> Failed to build cmake
python3.11-cmake> ERROR: Failed to build one or more wheels
python3.11-cmake> 
22:21:28
@adis:blad.isadisbladisI think I have a super ugly way to avoid all this pain, because I think cmake isn't actually needed22:21:55
@adis:blad.isadisbladis triton is a wheel, and doesn't require cmake at runtime 22:22:03
@matthewcroughan:defenestrate.itmatthewcroughan cmake = null; 22:22:05
@adis:blad.isadisbladisSo just filter it out22:22:06
@matthewcroughan:defenestrate.itmatthewcroughan * cmake = null; ? 22:22:06
@adis:blad.isadisbladis I'd filter it out from triton but you can also just set it to null and hope for the best 22:22:25
@adis:blad.isadisbladisYolo22:22:35
@matthewcroughan:defenestrate.itmatthewcroughan
path '/home/matthew/git/privateGPT/nix/safetensors/safetensors-0.4.0' does not contain a 'flake.nix', searching up
warning: Git tree '/home/matthew/git/privateGPT' is dirty
error:
       … while calling the 'derivationStrict' builtin

         at /builtin/derivation.nix:9:12: (source not available)

       … while evaluating derivation 'python3-3.11.5-env'
         whose name attribute is located at /nix/store/kcmipm57ph9bpzz8bs80iiijiwbyzwy3-source/pkgs/stdenv/generic/make-derivation.nix:311:7

       … while evaluating attribute 'passAsFile' of derivation 'python3-3.11.5-env'

         at /nix/store/kcmipm57ph9bpzz8bs80iiijiwbyzwy3-source/pkgs/build-support/trivial-builders/default.nix:88:7:

           87|       inherit buildCommand name;
           88|       passAsFile = [ "buildCommand" ]
             |       ^
           89|         ++ (derivationArgs.passAsFile or []);

       … from call site

         at /nix/store/kcmipm57ph9bpzz8bs80iiijiwbyzwy3-source/pkgs/development/interpreters/python/wrapper.nix:20:13:

           19|   env = let
           20|     paths = requiredPythonModules (extraLibs ++ [ python ] ) ;
             |             ^
           21|     pythonPath = "${placeholder "out"}/${python.sitePackages}";

       … while calling 'requiredPythonModules'

         at /nix/store/kcmipm57ph9bpzz8bs80iiijiwbyzwy3-source/pkgs/development/interpreters/python/python-packages-base.nix:57:27:

           56|   # Get list of required Python modules given a list of derivations.
           57|   requiredPythonModules = drvs: let
             |                           ^
           58|     modules = lib.filter hasPythonModule drvs;

       … from call site

         at /nix/store/kcmipm57ph9bpzz8bs80iiijiwbyzwy3-source/pkgs/development/interpreters/python/python-packages-base.nix:59:6:

           58|     modules = lib.filter hasPythonModule drvs;
           59|   in lib.unique ([python] ++ modules ++ lib.concatLists (lib.catAttrs "requiredPythonModules" modules));
             |      ^
           60|

       … while calling 'foldl''

         at /nix/store/kcmipm57ph9bpzz8bs80iiijiwbyzwy3-source/lib/lists.nix:139:5:

          138|     # The list to fold
          139|     list:
             |     ^
          140|

       … from call site

         at /nix/store/kcmipm57ph9bpzz8bs80iiijiwbyzwy3-source/pkgs/development/interpreters/python/with-packages.nix:3:19:

            2|
            3| f: let packages = f pythonPackages; in buildEnv.override { extraLibs = packages; }
             |                   ^
            4|

       … while calling anonymous lambda

         at /nix/store/3mmgnzfgbj4v49apnjai25fd31bwi52a-source/default.nix:366:39:

          365|     in
          366|     poetryPython.python.withPackages (ps: envPkgs ++ (extraPackages ps));
             |                                       ^
          367|

       … from call site

         at /nix/store/3mmgnzfgbj4v49apnjai25fd31bwi52a-source/default.nix:294:23:

          293|       */
          294|       storePackages = requiredPythonModules (builtins.foldl' (acc: v: acc ++ v) [ ] (lib.attrValues inputAttrs));
             |                       ^
          295|     in

       … while calling 'requiredPythonModules'

         at /nix/store/kcmipm57ph9bpzz8bs80iiijiwbyzwy3-source/pkgs/development/interpreters/python/python-packages-base.nix:57:27:

           56|   # Get list of required Python modules given a list of derivations.
           57|   requiredPythonModules = drvs: let
             |                           ^
           58|     modules = lib.filter hasPythonModule drvs;

       … from call site

         at /nix/store/kcmipm57ph9bpzz8bs80iiijiwbyzwy3-source/pkgs/development/interpreters/python/python-packages-base.nix:59:6:

           58|     modules = lib.filter hasPythonModule drvs;
           59|   in lib.unique ([python] ++ modules ++ lib.concatLists (lib.catAttrs "requiredPythonModules" modules));
             |      ^
           60|

       … while calling 'foldl''

         at /nix/store/kcmipm57ph9bpzz8bs80iiijiwbyzwy3-source/lib/lists.nix:139:5:

          138|     # The list to fold
          139|     list:
             |     ^
          140|

       … from call site

         at /nix/store/kcmipm57ph9bpzz8bs80iiijiwbyzwy3-source/pkgs/development/interpreters/python/python-packages-base.nix:74:33:

           73|         pythonPath = [ ]; # Deprecated, for compatibility.
           74|         requiredPythonModules = requiredPythonModules drv.propagatedBuildInputs;
             |                                 ^
           75|       };

       … while calling 'requiredPythonModules'

         at /nix/store/kcmipm57ph9bpzz8bs80iiijiwbyzwy3-source/pkgs/development/interpreters/python/python-packages-base.nix:57:27:

           56|   # Get list of required Python modules given a list of derivations.
           57|   requiredPythonModules = drvs: let
             |                           ^
           58|     modules = lib.filter hasPythonModule drvs;

       … from call site

         at /nix/store/kcmipm57ph9bpzz8bs80iiijiwbyzwy3-source/pkgs/development/interpreters/python/python-packages-base.nix:59:6:

           58|     modules = lib.filter hasPythonModule drvs;
           59|   in lib.unique ([python] ++ modules ++ lib.concatLists (lib.catAttrs "requiredPythonModules" modules));
             |      ^
           60|

       … while calling 'foldl''

         at /nix/store/kcmipm57ph9bpzz8bs80iiijiwbyzwy3-source/lib/lists.nix:139:5:

          138|     # The list to fold
          139|     list:
             |     ^
          140|

       … from call site

         at /nix/store/kcmipm57ph9bpzz8bs80iiijiwbyzwy3-source/pkgs/development/interpreters/python/python-packages-base.nix:74:33:

           73|         pythonPath = [ ]; # Deprecated, for compatibility.
           74|         requiredPythonModules = requiredPythonModules drv.propagatedBuildInputs;
             |                                 ^
           75|       };

       … while calling 'requiredPythonModules'

         at /nix/store/kcmipm57ph9bpzz8bs80iiijiwbyzwy3-source/pkgs/development/interpreters/python/python-packages-base.nix:57:27:

           56|   # Get list of required Python modules given a list of derivations.
           57|   requiredPythonModules = drvs: let
             |                           ^
           58|     modules = lib.filter hasPythonModule drvs;

       … from call site

         at /nix/store/kcmipm57ph9bpzz8bs80iiijiwbyzwy3-source/pkgs/development/interpreters/python/python-packages-base.nix:59:6:

           58|     modules = lib.filter hasPythonModule drvs;
           59|   in lib.unique ([python] ++ modules ++ lib.concatLists (lib.catAttrs "requiredPythonModules" modules));
             |      ^
           60|

       … while calling 'foldl''

         at /nix/store/kcmipm57ph9bpzz8bs80iiijiwbyzwy3-source/lib/lists.nix:139:5:

          138|     # The list to fold
          139|     list:
             |     ^
          140|

       … from call site

         at /nix/store/kcmipm57ph9bpzz8bs80iiijiwbyzwy3-source/pkgs/development/interpreters/python/python-packages-base.nix:74:33:

           73|         pythonPath = [ ]; # Deprecated, for compatibility.
           74|         requiredPythonModules = requiredPythonModules drv.propagatedBuildInputs;
             |                                 ^
           75|       };

       … while calling 'requiredPythonModules'

         at /nix/store/kcmipm57ph9bpzz8bs80iiijiwbyzwy3-source/pkgs/development/interpreters/python/python-packages-base.nix:57:27:

           56|   # Get list of required Python modules given a list of derivations.
           57|   requiredPythonModules = drvs: let
             |                           ^
           58|     modules = lib.filter hasPythonModule drvs;

       … from call site

         at /nix/store/kcmipm57ph9bpzz8bs80iiijiwbyzwy3-source/pkgs/development/interpreters/python/python-packages-base.nix:59:6:

           58|     modules = lib.filter hasPythonModule drvs;
           59|   in lib.unique ([python] ++ modules ++ lib.concatLists (lib.catAttrs "requiredPythonModules" modules));
             |      ^
           60|

       … while calling 'foldl''

         at /nix/store/kcmipm57ph9bpzz8bs80iiijiwbyzwy3-source/lib/lists.nix:139:5:

          138|     # The list to fold
          139|     list:
             |     ^
          140|

       … while calling 'chooseDevOutputs'

         at /nix/store/kcmipm57ph9bpzz8bs80iiijiwbyzwy3-source/lib/attrsets.nix:1025:5:

         1024|     # List of packages to pick `dev` outputs from
         1025|     drvs:
             |     ^
         1026|     builtins.map getDev drvs;

       … from call site

         at /nix/store/kcmipm57ph9bpzz8bs80iiijiwbyzwy3-source/pkgs/stdenv/generic/make-derivation.nix:271:52:

          270|       (map (drv: drv.__spliced.hostHost or drv) (checkDependencyList "depsHostHostPropagated" depsHostHostPropagated))
          271|       (map (drv: drv.__spliced.hostTarget or drv) (checkDependencyList "propagatedBuildInputs" propagatedBuildInputs))
             |                                                    ^
          272|     ]

       … while calling 'checkDependencyList''

         at /nix/store/kcmipm57ph9bpzz8bs80iiijiwbyzwy3-source/pkgs/stdenv/generic/make-derivation.nix:224:43:

          223|   checkDependencyList = checkDependencyList' [];
          224|   checkDependencyList' = positions: name: deps: lib.flip lib.imap1 deps (index: dep:
             |                                           ^
          225|     if lib.isDerivation dep || dep == null || builtins.isString dep || builtins.isPath dep then dep

       … from call site

         at /nix/store/kcmipm57ph9bpzz8bs80iiijiwbyzwy3-source/pkgs/stdenv/generic/make-derivation.nix:224:49:

          223|   checkDependencyList = checkDependencyList' [];
          224|   checkDependencyList' = positions: name: deps: lib.flip lib.imap1 deps (index: dep:
             |                                                 ^
          225|     if lib.isDerivation dep || dep == null || builtins.isString dep || builtins.isPath dep then dep

       … while calling 'flip'

         at /nix/store/kcmipm57ph9bpzz8bs80iiijiwbyzwy3-source/lib/trivial.nix:138:16:

          137|   */
          138|   flip = f: a: b: f b a;
             |                ^
          139|

       … from call site

         at /nix/store/kcmipm57ph9bpzz8bs80iiijiwbyzwy3-source/lib/trivial.nix:138:19:

          137|   */
          138|   flip = f: a: b: f b a;
             |                   ^
          139|

       … while calling 'imap1'

         at /nix/store/kcmipm57ph9bpzz8bs80iiijiwbyzwy3-source/lib/lists.nix:165:14:

          164|   */
          165|   imap1 = f: list: genList (n: f (n + 1) (elemAt list n)) (length list);
             |              ^
          166|

       … from call site

         at /nix/store/kcmipm57ph9bpzz8bs80iiijiwbyzwy3-source/pkgs/development/interpreters/python/mk-python-derivation.nix:254:29:

          253|
          254|     propagatedBuildInputs = validatePythonMatches "propagatedBuildInputs" (propagatedBuildInputs ++ [
             |                             ^
          255|       # we propagate python even for packages transformed with 'toPythonApplication'

       … while calling anonymous lambda

         at /nix/store/kcmipm57ph9bpzz8bs80iiijiwbyzwy3-source/pkgs/development/interpreters/python/mk-python-derivation.nix:178:8:

          177|
          178|     in inputs: builtins.map (checkDrv) inputs;
             |        ^
          179|

       … while calling anonymous lambda

         at /nix/store/3mmgnzfgbj4v49apnjai25fd31bwi52a-source/overrides/default.nix:3189:50:

         3188|       triton = super.triton.overridePythonAttrs (old: {
         3189|         propagatedBuildInputs = builtins.filter (e: e.pname != "torch") old.propagatedBuildInputs;
             |                                                  ^
         3190|         pipInstallFlags = [ "--no-deps" ];

       error: value is null while a set was expected
22:22:43
@matthewcroughan:defenestrate.itmatthewcroughan here's the trace from when I set cmake to null which at least tells us why it's there 22:22:55
@matthewcroughan:defenestrate.itmatthewcroughanlol22:23:33
@matthewcroughan:defenestrate.itmatthewcroughanas you said, more or less 22:23:41
@adis:blad.isadisbladisYeah, just move the filtering to triton22:23:56
@adis:blad.isadisbladisIt's funny that they don't even publish sdists but still have cmake listed :P22:24:16
@matthewcroughan:defenestrate.itmatthewcroughanah, apparently I do need cmake for another reason 22:25:43
@matthewcroughan:defenestrate.itmatthewcroughanoh nvm, I just am too dumb to know what you mean by filtering it 22:26:12
@adis:blad.isadisbladis propagatedBuildInputs = builtins.filter (e: e.pname != "cmake") old.propagatedBuildInputs; 22:26:45
@matthewcroughan:defenestrate.itmatthewcroughanyeah that's what I did22:27:10
@matthewcroughan:defenestrate.itmatthewcroughanguess it's not in propagated, native maybe 22:27:14
@matthewcroughan:defenestrate.itmatthewcroughanhttps://github.com/NixOS/nixpkgs/blob/nixos-23.05/pkgs/development/python-modules/openai-triton/default.nix#L15022:28:49
@matthewcroughan:defenestrate.itmatthewcroughanopenai-triton won't be being used by the overlay though, since of the naming mismatch 22:29:07
@matthewcroughan:defenestrate.itmatthewcroughaneven though I think this is the correct one 22:29:14

Show newer messages


Back to Room ListRoom Version: 6