Skip to content

Improve message when solving with incompatible environment/architecture combinations #3821

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

Open
kratsg opened this issue May 22, 2025 · 1 comment
Labels
enhancement Feature request

Comments

@kratsg
Copy link

kratsg commented May 22, 2025

Problem description

In the case one defines this toml

[workspace]
authors = ["Giordon Stark <[email protected]>"]
channels = ["conda-forge"]
name = "debug"
platforms = ["osx-arm64", "linux-64"]
version = "0.1.0"

[tasks]

[dependencies]

and then runs something like

$ pixi add mod_wsgi
Error:   × failed to solve the conda requirements of 'default' 'osx-arm64'
  ╰─▶ Cannot solve the request because of: No candidates were found for mod_wsgi *.

This error message is a bit confusing for newcomers as one thinks of default and osx-arm64 on equal footing -- when in actuality one is an environment and one is a platform. A clearer error message might be more like

Error:   × failed to solve the conda requirements of environment 'default' for platform 'osx-arm64'

which at least clarifies the roles for each of those strings.

@kratsg kratsg added the enhancement Feature request label May 22, 2025
Copy link
Contributor

Good idea! Would you be able to contribute this change?

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

No branches or pull requests

2 participants