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

Broken miniforge on mac ARM 15.1 #671

Open
1 task done
sjg2203 opened this issue Nov 1, 2024 · 7 comments
Open
1 task done

Broken miniforge on mac ARM 15.1 #671

sjg2203 opened this issue Nov 1, 2024 · 7 comments
Labels
bug Something isn't working

Comments

@sjg2203
Copy link

sjg2203 commented Nov 1, 2024

Solution to issue cannot be found in the documentation.

  • I checked the documentation.

Issue

Since you updated miniforge to 24.9.0, I have this bug on macOS 15.1 where I cannot activate any of my envs nor update base, each command returns the following error message:

Error message
conda update --all
Error while loading conda entry point: conda-libmamba-solver (No module named 'tqdm')
Error while loading conda entry point: conda-libmamba-solver (No module named 'tqdm')

# >>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<<

    Traceback (most recent call last):
      File "/Users/macos/miniforge3/lib/python3.10/site-packages/conda/exception_handler.py", line 18, in __call__
        return func(*args, **kwargs)
      File "/Users/macos/miniforge3/lib/python3.10/site-packages/conda/cli/main.py", line 51, in main_subshell
        parser = generate_parser(add_help=True)
      File "/Users/macos/miniforge3/lib/python3.10/site-packages/conda/cli/conda_argparse.py", line 150, in generate_parser
        configure_parser_create(sub_parsers)
      File "/Users/macos/miniforge3/lib/python3.10/site-packages/conda/cli/main_create.py", line 74, in configure_parser
        add_parser_solver(solver_mode_options)
      File "/Users/macos/miniforge3/lib/python3.10/site-packages/conda/cli/helpers.py", line 417, in add_parser_solver
        choices=context.plugin_manager.get_solvers(),
      File "/Users/macos/miniforge3/lib/python3.10/site-packages/conda/plugins/manager.py", line 254, in get_solvers
        for solver_plugin in self.get_hook_results("solvers")
      File "/Users/macos/miniforge3/lib/python3.10/site-packages/conda/plugins/manager.py", line 212, in get_hook_results
        plugins = [item for items in hook() for item in items]
      File "/Users/macos/miniforge3/lib/python3.10/site-packages/conda/plugins/manager.py", line 212, in <listcomp>
        plugins = [item for items in hook() for item in items]
      File "/Users/macos/miniforge3/lib/python3.10/site-packages/conda/plugins/solvers.py", line 12, in conda_solvers
        from ..core.solve import Solver
      File "/Users/macos/miniforge3/lib/python3.10/site-packages/conda/core/solve.py", line 38, in <module>
        from ..resolve import Resolve
      File "/Users/macos/miniforge3/lib/python3.10/site-packages/conda/resolve.py", line 16, in <module>
        from tqdm import tqdm
    ModuleNotFoundError: No module named 'tqdm'

`$ /Users/macos/miniforge3/bin/conda update --all`

  environment variables:
                 CIO_TEST=<not set>
    CONDA_ALLOW_SOFTLINKS=false
        CONDA_DEFAULT_ENV=base
                CONDA_EXE=/Users/macos/miniforge3/bin/conda
             CONDA_PREFIX=/Users/macos/miniforge3
    CONDA_PROMPT_MODIFIER=(base)
         CONDA_PYTHON_EXE=/Users/macos/miniforge3/bin/python
               CONDA_ROOT=/Users/macos/miniforge3
              CONDA_SHLVL=1
           CURL_CA_BUNDLE=<not set>
                 INFOPATH=/opt/homebrew/share/info:
               LD_PRELOAD=<not set>
                     PATH=/Users/macos/miniforge3/bin:/Users/macos/miniforge3/condabin:/Library/
                          Frameworks/Python.framework/Versions/3.11/bin:/Library/Frameworks/Pyth
                          on.framework/Versions/3.12/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/L
                          ibrary/Frameworks/Python.framework/Versions/3.10/bin:/usr/local/bin:/S
                          ystem/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com
                          .apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run
                          /com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/c
                          om.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bi
                          n:/Library/Apple/usr/bin:/Library/TeX/texbin:/Applications/Little
                          Snitch.app/Contents/Components
       REQUESTS_CA_BUNDLE=<not set>
            SSL_CERT_FILE=<not set>

     active environment : base
    active env location : /Users/macos/miniforge3
            shell level : 1
       user config file : /Users/macos/.condarc
 populated config files : /Users/macos/miniforge3/.condarc
                          /Users/macos/.condarc
          conda version : 24.9.1
    conda-build version : 24.9.0
         python version : 3.10.15.final.0
                 solver : libmamba (default)
       virtual packages : __archspec=1=m1
                          __conda=24.9.1=0
                          __osx=15.1=0
                          __unix=0=0
       base environment : /Users/macos/miniforge3  (writable)
      conda av data dir : /Users/macos/miniforge3/etc/conda
  conda av metadata url : None
           channel URLs : https://conda.anaconda.org/conda-forge/osx-arm64
                          https://conda.anaconda.org/conda-forge/noarch
                          https://conda.anaconda.org/pytorch/osx-arm64
                          https://conda.anaconda.org/pytorch/noarch
                          https://conda.anaconda.org/apple/osx-arm64
                          https://conda.anaconda.org/apple/noarch
          package cache : /Users/macos/miniforge3/pkgs
                          /Users/macos/.conda/pkgs
       envs directories : /Users/macos/miniforge3/envs
                          /Users/macos/.conda/envs
               platform : osx-arm64
             user-agent : conda/24.9.1 requests/2.32.3 CPython/3.10.15 Darwin/24.1.0 OSX/15.1 solver/libmamba
                UID:GID : 501:20
             netrc file : None
           offline mode : False


An unexpected error has occurred. Conda has prepared the above report.
If you suspect this error is being caused by a malfunctioning plugin,
consider using the --no-plugins option to turn off plugins.

Example: conda --no-plugins install <package>

Alternatively, you can set the CONDA_NO_PLUGINS environment variable on
the command line to run the command without plugins enabled.

Example: CONDA_NO_PLUGINS=true conda install <package>

If submitted, this report will be used by core maintainers to improve
future releases of conda.
Would you like conda to send this report to the core maintainers? [y/N]: Y
Upload did not complete.

Thank you for helping to improve conda.
Opt-in to always sending reports (and not see this message again)
by running

    $ conda config --set report_errors true

I tried with miniconda, no issue whatsoever. I uninstalled miniforge and reinstalled version 24.3.0, the above error message seems to be gone but every time I run which conda or where conda the following appears:

which conda
which conda
conda () {
        local cmd="${1-__missing__}" 
        case "$cmd" in
                (activate | deactivate) __conda_activate "$@" ;;
                (install | update | upgrade | remove | uninstall) __conda_exe "$@" || return
                        __conda_reactivate ;;
                (*) __conda_exe "$@" ;;
        esac
}

Any idea why these errors are thrown?

Installed packages

❯ conda list

# packages in environment at /Users/macos/miniforge3:
#
# Name                    Version                   Build  Channel
archspec                  0.2.3              pyhd8ed1ab_0    conda-forge
boltons                   24.0.0             pyhd8ed1ab_0    conda-forge
brotli-python             1.1.0           py310hb4ad77e_2    conda-forge
bzip2                     1.0.8                h99b78c6_7    conda-forge
c-ares                    1.34.2               h7ab814d_0    conda-forge
ca-certificates           2024.8.30            hf0a4a13_0    conda-forge
certifi                   2024.8.30          pyhd8ed1ab_0    conda-forge
cffi                      1.17.1          py310h497396d_0    conda-forge
charset-normalizer        3.4.0              pyhd8ed1ab_0    conda-forge
colorama                  0.4.6              pyhd8ed1ab_0    conda-forge
conda                     24.9.2          py310hbe9552e_0    conda-forge
conda-libmamba-solver     24.9.0             pyhd8ed1ab_0    conda-forge
conda-package-handling    2.4.0              pyh7900ff3_0    conda-forge
conda-package-streaming   0.11.0             pyhd8ed1ab_0    conda-forge
distro                    1.9.0              pyhd8ed1ab_0    conda-forge
fmt                       11.0.2               h420ef59_0    conda-forge
frozendict                2.4.6           py310hf9df320_0    conda-forge
h2                        4.1.0              pyhd8ed1ab_0    conda-forge
hpack                     4.0.0              pyh9f0ad1d_0    conda-forge
hyperframe                6.0.1              pyhd8ed1ab_0    conda-forge
icu                       75.1                 hfee45f7_0    conda-forge
idna                      3.10               pyhd8ed1ab_0    conda-forge
jsonpatch                 1.33               pyhd8ed1ab_0    conda-forge
jsonpointer               3.0.0           py310hbe9552e_1    conda-forge
krb5                      1.21.3               h237132a_0    conda-forge
libarchive                3.7.4                h83d404f_0    conda-forge
libcurl                   8.10.1               h13a7ad3_0    conda-forge
libcxx                    19.1.3               ha82da77_0    conda-forge
libedit                   3.1.20191231         hc8eb9b7_2    conda-forge
libev                     4.33                 h93a5062_2    conda-forge
libffi                    3.4.2                h3422bc3_5    conda-forge
libiconv                  1.17                 h0d3ecfb_2    conda-forge
libmamba                  1.5.10               h66a2e1b_1    conda-forge
libmambapy                1.5.10          py310h078ff23_1    conda-forge
libnghttp2                1.64.0               h6d7220d_0    conda-forge
libsolv                   0.7.30               h6c9b7f8_0    conda-forge
libsqlite                 3.47.0               hbaaea75_1    conda-forge
libssh2                   1.11.0               h7a5bd25_0    conda-forge
libxml2                   2.13.4               h8424949_2    conda-forge
libzlib                   1.3.1                h8359307_2    conda-forge
lz4-c                     1.9.4                hb7217d7_0    conda-forge
lzo                       2.10              h93a5062_1001    conda-forge
mamba                     1.5.10          py310ha5d4528_1    conda-forge
menuinst                  2.1.2           py310hbe9552e_1    conda-forge
ncurses                   6.5                  h7bae524_1    conda-forge
openssl                   3.3.2                h8359307_0    conda-forge
packaging                 24.1               pyhd8ed1ab_0    conda-forge
pip                       24.3.1             pyh8b19718_0    conda-forge
platformdirs              4.3.6              pyhd8ed1ab_0    conda-forge
pluggy                    1.5.0              pyhd8ed1ab_0    conda-forge
pybind11-abi              4                    hd8ed1ab_3    conda-forge
pycosat                   0.6.6           py310h2aa6e3c_0    conda-forge
pycparser                 2.22               pyhd8ed1ab_0    conda-forge
pysocks                   1.7.1              pyha2e5f31_6    conda-forge
python                    3.10.15         hdce6c4c_2_cpython    conda-forge
python_abi                3.10                    5_cp310    conda-forge
readline                  8.2                  h92ec313_1    conda-forge
reproc                    14.2.4.post0         h93a5062_1    conda-forge
reproc-cpp                14.2.4.post0         h965bd2d_1    conda-forge
requests                  2.32.3             pyhd8ed1ab_0    conda-forge
ruamel.yaml               0.18.6          py310hf9df320_1    conda-forge
ruamel.yaml.clib          0.2.8           py310hf9df320_1    conda-forge
setuptools                75.3.0             pyhd8ed1ab_0    conda-forge
tk                        8.6.13               h5083fa2_1    conda-forge
tqdm                      4.66.6             pyhd8ed1ab_0    conda-forge
truststore                0.10.0             pyhd8ed1ab_0    conda-forge
tzdata                    2024b                hc8b5060_0    conda-forge
urllib3                   2.2.3              pyhd8ed1ab_0    conda-forge
wheel                     0.44.0             pyhd8ed1ab_0    conda-forge
xz                        5.2.6                h57fd34a_0    conda-forge
yaml-cpp                  0.8.0                h13dd4ca_0    conda-forge
zstandard                 0.23.0          py310h2665a74_1    conda-forge
zstd                      1.5.6                hb46c0d2_0    conda-forge

