Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to build wheel on pypi package #2494

Open
ferreirajoaouerj opened this issue Nov 16, 2024 · 2 comments
Open

Failed to build wheel on pypi package #2494

ferreirajoaouerj opened this issue Nov 16, 2024 · 2 comments

Comments

@ferreirajoaouerj
Copy link

Thank you for this amazing project. I'm starting to port my previous setup of pip + conda to Pixi and it was all doing well until a certain point. Here is my minimal pyproject.toml:

[project]
name = "X"
requires-python = ">= 3.12"

[build-system]
build-backend = "hatchling.build"
requires = ["hatchling"]

[tool.pixi.project]
channels = ["conda-forge"]
platforms = ["win-64", "linux-64", "osx-64"]

[tool.pixi.dependencies]
loguru = ">=0.7.2,<0.8"

[tool.pixi.pypi-dependencies]
geojsoncontour = ">=0.4.0, <0.5"

When I do pixi install I get the following:

pixi install
  x failed to solve the pypi requirements of 'default' 'linux-64'
  `-> Build backend failed to build wheel through `build_wheel` (exit code: 1)
      
      [stdout]
      + meson setup C:\Users\X\AppData\Local\rattler\cache\uv-cache\sdists-v5\pypi\contourpy\1.3.1\4Y4gtR_O1PVnb0chEkUYJ\contourpy-1.3.1.tar.gz C:\Users\X\AppData\Local\rattler\cache\uv-cache\sdists-v5\pypi\contourpy\1.3.1\4Y4gtR_O1PVnb0chEkUYJ\contourpy-1.3.1.tar.gz\.mesonpy-em9d44k7
      -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --vsenv --native-file=C:\Users\X\AppData\Local\rattler\cache\uv-cache\sdists-v5\pypi\contourpy\1.3.1\4Y4gtR_O1PVnb0chEkUYJ\contourpy-1.3.1.tar.gz\.mesonpy-em9d44k7\meson-python-native-file.ini
      The Meson build system
      Version: 1.6.0
      Source dir: C:\Users\X\AppData\Local\rattler\cache\uv-cache\sdists-v5\pypi\contourpy\1.3.1\4Y4gtR_O1PVnb0chEkUYJ\contourpy-1.3.1.tar.gz
      Build dir: C:\Users\X\AppData\Local\rattler\cache\uv-cache\sdists-v5\pypi\contourpy\1.3.1\4Y4gtR_O1PVnb0chEkUYJ\contourpy-1.3.1.tar.gz\.mesonpy-em9d44k7
      Build type: native build
      Project name: contourpy
      Project version: 1.3.1
      
      ..\meson.build:1:0: ERROR: Could not find C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe

      A full log can be found at C:\Users\X\AppData\Local\rattler\cache\uv-cache\sdists-v5\pypi\contourpy\1.3.1\4Y4gtR_O1PVnb0chEkUYJ\contourpy-1.3.1.tar.gz\.mesonpy-em9d44k7\meson-logs\meson-log.txt

The weird thing is that if I keep either one of the packages loguru or geojsoncontour the install succeeds. Keeping both packages produces the error shown above.

@tdejager
Copy link
Contributor

Seems like it's trying to build contourpy from source, which is probably unwanted this can be caused by a constraint introduced by the conda version of loguru.

Would need to dive in to know more :)

@tdejager
Copy link
Contributor

Scratch that, I think it's a pixi bug, should be fixed in the next release :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants