kompute icon indicating copy to clipboard operation
kompute copied to clipboard

Install via pip fails on pybind11 with cmake 4.0

Open asoderq opened this issue 3 months ago • 5 comments

Hi,

Just some feedback on installing via pip.

  1. I suggest installing it via https i.e.
pip install git+https://github.com/KomputeProject/kompute.git@master
  1. builtin pybind11 version doesn't compile with cmake 4.0
 CMake Error at build/temp.linux-x86_64-cpython-313/_deps/pybind-src/CMakeLists.txt:8 (cmake_minimum_required):
        Compatibility with CMake < 3.5 has been removed from CMake.

Btw I am using cachyos, what works is:

pacman -Sy pybind11
KOMPUTE_OPT_USE_BUILT_IN_PYBIND11=OFF pip install git+https://github.com/KomputeProject/kompute.git@master

This way the installation succeed, I have yet to actually test it though.

asoderq avatar Aug 27 '25 18:08 asoderq

Can you share the version of pybind frmo your local system?

axsaucedo avatar Aug 27 '25 19:08 axsaucedo

OK I got the example from the readme working with some modifications (I can PR those changes if you want?)

This is the pybind11 I installed:

 pacman -Qs pybind11
local/pybind11 3.0.1-1
    A lightweight header-only library that exposes C++ types in Python and vice versa

Maybe you can update to that?

asoderq avatar Aug 27 '25 19:08 asoderq

Here is the modified python example that I got working: https://gist.github.com/asoderq/040e8948ab68dadf76e44f56cac9b880

asoderq avatar Aug 28 '25 17:08 asoderq

Strange - yes let's update this, also we can test on the CI. Could you update this on the CMAKE on a PR? Otherwise let me know and I can kick it off

axsaucedo avatar Sep 21 '25 09:09 axsaucedo

Just adding that I get precisely the same failure on a Mac Mini M4, Sequoia 15.6.1. I don't know of a workaround.

steveincolo avatar Dec 11 '25 21:12 steveincolo