Environment info

❯ conda info

     active environment : base
    active env location : /Users/macos/miniforge3
            shell level : 1
       user config file : /Users/macos/.condarc
 populated config files : /Users/macos/miniforge3/.condarc
                          /Users/macos/.condarc
          conda version : 24.9.2
    conda-build version : not installed
         python version : 3.10.15.final.0
                 solver : libmamba (default)
       virtual packages : __archspec=1=m1
                          __conda=24.9.2=0
                          __osx=15.1=0
                          __unix=0=0
       base environment : /Users/macos/miniforge3  (writable)
      conda av data dir : /Users/macos/miniforge3/etc/conda
  conda av metadata url : None
           channel URLs : https://conda.anaconda.org/conda-forge/osx-arm64
                          https://conda.anaconda.org/conda-forge/noarch
                          https://conda.anaconda.org/pytorch/osx-arm64
                          https://conda.anaconda.org/pytorch/noarch
                          https://repo.anaconda.com/pkgs/main/osx-arm64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/r/osx-arm64
                          https://repo.anaconda.com/pkgs/r/noarch
          package cache : /Users/macos/miniforge3/pkgs
                          /Users/macos/.conda/pkgs
       envs directories : /Users/macos/miniforge3/envs
                          /Users/macos/.conda/envs
               platform : osx-arm64
             user-agent : conda/24.9.2 requests/2.32.3 CPython/3.10.15 Darwin/24.1.0 OSX/15.1 solver/libmamba conda-libmamba-solver/24.9.0 libmambapy/1.5.10
                UID:GID : 501:20
             netrc file : None
           offline mode : False
@sjg2203 sjg2203 added the bug Something isn't working label Nov 1, 2024
@jaimergp
Copy link
Member

jaimergp commented Nov 3, 2024

Can you post your conda config --show-sources output? I do see tqdm in your base environment. The which conda output looks normal for a conda init'd installation (which installs a conda shell function). You can see "all" your condas with which -a conda. Can you post that too? There's a chance your .zshrc profile also contains initialization code from previous installations.

@sjg2203
Copy link
Author

sjg2203 commented Nov 4, 2024

Here are the outputs you requested. Though now, none of my conda envs are working in PyCharm, all of them are gone and it reroot Python to the base environment.

conda config --show-sources
==> /Users/macos/miniforge3/.condarc <==
channels:
  - conda-forge

==> /Users/macos/.condarc <==
channels:
  - conda-forge
  - pytorch
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
which -a conda
conda () {
        local cmd="${1-__missing__}" 
        case "$cmd" in
                (activate | deactivate) __conda_activate "$@" ;;
                (install | update | upgrade | remove | uninstall) __conda_exe "$@" || return
                        __conda_reactivate ;;
                (*) __conda_exe "$@" ;;
        esac
}
/Users/macos/miniforge3/condabin/conda

In my .zshrc profile, I have a bunch of code from Powerlevel10k that is written before conda

zshrc profile
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
  source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi

# Path to your oh-my-zsh installation.
export ZSH="$HOME/.oh-my-zsh"

# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
ZSH_THEME="powerlevel10k/powerlevel10k"

# Set list of themes to pick from when loading at random
# Setting this variable when ZSH_THEME=random will cause zsh to load
# a theme from this variable instead of looking in $ZSH/themes/
# If set to an empty array, this variable will have no effect.
# ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" )

# Uncomment the following line to use case-sensitive completion.
# CASE_SENSITIVE="true"

# Uncomment the following line to use hyphen-insensitive completion.
# Case-sensitive completion must be off. _ and - will be interchangeable.
# HYPHEN_INSENSITIVE="true"

# Uncomment one of the following lines to change the auto-update behavior
# zstyle ':omz:update' mode disabled  # disable automatic updates
 zstyle ':omz:update' mode auto      # update automatically without asking
# zstyle ':omz:update' mode reminder  # just remind me to update when it's time

# Uncomment the following line to change how often to auto-update (in days).
# zstyle ':omz:update' frequency 13

# Values accepted (min: 1, max: 16)
# Parallel downloads will not be enabled if value is out-of-range
ZSH_CUSTOM_AUTOUPDATE_NUM_WORKERS=10

# Uncomment the following line if pasting URLs and other text is messed up.
# DISABLE_MAGIC_FUNCTIONS="true"

# Uncomment the following line to disable colors in ls.
# DISABLE_LS_COLORS="true"

# Uncomment the following line to disable auto-setting terminal title.
# DISABLE_AUTO_TITLE="true"

# Uncomment the following line to enable command auto-correction.
# ENABLE_CORRECTION="true"

# Uncomment the following line to display red dots whilst waiting for completion.
# You can also set it to another string to have that shown instead of the default red dots.
# e.g. COMPLETION_WAITING_DOTS="%F{yellow}waiting...%f"
# Caution: this setting can cause issues with multiline prompts in zsh < 5.7.1 (see #5765)
# COMPLETION_WAITING_DOTS="true"

# Uncomment the following line if you want to disable marking untracked files
# under VCS as dirty. This makes repository status check for large repositories
# much, much faster.
# DISABLE_UNTRACKED_FILES_DIRTY="true" 

# Uncomment the following line if you want to change the command execution time
# stamp shown in the history command output.
# You can set one of the optional three formats:
# "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
# or set a custom format using the strftime function format specifications,
# see 'man strftime' for details.
# HIST_STAMPS="mm/dd/yyyy"

# Would you like to use another custom folder than $ZSH/custom?
# ZSH_CUSTOM=/path/to/new-custom-folder   

# Which plugins would you like to load?
# Standard plugins can be found in $ZSH/plugins/
# Custom plugins may be added to $ZSH_CUSTOM/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
plugins=(git zsh-autosuggestions)

source $ZSH/oh-my-zsh.sh

# User configuration

# export MANPATH="/usr/local/man:$MANPATH"

# You may need to manually set your language environment
# export LANG=en_US.UTF-8

# Preferred editor for local and remote sessions 
# if [[ -n $SSH_CONNECTION ]]; then
#   export EDITOR='vim'
# else
#   export EDITOR='mvim'
# fi

# Compilation flags
# export ARCHFLAGS="-arch x86_64"

# Set personal aliases, overriding those provided by oh-my-zsh libs,
# plugins, and themes. Aliases can be placed here, though oh-my-zsh
# users are encouraged to define aliases within the ZSH_CUSTOM folder.
# For a full list of active aliases, run `alias`.
# 
# Example aliases
# alias zshconfig="mate ~/.zshrc"
# alias ohmyzsh="mate ~/.oh-my-zsh"

# Fig post block. Keep at the bottom of this file.
[[ -f "$HOME/.fig/shell/zshrc.post.zsh" ]] && builtin source "$HOME/.fig/shell/zshrc.post.zsh"

# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
source /Users/macos/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
source ~/powerlevel10k/powerlevel10k.zsh-theme

# export PATH="/Users/macos/miniforge3/bin:$PATH"  # commented out by conda initialize  # commented out by conda initialize

# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/Users/macos/miniforge3/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
    eval "$__conda_setup"
else
    if [ -f "/Users/macos/miniforge3/etc/profile.d/conda.sh" ]; then
        . "/Users/macos/miniforge3/etc/profile.d/conda.sh"
    else
        export PATH="/Users/macos/miniforge3/bin:$PATH"
    fi
fi
unset __conda_setup
# <<< conda initialize <<<

##### Activate conda env ######
[[ -n $CONDA_ENV ]] && conda activate $CONDA_ENV

___MY_VMOPTIONS_SHELL_FILE="${HOME}/.jetbrains.vmoptions.sh"; if [ -f "${___MY_VMOPTIONS_SHELL_FILE}" ]; then . "${___MY_VMOPTIONS_SHELL_FILE}"; fi
c

@jaimergp
Copy link
Member

jaimergp commented Nov 5, 2024

Yea all that looks normal. 🤔 I wonder if there's another Python installation getting in the way. The Library/Frameworks/ stuff maybe?

Let's try this:

$ which python
$ python -c "import tqdm"
$ python -c "import conda"

@sjg2203
Copy link
Author

sjg2203 commented Nov 5, 2024

In Library/Frameworks/Python.Frameworks/Versions only 3.12 is present.
Both python -c commands return nothing, I am assuming this is good

which python
/Users/macos/miniforge3/bin/pythonpython -c "import tqdm"python -c "import conda"

@sjg2203
Copy link
Author

sjg2203 commented Nov 5, 2024

Though now when trying to update or activate base or my envs, this error message comes in every time:

conda update --all
Channels:
 - conda-forge
 - pytorch
 - defaults
Platform: osx-arm64
Collecting package metadata (repodata.json): done
Solving environment: done

## Package Plan ##

  environment location: /Users/macos/miniforge3


The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    cpp-expected-1.1.0         |       hffc8910_0          23 KB  conda-forge
    libmamba-2.0.2             |       hc61166f_2         1.4 MB  conda-forge
    mamba-2.0.2                |       h232bcfd_2         384 KB  conda-forge
    simdjson-3.10.1            |       h7b3277c_0         196 KB  conda-forge
    spdlog-1.14.1              |       h6d8af72_1         160 KB  conda-forge
    ------------------------------------------------------------
                                           Total:         2.1 MB

The following NEW packages will be INSTALLED:

  cpp-expected       conda-forge/osx-arm64::cpp-expected-1.1.0-hffc8910_0 
  nlohmann_json      conda-forge/osx-arm64::nlohmann_json-3.11.3-h00cdb27_1 
  simdjson           conda-forge/osx-arm64::simdjson-3.10.1-h7b3277c_0 
  spdlog             conda-forge/osx-arm64::spdlog-1.14.1-h6d8af72_1 

The following packages will be UPDATED:

  brotli-python                       1.1.0-py310h1253130_1 --> 1.1.0-py310hb4ad77e_2 
  bzip2                                    1.0.8-h93a5062_5 --> 1.0.8-h99b78c6_7 
  c-ares                                  1.28.1-h93a5062_0 --> 1.34.2-h7ab814d_0 
  cffi                               1.16.0-py310hdcd7c05_0 --> 1.17.1-py310h497396d_0 
  charset-normalizer                     3.3.2-pyhd8ed1ab_0 --> 3.4.0-pyhd8ed1ab_0 
  icu                                       73.2-hc8870d7_0 --> 75.1-hfee45f7_0 
  idna                                     3.6-pyhd8ed1ab_0 --> 3.10-pyhd8ed1ab_0 
  jsonpointer                           2.4-py310hbe9552e_3 --> 3.0.0-py310hbe9552e_1 
  krb5                                    1.21.2-h92f50d5_0 --> 1.21.3-h237132a_0 
  libarchive                               3.7.2-hcacb583_1 --> 3.7.4-h83d404f_0 
  libcurl                                  8.7.1-h2d989ff_0 --> 8.10.1-h13a7ad3_0 
  libcxx                                  16.0.6-h4653b0c_0 --> 19.1.3-ha82da77_0 
  libmamba                                1.5.10-h66a2e1b_1 --> 2.0.2-hc61166f_2 
  libsolv                                 0.7.28-h1059232_2 --> 0.7.30-h6c9b7f8_0 
  lzo                                    2.10-h642e427_1000 --> 2.10-h93a5062_1001 
  mamba                              1.5.10-py310ha5d4528_1 --> 2.0.2-h232bcfd_2 
  ncurses                           6.4.20240210-h078ce10_0 --> 6.5-h7bae524_1 
  pip                                     24.0-pyhd8ed1ab_0 --> 24.3.1-pyh8b19718_0 
  python_abi                                   3.10-4_cp310 --> 3.10-5_cp310 
  requests                              2.31.0-pyhd8ed1ab_0 --> 2.32.3-pyhd8ed1ab_0 
  ruamel.yaml                        0.18.6-py310hd125d64_0 --> 0.18.6-py310hf9df320_1 
  truststore                             0.8.0-pyhd8ed1ab_0 --> 0.10.0-pyhd8ed1ab_0 
  tzdata                                   2024a-h0c530f3_0 --> 2024b-hc8b5060_0 
  urllib3                                2.2.1-pyhd8ed1ab_0 --> 2.2.3-pyhd8ed1ab_0 
  wheel                                 0.43.0-pyhd8ed1ab_1 --> 0.44.0-pyhd8ed1ab_0 
  zstd                                     1.5.5-h4f39d0f_0 --> 1.5.6-hb46c0d2_0 


Proceed ([y]/n)? y


Downloading and Extracting Packages:
                                                                                            
Preparing transaction: done                                                                 
Verifying transaction: done                                                                 
Executing transaction: done                                                                 
Error while loading conda entry point: conda-libmamba-solver (dlopen(/Users/macos/miniforge3/lib/python3.10/site-packages/libmambapy/bindings.cpython-310-darwin.so, 0x0002): Library not loaded: @rpath/libicuuc.73.dylib
  Referenced from: <139DF8BD-07DF-3953-8431-A702E7213958> /Users/macos/miniforge3/lib/libxml2.2.dylib
  Reason: tried: '/Users/macos/miniforge3/lib/libicuuc.73.dylib' (no such file), '/Users/macos/miniforge3/lib/libicuuc.73.dylib' (no such file), '/Users/macos/miniforge3/lib/libicuuc.73.dylib' (no such file), '/Users/macos/miniforge3/lib/python3.10/site-packages/libmambapy/../../../libicuuc.73.dylib' (no such file), '/Users/macos/miniforge3/lib/python3.10/site-packages/libmambapy/../../../libicuuc.73.dylib' (no such file), '/Users/macos/miniforge3/bin/../lib/libicuuc.73.dylib' (no such file), '/Users/macos/miniforge3/bin/../lib/libicuuc.73.dylib' (no such file), '/usr/local/lib/libicuuc.73.dylib' (no such file), '/usr/lib/libicuuc.73.dylib' (no such file, not in dyld cache))
Error while loading conda entry point: conda-libmamba-solver (dlopen(/Users/macos/miniforge3/lib/python3.10/site-packages/libmambapy/bindings.cpython-310-darwin.so, 0x0002): Library not loaded: @rpath/libicuuc.73.dylib
  Referenced from: <139DF8BD-07DF-3953-8431-A702E7213958> /Users/macos/miniforge3/lib/libxml2.2.dylib
  Reason: tried: '/Users/macos/miniforge3/lib/libicuuc.73.dylib' (no such file), '/Users/macos/miniforge3/lib/libicuuc.73.dylib' (no such file), '/Users/macos/miniforge3/lib/libicuuc.73.dylib' (no such file), '/Users/macos/miniforge3/lib/python3.10/site-packages/libmambapy/../../../libicuuc.73.dylib' (no such file), '/Users/macos/miniforge3/lib/python3.10/site-packages/libmambapy/../../../libicuuc.73.dylib' (no such file), '/Users/macos/miniforge3/bin/../lib/libicuuc.73.dylib' (no such file), '/Users/macos/miniforge3/bin/../lib/libicuuc.73.dylib' (no such file), '/usr/local/lib/libicuuc.73.dylib' (no such file), '/usr/lib/libicuuc.73.dylib' (no such file, not in dyld cache))
conda activate pytest
Error while loading conda entry point: conda-libmamba-solver (dlopen(/Users/macos/miniforge3/lib/python3.10/site-packages/libmambapy/bindings.cpython-310-darwin.so, 0x0002): Library not loaded: @rpath/libicuuc.73.dylib
  Referenced from: <139DF8BD-07DF-3953-8431-A702E7213958> /Users/macos/miniforge3/lib/libxml2.2.dylib
  Reason: tried: '/Users/macos/miniforge3/lib/libicuuc.73.dylib' (no such file), '/Users/macos/miniforge3/lib/libicuuc.73.dylib' (no such file), '/Users/macos/miniforge3/lib/libicuuc.73.dylib' (no such file), '/Users/macos/miniforge3/lib/python3.10/site-packages/libmambapy/../../../libicuuc.73.dylib' (no such file), '/Users/macos/miniforge3/lib/python3.10/site-packages/libmambapy/../../../libicuuc.73.dylib' (no such file), '/Users/macos/miniforge3/bin/../lib/libicuuc.73.dylib' (no such file), '/Users/macos/miniforge3/bin/../lib/libicuuc.73.dylib' (no such file), '/usr/local/lib/libicuuc.73.dylib' (no such file), '/usr/lib/libicuuc.73.dylib' (no such file, not in dyld cache))
Error while loading conda entry point: conda-libmamba-solver (dlopen(/Users/macos/miniforge3/lib/python3.10/site-packages/libmambapy/bindings.cpython-310-darwin.so, 0x0002): Library not loaded: @rpath/libicuuc.73.dylib
  Referenced from: <139DF8BD-07DF-3953-8431-A702E7213958> /Users/macos/miniforge3/lib/libxml2.2.dylib
  Reason: tried: '/Users/macos/miniforge3/lib/libicuuc.73.dylib' (no such file), '/Users/macos/miniforge3/lib/libicuuc.73.dylib' (no such file), '/Users/macos/miniforge3/lib/libicuuc.73.dylib' (no such file), '/Users/macos/miniforge3/lib/python3.10/site-packages/libmambapy/../../../libicuuc.73.dylib' (no such file), '/Users/macos/miniforge3/lib/python3.10/site-packages/libmambapy/../../../libicuuc.73.dylib' (no such file), '/Users/macos/miniforge3/bin/../lib/libicuuc.73.dylib' (no such file), '/Users/macos/miniforge3/bin/../lib/libicuuc.73.dylib' (no such file), '/usr/local/lib/libicuuc.73.dylib' (no such file), '/usr/lib/libicuuc.73.dylib' (no such file, not in dyld cache))

@jaimergp
Copy link
Member

jaimergp commented Nov 5, 2024

Hm, I don't understand how you could update to mamba 2.0 without a change in conda-libmamba-solver 🤔

@sjg2203
Copy link
Author

sjg2203 commented Nov 5, 2024

No idea...but everything started once conda updated to 24.9.2, with 24.3.0 I never had these issues. Weirdest thing of all is, if I migrate from miniforge to miniconda and transfer my envs, they work great, which tells me that miniconda is broken with the latest version of conda

Tried to update conda-libmamba-solver, error message again:

conda update conda-libmamba-solver
Error while loading conda entry point: conda-libmamba-solver (dlopen(/Users/macos/miniforge3/lib/python3.10/site-packages/libmambapy/bindings.cpython-310-darwin.so, 0x0002): Library not loaded: @rpath/libicuuc.73.dylib
  Referenced from: <139DF8BD-07DF-3953-8431-A702E7213958> /Users/macos/miniforge3/lib/libxml2.2.dylib
  Reason: tried: '/Users/macos/miniforge3/lib/libicuuc.73.dylib' (no such file), '/Users/macos/miniforge3/lib/libicuuc.73.dylib' (no such file), '/Users/macos/miniforge3/lib/libicuuc.73.dylib' (no such file), '/Users/macos/miniforge3/lib/python3.10/site-packages/libmambapy/../../../libicuuc.73.dylib' (no such file), '/Users/macos/miniforge3/lib/python3.10/site-packages/libmambapy/../../../libicuuc.73.dylib' (no such file), '/Users/macos/miniforge3/bin/../lib/libicuuc.73.dylib' (no such file), '/Users/macos/miniforge3/bin/../lib/libicuuc.73.dylib' (no such file), '/usr/local/lib/libicuuc.73.dylib' (no such file), '/usr/lib/libicuuc.73.dylib' (no such file, not in dyld cache))
Error while loading conda entry point: conda-libmamba-solver (dlopen(/Users/macos/miniforge3/lib/python3.10/site-packages/libmambapy/bindings.cpython-310-darwin.so, 0x0002): Library not loaded: @rpath/libicuuc.73.dylib
  Referenced from: <139DF8BD-07DF-3953-8431-A702E7213958> /Users/macos/miniforge3/lib/libxml2.2.dylib
  Reason: tried: '/Users/macos/miniforge3/lib/libicuuc.73.dylib' (no such file), '/Users/macos/miniforge3/lib/libicuuc.73.dylib' (no such file), '/Users/macos/miniforge3/lib/libicuuc.73.dylib' (no such file), '/Users/macos/miniforge3/lib/python3.10/site-packages/libmambapy/../../../libicuuc.73.dylib' (no such file), '/Users/macos/miniforge3/lib/python3.10/site-packages/libmambapy/../../../libicuuc.73.dylib' (no such file), '/Users/macos/miniforge3/bin/../lib/libicuuc.73.dylib' (no such file), '/Users/macos/miniforge3/bin/../lib/libicuuc.73.dylib' (no such file), '/usr/local/lib/libicuuc.73.dylib' (no such file), '/usr/lib/libicuuc.73.dylib' (no such file, not in dyld cache))
/Users/macos/miniforge3/lib/python3.10/site-packages/conda_package_streaming/package_streaming.py:25: UserWarning: zstandard could not be imported. Running without .conda support.
  warnings.warn("zstandard could not be imported. Running without .conda support.")
/Users/macos/miniforge3/lib/python3.10/site-packages/conda_package_handling/api.py:29: UserWarning: Install zstandard Python bindings for .conda support
  _warnings.warn("Install zstandard Python bindings for .conda support")
Retrieving notices: ...working... done

CondaValueError: You have chosen a non-default solver backend (libmamba) but it was not recognized. Choose one of: classic

This is without updating to mamba 2.0, conda is 24.9.2 though.

conda --version
conda 24.9.2which python
/Users/macos/miniforge3/envs/pytest/bin/pythonpython -c "import matplotlib"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/Users/macos/miniforge3/envs/pytest/lib/python3.11/site-packages/matplotlib/__init__.py", line 159, in <module>
    from . import _api, _version, cbook, _docstring, rcsetup
  File "/Users/macos/miniforge3/envs/pytest/lib/python3.11/site-packages/matplotlib/rcsetup.py", line 28, in <module>
    from matplotlib.colors import Colormap, is_color_like
  File "/Users/macos/miniforge3/envs/pytest/lib/python3.11/site-packages/matplotlib/colors.py", line 52, in <module>
    from PIL import Image
  File "/Users/macos/miniforge3/envs/pytest/lib/python3.11/site-packages/PIL/Image.py", line 97, in <module>
    from . import _imaging as core
ImportError: dlopen(/Users/macos/miniforge3/envs/pytest/lib/python3.11/site-packages/PIL/_imaging.cpython-311-darwin.so, 0x0002): Library not loaded: @rpath/libjpeg.8.dylib
  Referenced from: <CA655B27-1443-3A07-99EA-01CD6342789B> /Users/macos/miniforge3/envs/pytest/lib/python3.11/site-packages/PIL/_imaging.cpython-311-darwin.so
  Reason: tried: '/Users/macos/miniforge3/envs/pytest/lib/python3.11/site-packages/PIL/../../../libjpeg.8.dylib' (no such file), '/Users/macos/miniforge3/envs/pytest/lib/python3.11/site-packages/PIL/../../../libjpeg.8.dylib' (no such file), '/Users/macos/miniforge3/envs/pytest/bin/../lib/libjpeg.8.dylib' (no such file), '/Users/macos/miniforge3/envs/pytest/bin/../lib/libjpeg.8.dylib' (no such file), '/usr/local/lib/libjpeg.8.dylib' (no such file), '/usr/lib/libjpeg.8.dylib' (no such file, not in dyld cache)

❯ conda install matplotlib
Channels:
 - conda-forge
 - pytorch
 - defaults
Platform: osx-arm64
Collecting package metadata (repodata.json): done
Solving environment: done

# All requested packages already installed.

On other envs, the error is different even though matplotlib is listed in conda list:

conda activate Pyenv_armpython -c "import matplotlib"
zsh: command not found: python

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

2 participants