pixi icon indicating copy to clipboard operation
pixi copied to clipboard

Nanobind example doesnt work for different python version than 3.12.* on windows

Open tdejager opened this issue 11 months ago • 2 comments

When running the pixi-build-workspace example we now explicitly use 3.12.* for python. Changing this to any other python version breaks the installation of the package with:

 CMake Error at %BUILD_PREFIX%/Library/share/cmake-3.31/Modules/FindPackageHandleStandardArgs.cmake:233 (message):
 │ │   Could NOT find Python (missing: Development Development.Module
 │ │   Development.Embed) (found suitable version "3.13.1", minimum required is
 │ │   "3.8")

tdejager avatar Jan 17 '25 15:01 tdejager

It doesn't work on linux either. I get:

Error: 
  × failed to extract metadata for 'python_bindings'
  ├─▶ failed to communicate with the build backend (pixi-build-cmake)
  ├─▶ ErrorObject { code: InvalidParams, message: "Invalid params: unknown variant
  │   `0.1.0`, expected `1`.", data: None }
  ╰─▶ ErrorObject { code: InvalidParams, message: "Invalid params: unknown variant
      `0.1.0`, expected `1`.", data: None }

jc211 avatar Jan 17 '25 23:01 jc211

That looks like this problem @jc211 - solution in the comments: https://github.com/prefix-dev/pixi/issues/2942

wolfv avatar Jan 17 '25 23:01 wolfv

I can no longer reproduce this either on Windows or on Linux (WSL). I assume this was fixed upstream. Closing.

baszalmstra avatar Aug 18 '25 21:08 baszalmstra