Apparently i’m facing an issue with my conda installation, i didn’t have this issue until recently when i installed Spyder IDE. I mainly use jupyter notebook but i tried out Spyder because it was required for a project i was working on, first the Spyder IDE crashes and i get a pop up about Python 3.11 stopping, when i try to execute a conda command in the terminal, i get something like this:
Error while loading conda entry point: conda-libmamba-solver (dlopen(/opt/anaconda3/lib/python3.11/site-packages/libmambapy/bindings.cpython-311-darwin.so, 0x0002): Library not loaded: '@rpath/libarchive.13.dylib'
Referenced from: '/opt/anaconda3/lib/libmamba.2.0.0.dylib'
Reason: tried: '/opt/anaconda3/lib/libarchive.13.dylib' (no such file), '/opt/anaconda3/lib/python3.11/site-packages/libmambapy/../../../libarchive.13.dylib' (no such file), '/opt/anaconda3/lib/python3.11/site-packages/libmambapy/../../../libarchive.13.dylib' (no such file), '/opt/anaconda3/bin/../lib/libarchive.13.dylib' (no such file), '/opt/anaconda3/bin/../lib/libarchive.13.dylib' (no such file), '/usr/local/lib/libarchive.13.dylib' (no such file), '/usr/lib/libarchive.13.dylib' (no such file))
Retrieving notices: ...working... ERROR conda.notices.fetch:get_channel_notice_response(68): Request error <HTTPSConnectionPool(host='conda.anaconda.org', port=443): Read timed out.> for channel: conda-forge url: https://conda.anaconda.org/conda-forge/notices.json
done
I searched a bit and found that this is a known incompatibility between the libarchive packages published on defaults and conda-forge. The root cause is a problem in the CMake build configuration upstream (libarchive/libarchive#1857).
The recommended solution for now is to make sure that libarchive and libmamba come from the same channel.
for me, i just forced reinstall the whole thing with:
conda install -f conda
and then updated conda :
conda update conda
It worked for me, if you have better suggestions please leave them in the comments! thank you.