mamba-org / mamba

The Fast Cross-Platform Package Manager
https://mamba.readthedocs.io
BSD 3-Clause "New" or "Revised" License
6.8k stars 349 forks source link

Micromamba cannot activate the virtual environment #3197

Open jsonvot opened 7 months ago

jsonvot commented 7 months ago

Troubleshooting docs

Anaconda default channels

How did you install Mamba?

Micromamba

Search tried in issue tracker

yes

Latest version of Mamba

Tried in Conda?

I didn't try

Describe your issue

When I execute the micromamba activate shark command in the powershell of win11 to activate the virtual environment, the following prompt appears.But it works fine in the bash shell. PS > critical libmamba in a multibyte target code page, there are no characters to which this Unicode character can be mapped

mamba info / micromamba info

libmamba version : 1.5.6
     micromamba version : 1.5.6
           curl version : libcurl/8.2.1-DEV Schannel zlib/1.2.13
     libarchive version : libarchive 3.6.2 zlib/1.2.13 liblzma/5.4.3 bz2lib/1.0.8 liblz4/1.9.4 libzstd/1.5.5
       envs directories : C:\Users\kevin\micromamba\envs
          package cache : C:\Users\kevin\micromamba\pkgs
                          C:\Users\kevin\.mamba\pkgs
                          C:\Users\kevin\AppData\Roaming\.mamba\pkgs
            environment : None (not found)
           env location : -
      user config files : C:\Users\kevin\.mambarc
 populated config files : C:\Users\kevin\micromamba\.mambarc
       virtual packages : __win=0=0
                          __archspec=1=x86_64
               channels : https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/r/win-64
                          https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/r/noarch
                          https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/win-64
                          https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/noarch
                          https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/bioconda/win-64
                          https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/bioconda/noarch
       base environment : C:\Users\kevin\micromamba
               platform : win-64

Logs

info     libmamba ****************** Backtrace Start ******************
debug    libmamba Loading configuration
trace    libmamba Compute configurable 'create_base'
trace    libmamba Compute configurable 'no_env'
trace    libmamba Compute configurable 'no_rc'
trace    libmamba Compute configurable 'rc_files'
trace    libmamba Compute configurable 'root_prefix'
trace    libmamba Get RC files configuration from locations up to HomeDir
trace    libmamba Configuration found at 'C:\Users\kevin\.mambarc'
trace    libmamba Configuration not found at 'C:\Users\kevin\.mamba\mambarc.d'
trace    libmamba Configuration not found at 'C:\Users\kevin\.mamba\mambarc'
trace    libmamba Configuration not found at 'C:\Users\kevin\.mamba\.mambarc'
trace    libmamba Configuration not found at 'C:\Users\kevin\AppData\Roaming\mamba\mambarc.d'
trace    libmamba Configuration not found at 'C:\Users\kevin\AppData\Roaming\mamba\mambarc'
trace    libmamba Configuration not found at 'C:\Users\kevin\AppData\Roaming\mamba\.mambarc'
trace    libmamba Configuration not found at 'C:\Users\kevin\.condarc'
trace    libmamba Configuration not found at 'C:\Users\kevin\.conda\condarc.d'
trace    libmamba Configuration not found at 'C:\Users\kevin\.conda\condarc'
trace    libmamba Configuration not found at 'C:\Users\kevin\.conda\.condarc'
trace    libmamba Configuration not found at 'C:\Users\kevin\AppData\Roaming\mamba\..\conda\condarc.d'
trace    libmamba Configuration not found at 'C:\Users\kevin\AppData\Roaming\mamba\..\conda\condarc'
trace    libmamba Configuration not found at 'C:\Users\kevin\AppData\Roaming\mamba\..\conda\.condarc'
trace    libmamba Configuration not found at 'C:\Users\kevin\micromamba\.mambarc'
trace    libmamba Configuration not found at 'C:\Users\kevin\micromamba\condarc.d'
trace    libmamba Configuration not found at 'C:\Users\kevin\micromamba\condarc'
trace    libmamba Configuration not found at 'C:\Users\kevin\micromamba\.condarc'
trace    libmamba Configuration not found at 'C:\ProgramData\conda\.mambarc'
trace    libmamba Configuration not found at 'C:\ProgramData\conda\condarc.d'
trace    libmamba Configuration not found at 'C:\ProgramData\conda\condarc'
trace    libmamba Configuration not found at 'C:\ProgramData\conda\.condarc'
trace    libmamba Update configurable 'no_env'
trace    libmamba Compute configurable 'envs_dirs'
trace    libmamba Compute configurable 'file_specs'
trace    libmamba Compute configurable 'spec_file_env_name'
trace    libmamba Compute configurable 'env_name'
trace    libmamba Compute configurable 'use_target_prefix_fallback'
trace    libmamba Compute configurable 'target_prefix'
trace    libmamba Get RC files configuration from locations up to TargetPrefix
trace    libmamba Configuration found at 'C:\Users\kevin\.mambarc'
trace    libmamba Configuration not found at 'C:\Users\kevin\.mamba\mambarc.d'
trace    libmamba Configuration not found at 'C:\Users\kevin\.mamba\mambarc'
trace    libmamba Configuration not found at 'C:\Users\kevin\.mamba\.mambarc'
trace    libmamba Configuration not found at 'C:\Users\kevin\AppData\Roaming\mamba\mambarc.d'
trace    libmamba Configuration not found at 'C:\Users\kevin\AppData\Roaming\mamba\mambarc'
trace    libmamba Configuration not found at 'C:\Users\kevin\AppData\Roaming\mamba\.mambarc'
trace    libmamba Configuration not found at 'C:\Users\kevin\.condarc'
trace    libmamba Configuration not found at 'C:\Users\kevin\.conda\condarc.d'
trace    libmamba Configuration not found at 'C:\Users\kevin\.conda\condarc'
trace    libmamba Configuration not found at 'C:\Users\kevin\.conda\.condarc'
trace    libmamba Configuration not found at 'C:\Users\kevin\AppData\Roaming\mamba\..\conda\condarc.d'
trace    libmamba Configuration not found at 'C:\Users\kevin\AppData\Roaming\mamba\..\conda\condarc'
trace    libmamba Configuration not found at 'C:\Users\kevin\AppData\Roaming\mamba\..\conda\.condarc'
trace    libmamba Configuration not found at 'C:\Users\kevin\micromamba\.mambarc'
trace    libmamba Configuration not found at 'C:\Users\kevin\micromamba\condarc.d'
trace    libmamba Configuration not found at 'C:\Users\kevin\micromamba\condarc'
trace    libmamba Configuration not found at 'C:\Users\kevin\micromamba\.condarc'
trace    libmamba Configuration not found at 'C:\ProgramData\conda\.mambarc'
trace    libmamba Configuration not found at 'C:\ProgramData\conda\condarc.d'
trace    libmamba Configuration not found at 'C:\ProgramData\conda\condarc'
trace    libmamba Configuration not found at 'C:\ProgramData\conda\.condarc'
trace    libmamba Update configurable 'no_env'
trace    libmamba Compute configurable 'relocate_prefix'
trace    libmamba Compute configurable 'target_prefix_checks'
error    libmamba No target prefix specified
critical libmamba Aborting.
info     libmamba ****************** Backtrace End ********************

environment.yml

No response

~/.condarc

No response

Kekananen commented 5 months ago

Yes, I am having the same issue on a clean install in linux.

aaronyeeio commented 4 months ago

Go check all your env vars and see if there are non-english characters right there. Remove all of them and activation will work (for my case).

aaronyeeio commented 4 months ago

I feel mamba should consider more on non-ascii based character compatibility. (wchar, unicode etc.)