Skip to content

pixi shell not activated due to read-only variable #1503

Closed

Description

@amirhosseindavoody

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

pixi self-update
pixi shell

Issue description

I am using zsh on linux Suse 4.12.

I was working fine with pixi 0.23 version. After updating to 0.24.1 version when I activate the pixi shell I get the following message and the python environment does not get activated.

image

The read-only variable in the pixi generated shell script is this:

export _="/nfs/site/home/adavoody/.pixi/bin/pixi"

Expected behavior

The python should point to the python version in the working directory.

Activity

  1. added
    bug
    on Jun 12, 2024
  2. ruben-arts commented on Jun 13, 2024

    @ruben-arts
    Contributor

    I found the issue: https://github.com/prefix-dev/pixi/pull/1395/files#diff-f84977a6e7fdf8147b0d4b75f15a45112eff4507146389b1fb84e4647e0489c8R236

    Here I add the full env vars set to the activation script. Which is not what you want in an already activated shell.

    Looking for a fix.

  3. added a commit that references this issue on Jun 14, 2024
    c6b4280
  4. amirhosseindavoody commented on Jun 14, 2024

    @amirhosseindavoody
    Author

    @ruben-arts Thanks for closing this quickly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions