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

Prompts for activating an environment and running commands in an environment show up after running mamba env remove #3712

Open
3 tasks done
chrisjonesBSU opened this issue Dec 26, 2024 · 0 comments · May be fixed by #3715
Open
3 tasks done
Assignees
Labels
type::bug Something isn't working

Comments

@chrisjonesBSU
Copy link

Troubleshooting docs

  • My problem is not solved in the Troubleshooting docs

Anaconda default channels

  • I do NOT use the Anaconda default channels (pkgs/* etc.)

How did you install Mamba?

Mambaforge or latest Miniforge

Search tried in issue tracker

remove

Latest version of Mamba

  • My problem is not solved with the latest version

Tried in Conda?

I do not have this problem with Conda, just with Mamba

Describe your issue

Minor bug, but after removing an environment with mamba env remove -n name -y I get prompts for 1) activating the environment and 2) running commands with the environment.

Obviously, these aren't necessary, and don't work if you tried to run them since the environment was just removed.

The logs below show both creating a test environment then removing it afterwards.

mamba info / micromamba info

(base) ~ » mamba info

       libmamba version : 2.0.5
          mamba version : 2.0.5
           curl version : libcurl/8.11.1 OpenSSL/3.4.0 zlib/1.3.1 zstd/1.5.6 libssh2/1.11.1 nghttp2/1.64.0
     libarchive version : libarchive 3.7.7 zlib/1.3.1 liblzma/5.6.3 bz2lib/1.0.8 liblz4/1.10.0 libzstd/1.5.6
       envs directories : /home/chris/mambaforge/envs
          package cache : /home/chris/mambaforge/pkgs
                          /home/chris/.mamba/pkgs
            environment : base (active)
           env location : /home/chris/mambaforge
      user config files : /home/chris/.mambarc
 populated config files : /home/chris/mambaforge/.condarc
       virtual packages : __unix=0=0
                          __linux=6.12.6=0
                          __glibc=2.40=0
                          __archspec=1=x86_64_v3
               channels : https://conda.anaconda.org/conda-forge/linux-64
                          https://conda.anaconda.org/conda-forge/noarch
       base environment : /home/chris/mambaforge
               platform : linux-64

Logs

(base) ~ » mamba create -n test python=3.12 -y
conda-forge/linux-64                                        Using cache
conda-forge/noarch                                          Using cache


Transaction

  Prefix: /home/chris/mambaforge/envs/test

  Updating specs:

   - python=3.12


  Package                Version  Build               Channel           Size
──────────────────────────────────────────────────────────────────────────────
  Install:
──────────────────────────────────────────────────────────────────────────────

  + _libgcc_mutex            0.1  conda_forge         conda-forge     Cached
  + _openmp_mutex            4.5  2_gnu               conda-forge     Cached
  + bzip2                  1.0.8  h4bc722e_7          conda-forge     Cached
  + ca-certificates   2024.12.14  hbcca054_0          conda-forge     Cached
  + ld_impl_linux-64        2.43  h712a8e2_2          conda-forge     Cached
  + libexpat               2.6.4  h5888daf_0          conda-forge     Cached
  + libffi                 3.4.2  h7f98852_5          conda-forge     Cached
  + libgcc                14.2.0  h77fa898_1          conda-forge     Cached
  + libgcc-ng             14.2.0  h69a702a_1          conda-forge     Cached
  + libgomp               14.2.0  h77fa898_1          conda-forge     Cached
  + liblzma                5.6.3  hb9d3cd8_1          conda-forge     Cached
  + libnsl                 2.0.1  hd590300_0          conda-forge     Cached
  + libsqlite             3.47.2  hee588c1_0          conda-forge     Cached
  + libuuid               2.38.1  h0b41bf4_0          conda-forge     Cached
  + libxcrypt             4.4.36  hd590300_1          conda-forge     Cached
  + libzlib                1.3.1  hb9d3cd8_2          conda-forge     Cached
  + ncurses                  6.5  he02047a_1          conda-forge     Cached
  + openssl                3.4.0  hb9d3cd8_0          conda-forge     Cached
  + pip                   24.3.1  pyh8b19718_2        conda-forge     Cached
  + python                3.12.8  h9e4cc4f_1_cpython  conda-forge     Cached
  + readline                 8.2  h8228510_1          conda-forge     Cached
  + setuptools            75.6.0  pyhff2d567_1        conda-forge     Cached
  + tk                    8.6.13  noxft_h4845f30_101  conda-forge     Cached
  + tzdata                 2024b  hc8b5060_0          conda-forge     Cached
  + wheel                 0.45.1  pyhd8ed1ab_1        conda-forge     Cached

  Summary:

  Install: 25 packages

  Total download: 0 B

──────────────────────────────────────────────────────────────────────────────



Transaction starting
Linking _libgcc_mutex-0.1-conda_forge
Linking ld_impl_linux-64-2.43-h712a8e2_2
Linking ca-certificates-2024.12.14-hbcca054_0
Linking libgomp-14.2.0-h77fa898_1
Linking _openmp_mutex-4.5-2_gnu
Linking libgcc-14.2.0-h77fa898_1
Linking libzlib-1.3.1-hb9d3cd8_2
Linking liblzma-5.6.3-hb9d3cd8_1
Linking libgcc-ng-14.2.0-h69a702a_1
Linking openssl-3.4.0-hb9d3cd8_0
Linking libexpat-2.6.4-h5888daf_0
Linking libsqlite-3.47.2-hee588c1_0
Linking libffi-3.4.2-h7f98852_5
Linking tk-8.6.13-noxft_h4845f30_101
Linking libxcrypt-4.4.36-hd590300_1
Linking bzip2-1.0.8-h4bc722e_7
Linking ncurses-6.5-he02047a_1
Linking libuuid-2.38.1-h0b41bf4_0
Linking libnsl-2.0.1-hd590300_0
Linking readline-8.2-h8228510_1
Linking tzdata-2024b-hc8b5060_0
Linking python-3.12.8-h9e4cc4f_1_cpython
Linking wheel-0.45.1-pyhd8ed1ab_1
Linking setuptools-75.6.0-pyhff2d567_1
Linking pip-24.3.1-pyh8b19718_2

Transaction finished

To activate this environment, use:

    mamba activate test

Or to execute a single command in this environment, use:

    mamba run -n test mycommand

(base) ~ » mamba env remove -n test -y
Transaction

  Prefix: /home/chris/mambaforge/envs/test

  Removing specs:

   - _libgcc_mutex
   - _openmp_mutex
   - bzip2
   - ca-certificates
   - ld_impl_linux-64
   - libexpat
   - libffi
   - libgcc
   - libgcc-ng
   - libgomp
   - liblzma
   - libnsl
   - libsqlite
   - libuuid
   - libxcrypt
   - libzlib
   - ncurses
   - openssl
   - pip
   - python
   - readline
   - setuptools
   - tk
   - tzdata
   - wheel


  Package                Version  Build               Channel           Size
──────────────────────────────────────────────────────────────────────────────
  Remove:
──────────────────────────────────────────────────────────────────────────────

  - _libgcc_mutex            0.1  conda_forge         conda-forge     Cached
  - _openmp_mutex            4.5  2_gnu               conda-forge     Cached
  - bzip2                  1.0.8  h4bc722e_7          conda-forge     Cached
  - ca-certificates   2024.12.14  hbcca054_0          conda-forge     Cached
  - ld_impl_linux-64        2.43  h712a8e2_2          conda-forge     Cached
  - libexpat               2.6.4  h5888daf_0          conda-forge     Cached
  - libffi                 3.4.2  h7f98852_5          conda-forge     Cached
  - libgcc                14.2.0  h77fa898_1          conda-forge     Cached
  - libgcc-ng             14.2.0  h69a702a_1          conda-forge     Cached
  - libgomp               14.2.0  h77fa898_1          conda-forge     Cached
  - liblzma                5.6.3  hb9d3cd8_1          conda-forge     Cached
  - libnsl                 2.0.1  hd590300_0          conda-forge     Cached
  - libsqlite             3.47.2  hee588c1_0          conda-forge     Cached
  - libuuid               2.38.1  h0b41bf4_0          conda-forge     Cached
  - libxcrypt             4.4.36  hd590300_1          conda-forge     Cached
  - libzlib                1.3.1  hb9d3cd8_2          conda-forge     Cached
  - ncurses                  6.5  he02047a_1          conda-forge     Cached
  - openssl                3.4.0  hb9d3cd8_0          conda-forge     Cached
  - pip                   24.3.1  pyh8b19718_2        conda-forge     Cached
  - python                3.12.8  h9e4cc4f_1_cpython  conda-forge     Cached
  - readline                 8.2  h8228510_1          conda-forge     Cached
  - setuptools            75.6.0  pyhff2d567_1        conda-forge     Cached
  - tk                    8.6.13  noxft_h4845f30_101  conda-forge     Cached
  - tzdata                 2024b  hc8b5060_0          conda-forge     Cached
  - wheel                 0.45.1  pyhd8ed1ab_1        conda-forge     Cached

  Summary:

  Remove: 25 packages

  Total download: 0 B

──────────────────────────────────────────────────────────────────────────────



Transaction starting
Unlinking pip-24.3.1-pyh8b19718_2
Unlinking wheel-0.45.1-pyhd8ed1ab_1
Unlinking setuptools-75.6.0-pyhff2d567_1
Unlinking python-3.12.8-h9e4cc4f_1_cpython
Unlinking tzdata-2024b-hc8b5060_0
Unlinking tk-8.6.13-noxft_h4845f30_101
Unlinking readline-8.2-h8228510_1
Unlinking openssl-3.4.0-hb9d3cd8_0
Unlinking libxcrypt-4.4.36-hd590300_1
Unlinking libuuid-2.38.1-h0b41bf4_0
Unlinking libsqlite-3.47.2-hee588c1_0
Unlinking libnsl-2.0.1-hd590300_0
Unlinking liblzma-5.6.3-hb9d3cd8_1
Unlinking libffi-3.4.2-h7f98852_5
Unlinking libexpat-2.6.4-h5888daf_0
Unlinking ld_impl_linux-64-2.43-h712a8e2_2
Unlinking bzip2-1.0.8-h4bc722e_7
Unlinking ncurses-6.5-he02047a_1
Unlinking ca-certificates-2024.12.14-hbcca054_0
Unlinking libzlib-1.3.1-hb9d3cd8_2
Unlinking libgcc-ng-14.2.0-h69a702a_1
Unlinking libgcc-14.2.0-h77fa898_1
Unlinking _openmp_mutex-4.5-2_gnu
Unlinking libgomp-14.2.0-h77fa898_1
Unlinking _libgcc_mutex-0.1-conda_forge

Transaction finished

To activate this environment, use:

    mamba activate test

Or to execute a single command in this environment, use:

    mamba run -n test mycommand

Environment removed at prefix: /home/chris/mambaforge/envs/test
(base) ~ »

environment.yml

No response

~/.condarc

No response

@Hind-M Hind-M added the type::bug Something isn't working label Dec 27, 2024
@Hind-M Hind-M self-assigned this Dec 27, 2024
@Hind-M Hind-M linked a pull request Dec 30, 2024 that will close this issue
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type::bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants