-
-
Notifications
You must be signed in to change notification settings - Fork 328
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
Comments
Can you post your |
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# 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 |
Yea all that looks normal. 🤔 I wonder if there's another Python installation getting in the way. The Let's try this:
|
In ❯ which python
/Users/macos/miniforge3/bin/python
❯ python -c "import tqdm"
❯ python -c "import conda" |
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)) |
Hm, I don't understand how you could update to mamba 2.0 without a change in conda-libmamba-solver 🤔 |
No idea...but everything started once Tried to update ❯ 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 ❯ conda --version
conda 24.9.2
❯ which python
/Users/macos/miniforge3/envs/pytest/bin/python
❯ python -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 ❯ conda activate Pyenv_arm
❯ python -c "import matplotlib"
zsh: command not found: python |
Solution to issue cannot be found in 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 updatebase
, each command returns the following error message:Error message
I tried with
miniconda
, no issue whatsoever. I uninstalledminiforge
and reinstalled version 24.3.0, the above error message seems to be gone but every time I runwhich conda
orwhere conda
the following appears:which conda
Any idea why these errors are thrown?
Installed packages
Environment info
The text was updated successfully, but these errors were encountered: