You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Run pixi install which runs successfully and then pixi run --verbose lint which fails with:
INFO pixi::environment: verifying prefix location is unchanged, with prefix file: /home/shofmann/Projects/test/.pixi/envs/default/conda-meta/pixi_env_prefix
INFO pixi::lock_file::update: the lock-file is up-to-date
INFO pixi::cli::run: Task graph: TaskGraph: number of nodes: 1, nodes: task: lint, environment: default, command: `ruff check .`, additional arguments: ``, depends-on: ``
✨ Pixi task (lint): ruff check .
INFO pixi::task::executable_task: Checking if task can be skipped
INFO pixi::environment: Creating prefix file at: /home/shofmann/Projects/test/.pixi/envs/default/conda-meta/pixi_env_prefix
INFO pixi::environment: No update needed for the prefix file.
INFO pixi::environment: Checking if history file exists: /home/shofmann/Projects/test/.pixi/envs/default/conda-meta/history
INFO pixi::lock_file::resolve::uv_resolution_context: uv keyring provider is disabled
INFO pixi::install_pypi: Nothing to do - Audited 1 distribution in 14ms
× The current system has a mismatching virtual package. The project requires '__glibc' to be at least version '2.28' but the system has version '2.27'
Issue description
I am on Ubuntu 18.04.6 with glibc 2.27 (ldd (Ubuntu GLIBC 2.27-3ubuntu1.6) 2.27) when I pixi install it finishes successfully, creates a lockfile and the environment with no complaints. However, when I try to run a task e.g. pixi run lint it fails with
× The current system has a mismatching virtual package. The project requires '__glibc' to be at least version '2.28' but the system has version '2.27'
I am also running with direnv so the env is automatically activated and I can run python ruff check without any problems, which is why I think the installation is working just fine
Adding
[tool.pixi.system-requirements]
libc = {family = "glibc", version = "2.27"}
to my pyproject.toml fixes the issue but I still find the behaviour confusing. Why is running a task trying to resolve the environment again? Even adding the --frozen flag when running the task doesn't change the behaviour. Also shouldn't this "issue" (it doesn't seem to be a real problem) be raise before? The error message is also not clear about which package is creating this issue.
Expected behavior
Dont resolve the system requirements again when running a task
Either fail when generating the lockfile the first time or don't fail at all since there doesn't seem to be an issue.
The text was updated successfully, but these errors were encountered:
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
On Ubuntu 18.04.6 with glibc 2.27 with
Run
pixi install
which runs successfully and thenpixi run --verbose lint
which fails with:Issue description
I am on Ubuntu 18.04.6 with glibc 2.27 (ldd (Ubuntu GLIBC 2.27-3ubuntu1.6) 2.27) when I
pixi install
it finishes successfully, creates a lockfile and the environment with no complaints. However, when I try to run a task e.g.pixi run lint
it fails withI am also running with direnv so the env is automatically activated and I can run
python ruff check
without any problems, which is why I think the installation is working just fineAdding
to my pyproject.toml fixes the issue but I still find the behaviour confusing. Why is running a task trying to resolve the environment again? Even adding the
--frozen
flag when running the task doesn't change the behaviour. Also shouldn't this "issue" (it doesn't seem to be a real problem) be raise before? The error message is also not clear about which package is creating this issue.Expected behavior
The text was updated successfully, but these errors were encountered: