conda-forge / miniforge

A conda-forge distribution.
https://conda-forge.org/miniforge
Other
6.14k stars 318 forks source link

Getting `mamba:26: command not found: __add_sys_prefix_to_path` #369

Closed SahandJ closed 1 year ago

SahandJ commented 1 year ago

Solution to issue cannot be found in the documentation.

Issue

Whenever I run any mamba command I get the following message:

mamba:26: command not found: __add_sys_prefix_to_path before the conda command is evaluated. It's not a big bug, but it is annoying me. Any idea what could cause it?

Installed packages

# packages in environment at /Users/sj/DevUtils/mamba:
#
# Name                    Version                   Build  Channel
brotlipy                  0.7.0           py310hf8d0d8f_1004    conda-forge
bzip2                     1.0.8                h3422bc3_4    conda-forge
c-ares                    1.18.1               h3422bc3_0    conda-forge
ca-certificates           2022.9.24            h4653dfc_0    conda-forge
certifi                   2022.9.24          pyhd8ed1ab_0    conda-forge
cffi                      1.15.1          py310he00a5c5_0    conda-forge
charset-normalizer        2.1.1              pyhd8ed1ab_0    conda-forge
colorama                  0.4.5              pyhd8ed1ab_0    conda-forge
conda                     22.9.0          py310hbe9552e_1    conda-forge
conda-package-handling    1.8.1           py310hf8d0d8f_1    conda-forge
cryptography              37.0.4          py310h94bb23d_0    conda-forge
icu                       70.1                 h6b3803e_0    conda-forge
idna                      3.3                pyhd8ed1ab_0    conda-forge
joblib                    1.2.0              pyhd8ed1ab_0    conda-forge
krb5                      1.19.3               hf9b2bbe_0    conda-forge
libarchive                3.5.2                h69ec738_3    conda-forge
libblas                   3.9.0           16_osxarm64_openblas    conda-forge
libcblas                  3.9.0           16_osxarm64_openblas    conda-forge
libcurl                   7.83.1               h2fcd78c_0    conda-forge
libcxx                    14.0.6               h04bba0f_0    conda-forge
libedit                   3.1.20191231         hc8eb9b7_2    conda-forge
libev                     4.33                 h642e427_1    conda-forge
libffi                    3.4.2                h3422bc3_5    conda-forge
libgfortran               5.0.0           11_3_0_hd922786_25    conda-forge
libgfortran5              11.3.0              hdaf2cc0_25    conda-forge
libiconv                  1.16                 h642e427_0    conda-forge
liblapack                 3.9.0           16_osxarm64_openblas    conda-forge
libmamba                  0.25.0               h65ddd87_2    conda-forge
libmambapy                0.25.0          py310h5fdb59d_2    conda-forge
libnghttp2                1.47.0               h232270b_1    conda-forge
libopenblas               0.3.21          openmp_hc731615_3    conda-forge
libsolv                   0.7.22               h1280f1d_0    conda-forge
libsqlite                 3.39.2               h2c9beb0_1    conda-forge
libssh2                   1.10.0               hb80f160_3    conda-forge
libxml2                   2.9.14               h9d8dfc2_4    conda-forge
libzlib                   1.2.12               ha287fd2_2    conda-forge
llvm-openmp               14.0.4               hd125106_0    conda-forge
lz4-c                     1.9.3                hbdafb3b_1    conda-forge
lzo                       2.10              h642e427_1000    conda-forge
mamba                     0.25.0          py310h25b57eb_2    conda-forge
ncurses                   6.3                  h07bb92c_1    conda-forge
numpy                     1.23.3          py310h5d7c261_0    conda-forge
openssl                   1.1.1q               ha287fd2_0    conda-forge
pip                       22.2.2             pyhd8ed1ab_0    conda-forge
pybind11-abi              4                    hd8ed1ab_3    conda-forge
pycosat                   0.6.3           py310hf8d0d8f_1010    conda-forge
pycparser                 2.21               pyhd8ed1ab_0    conda-forge
pyopenssl                 22.0.0             pyhd8ed1ab_0    conda-forge
pysocks                   1.7.1           py310hbe9552e_5    conda-forge
python                    3.10.6          hbce4517_0_cpython    conda-forge
python_abi                3.10                    2_cp310    conda-forge
readline                  8.1.2                h46ed386_0    conda-forge
reproc                    14.2.3               h3422bc3_0    conda-forge
reproc-cpp                14.2.3               hbdafb3b_0    conda-forge
requests                  2.28.1             pyhd8ed1ab_0    conda-forge
ruamel_yaml               0.15.80         py310h02f21da_1007    conda-forge
scikit-learn              1.1.2           py310h3d7afdd_0    conda-forge
scipy                     1.9.1           py310ha0d8a01_0    conda-forge
setuptools                65.2.0          py310hbe9552e_0    conda-forge
six                       1.16.0             pyh6c4a22f_0    conda-forge
threadpoolctl             3.1.0              pyh8a188c0_0    conda-forge
tk                        8.6.12               he1e0b03_0    conda-forge
toolz                     0.12.0             pyhd8ed1ab_0    conda-forge
tqdm                      4.64.0             pyhd8ed1ab_0    conda-forge
tzdata                    2022c                h191b570_0    conda-forge
urllib3                   1.26.11            pyhd8ed1ab_0    conda-forge
wheel                     0.37.1             pyhd8ed1ab_0    conda-forge
xz                        5.2.6                h57fd34a_0    conda-forge
yaml                      0.2.5                h3422bc3_2    conda-forge
yaml-cpp                  0.7.0                h9a09cb3_1    conda-forge
zstd                      1.5.2                h8128057_4    conda-forge

Environment info

active environment : base
    active env location : /Users/sj/DevUtils/mamba
            shell level : 1
       user config file : /Users/sj/.condarc
 populated config files : /Users/sj/DevUtils/mamba/.condarc
          conda version : 22.9.0
    conda-build version : not installed
         python version : 3.10.6.final.0
       virtual packages : __osx=12.6=0
                          __unix=0=0
                          __archspec=1=arm64
       base environment : /Users/sj/DevUtils/mamba  (writable)
      conda av data dir : /Users/sj/DevUtils/mamba/etc/conda
  conda av metadata url : None
           channel URLs : https://conda.anaconda.org/conda-forge/osx-arm64
                          https://conda.anaconda.org/conda-forge/noarch
          package cache : /Users/sj/DevUtils/mamba/pkgs
                          /Users/sj/.conda/pkgs
       envs directories : /Users/sj/DevUtils/mamba/envs
                          /Users/sj/.conda/envs
               platform : osx-arm64
             user-agent : conda/22.9.0 requests/2.28.1 CPython/3.10.6 Darwin/21.6.0 OSX/12.6
                UID:GID : 503:20
             netrc file : None
           offline mode : False
oiao commented 1 year ago

has this been resolved somehow or why was it closed?

isuruf commented 1 year ago

Yes, it's resolved.

oiao commented 1 year ago

Awesome. Is there a link to a specific commit or a different issue that describes the resolution?

isuruf commented 1 year ago

https://github.com/mamba-org/mamba/issues/1950