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

"To activate this environment" emit following mamba env remove command #3810

Closed
3 tasks done
ometa-evan opened this issue Feb 6, 2025 · 1 comment
Closed
3 tasks done

Comments

@ometa-evan
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

Yes

Latest version of Mamba

  • My problem is not solved with the latest version

Tried in Conda?

I didn't try

Describe your issue

I am receiving a message in the console to activate an environment following the removal of the environment:

I.e.

mamba env remove -n test -y

When this finishes, the following is emitted:

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/user/miniforge3/envs/test

This does not occur if I create an empty environment and then subsequently remove the empty environment. This does occur, however, when I install a package in the env and then remove the env.

Expected behavior would be to not tell the user to activate the environment following its removal as this is no longer available for activation

No message about activating the env after removal:

(base) user@userVM:~$ mamba create -n test -y
Empty environment created at prefix: /home/user/miniforge3/envs/test
(base) user@userVM:~$ mamba env remove -n test -y
Nothing to do.
No packages to remove from environment.
Environment removed at prefix: /home/user/miniforge3/envs/test

Message to activate environment after removal

mamba create -n test -y
mamba install -n test pandas -y
mamba env remove -n test -y

mamba info / micromamba 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 bz2lib/1.0.8 libzstd/1.5.6
       envs directories : /home/user/miniforge3/envs
          package cache : /home/user/miniforge3/pkgs
                          /home/user/.mamba/pkgs
            environment : base (active)
           env location : /home/user/miniforge3
      user config files : /home/user/.mambarc
 populated config files : /home/user/.condarc
                          /home/user/miniforge3/.condarc
       virtual packages : __unix=0=0
                          __linux=5.15.0=0
                          __glibc=2.31=0
                          __archspec=1=x86_64_v4
               channels : https://conda.anaconda.org/conda-forge/linux-64
                          https://conda.anaconda.org/conda-forge/noarch
                          https://conda.anaconda.org/bioconda/linux-64
                          https://conda.anaconda.org/bioconda/noarch
                          https://repo.anaconda.com/pkgs/main/linux-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/r/linux-64
                          https://repo.anaconda.com/pkgs/r/noarch
       base environment : /home/user/miniforge3
               platform : linux-64

Logs

mamba env remove -n test
DEPRECATION: --no-python-version-warning is deprecated. pip 25.1 will enforce this behaviour change. A possible replacement is to remove the flag as it's a no-op. Discussion can be found at https://github.com/pypa/pip/issues/13154
DEPRECATION: --no-python-version-warning is deprecated. pip 25.1 will enforce this behaviour change. A possible replacement is to remove the flag as it's a no-op. Discussion can be found at https://github.com/pypa/pip/issues/13154
Transaction

  Prefix: /home/user/miniforge3/envs/test

  Removing specs:

   - _libgcc_mutex
   - _openmp_mutex
   - bzip2
   - ca-certificates
   - ld_impl_linux-64
   - libblas
   - libcblas
   - libffi
   - libgcc
   - libgcc-ng
   - libgfortran
   - libgfortran5
   - libgomp
   - liblapack
   - liblzma
   - libnsl
   - libopenblas
   - libsqlite
   - libstdcxx
   - libuuid
   - libxcrypt
   - libzlib
   - ncurses
   - numpy
   - openssl
   - pandas
   - pip
   - python
   - python-dateutil
   - python-tzdata
   - python_abi
   - pytz
   - readline
   - setuptools
   - six
   - 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     2025.1.31  hbcca054_0            conda-forge     Cached
  - ld_impl_linux-64         2.43  h712a8e2_2            conda-forge     Cached
  - libblas                 3.9.0  28_h59b9bed_openblas  conda-forge     Cached
  - libcblas                3.9.0  28_he106b2a_openblas  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
  - libgfortran            14.2.0  h69a702a_1            conda-forge     Cached
  - libgfortran5           14.2.0  hd5240d6_1            conda-forge     Cached
  - libgomp                14.2.0  h77fa898_1            conda-forge     Cached
  - liblapack               3.9.0  28_h7ac8fdf_openblas  conda-forge     Cached
  - liblzma                 5.6.4  hb9d3cd8_0            conda-forge     Cached
  - libnsl                  2.0.1  hd590300_0            conda-forge     Cached
  - libopenblas            0.3.28  pthreads_h94d23a6_1   conda-forge     Cached
  - libsqlite              3.48.0  hee588c1_1            conda-forge     Cached
  - libstdcxx              14.2.0  hc0a3c3a_1            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  h2d0b736_3            conda-forge     Cached
  - numpy                   2.0.2  py39h9cb892a_1        conda-forge     Cached
  - openssl                 3.4.0  h7b32b05_1            conda-forge     Cached
  - pandas                  2.2.3  py39h3b40f6f_2        conda-forge     Cached
  - pip                      25.0  pyh8b19718_0          conda-forge     Cached
  - python                 3.9.21  h9c0c6dc_1_cpython    conda-forge     Cached
  - python-dateutil   2.9.0.post0  pyhff2d567_1          conda-forge     Cached
  - python-tzdata          2025.1  pyhd8ed1ab_0          conda-forge     Cached
  - python_abi                3.9  5_cp39                conda-forge     Cached
  - pytz                   2024.1  pyhd8ed1ab_0          conda-forge     Cached
  - readline                  8.2  h8228510_1            conda-forge     Cached
  - setuptools             75.8.0  pyhff2d567_0          conda-forge     Cached
  - six                    1.17.0  pyhd8ed1ab_0          conda-forge     Cached
  - tk                     8.6.13  noxft_h4845f30_101    conda-forge     Cached
  - tzdata                  2025a  h78e105d_0            conda-forge     Cached
  - wheel                  0.45.1  pyhd8ed1ab_1          conda-forge     Cached

  Summary:

  Remove: 38 packages

  Total download: 0 B

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


Confirm changes: [Y/n] Y

Transaction starting
Unlinking pandas-2.2.3-py39h3b40f6f_2
Unlinking pip-25.0-pyh8b19718_0
Unlinking pytz-2024.1-pyhd8ed1ab_0
Unlinking python-tzdata-2025.1-pyhd8ed1ab_0
Unlinking python-dateutil-2.9.0.post0-pyhff2d567_1
Unlinking numpy-2.0.2-py39h9cb892a_1
Unlinking wheel-0.45.1-pyhd8ed1ab_1
Unlinking setuptools-75.8.0-pyhff2d567_0
Unlinking six-1.17.0-pyhd8ed1ab_0
Unlinking python_abi-3.9-5_cp39
Unlinking libstdcxx-14.2.0-hc0a3c3a_1
Unlinking liblapack-3.9.0-28_h7ac8fdf_openblas
Unlinking libcblas-3.9.0-28_he106b2a_openblas
Unlinking python-3.9.21-h9c0c6dc_1_cpython
Unlinking libblas-3.9.0-28_h59b9bed_openblas
Unlinking tzdata-2025a-h78e105d_0
Unlinking tk-8.6.13-noxft_h4845f30_101
Unlinking readline-8.2-h8228510_1
Unlinking openssl-3.4.0-h7b32b05_1
Unlinking libxcrypt-4.4.36-hd590300_1
Unlinking libuuid-2.38.1-h0b41bf4_0
Unlinking libsqlite-3.48.0-hee588c1_1
Unlinking libnsl-2.0.1-hd590300_0
Unlinking liblzma-5.6.4-hb9d3cd8_0
Unlinking libffi-3.4.2-h7f98852_5
Unlinking ld_impl_linux-64-2.43-h712a8e2_2
Unlinking bzip2-1.0.8-h4bc722e_7
Unlinking libopenblas-0.3.28-pthreads_h94d23a6_1
Unlinking ncurses-6.5-h2d0b736_3
Unlinking ca-certificates-2025.1.31-hbcca054_0
Unlinking libzlib-1.3.1-hb9d3cd8_2
Unlinking libgcc-ng-14.2.0-h69a702a_1
Unlinking libgfortran-14.2.0-h69a702a_1
Unlinking libgfortran5-14.2.0-hd5240d6_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/user/miniforge3/envs/test

environment.yml

~/.condarc

channels:
  - conda-forge
  - bioconda
  - defaults
# always_yes: true
mirrored_channels:
  conda-forge:
    # - https://conda.anaconda.org/conda-forge
    - https://prefix.dev/conda-forge
@Hind-M
Copy link
Member

Hind-M commented Feb 7, 2025

This has been fixed in #3715

@Hind-M Hind-M closed this as completed Feb 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants