-
Notifications
You must be signed in to change notification settings - Fork 178
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
Tasks not found when switching from osx-arm64
to osx-64
#1404
Comments
if i understand correctly, you are switching the value of the Instead, you should have all platforms listed that you expect the project to work on. There was a short discussion on discord that also explains this a bit. So, after you initialize your project successfully and the task you add works, try running:
instead of replacing the platform in the project. your platform field should be [tool.pixi.project]
channels = ["conda-forge"]
platforms = [ "osx-arm64", "osx-64"]
Then pixi should solve the environment for all platforms (even the platform thats not your computer)
|
@jjjermiah you are correct, however this will not work because of the case @ekiefl describes where he can not install for osx-arm64 because the packages are not available for it. We've got some code to get the "best" platform which is why you can install We should use the following function in more places! pixi/src/project/environment.rs Lines 105 to 144 in 2337654
|
Hey, just popping in to say thank you for your responsiveness in fixing this issue. I updated our pixi version and no more troubles with osx-arm64 architectures :) |
Awesome :) |
Checks
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of pixi, using
pixi --version
.Reproducible example
Now go into
pyproject.toml
and replaceosx-arm64
withosx-64
.▶▶ pixi r hello WARN pixi::project::environment: osx-arm64 (Apple Silicon) is not supported by the pixi.toml, falling back to osx-64 (emulated with Rosetta) hello: command not found
Issue description
On macOS, I have dependencies that don't have support for osx-arm64, which is what pixi determines my platform to be. So I have to manually fallback to osx-64. This poses no problems for installing pixi environments, however tasks are not recognized or run.
Expected behavior
After switching "osx-arm64" to "osx-64" in the pyproject, i.e.
I expect the task to be recognized and run:
The text was updated successfully, but these errors were encountered: