Skip to content

Miniforge Prompt is broken for username that contains special characters on Windows #484

Closed

Description

Solution to issue cannot be found in the documentation.

  • I checked the documentation.

Issue

That issue concerns windows session with a username that contains special characters (as é, è...).
After installation, running the Miniforge Prompt lead to an error

Le chemin d’accès spécifié est introuvable.
(base) C:\Users\Angélina>

And conda cannot be launch.

Running activate.bat the same way as in the shortcut

C:\Users\Angélina\mambaforge\Scripts\activate.bat C:\Users\Angélina\mambaforge

leads to the same error. I suspect an error on the way activate.bat deals with special characters.

We have found a workaround : running

C:\Users\Angélina>C:\Users\Angélina\mambaforge\Scripts\conda init

In an elevated cmd allowed us to use conda (and mamba).

I have checked : it seems that this behavior only occurs un miniforge. A miniconda prompt works out of the box/

Installed packages

C:\Users\Angélina>conda list
EnvironmentLocationNotFound: Not a conda environment: C:\Users\Ang├®lina\mambaforge

Environment info

(base) C:\Users\Angélina>conda info

     active environment : C:\Users\Ang├®lina\mambaforge
    active env location : C:\Users\Ang├®lina\mambaforge
            shell level : 4
       user config file : C:\Users\Angélina\.condarc
 populated config files : C:\Users\Angélina\mambaforge\.condarc
          conda version : 23.3.1
    conda-build version : not installed
         python version : 3.10.12.final.0
       virtual packages : __archspec=1=x86_64
                          __win=0=0
       base environment : C:\Users\Angélina\mambaforge  (writable)
      conda av data dir : C:\Users\Angélina\mambaforge\etc\conda
  conda av metadata url : None
           channel URLs : https://conda.anaconda.org/conda-forge/win-64
                          https://conda.anaconda.org/conda-forge/noarch
          package cache : C:\Users\Angélina\mambaforge\pkgs
                          C:\Users\Angélina\.conda\pkgs
                          C:\Users\Angélina\AppData\Local\conda\conda\pkgs
       envs directories : C:\Users\Angélina\mambaforge\envs
                          C:\Users\Angélina\.conda\envs
                          C:\Users\Angélina\AppData\Local\conda\conda\envs
               platform : win-64
             user-agent : conda/23.3.1 requests/2.31.0 CPython/3.10.12 Windows/10 Windows/10.0.22621
          administrator : False
             netrc file : None
           offline mode : False
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions