tudat-team / tudatpy-feedstock

A conda-smithy repository for tudatpy.
https://tudat-team.github.io/tudatpy/
BSD 3-Clause "New" or "Revised" License
4 stars 3 forks source link

conda update causes `Collecting package metadata` to fail #4

Closed transferorbit closed 3 years ago

transferorbit commented 3 years ago

While executing conda update conda on the Getting Started with TudatPy documentation page, the conda update fails, showing Collecting package metadata (current_repodata.json) in this error log. The origin of this issue is the following missing library file: libffi.6.dylib.

transferorbit commented 3 years ago

The solution appears to lie within a conda package, and not with TudatPy. The following workaround, referenced here, was successful:

Go to the relevant directory for your conda installation (ie. for the base environment), for example:

cd ~/opt/miniconda3/lib/

and then create the following symlink:

ln -s libffi.dylib libffi.6.dylib

This points a symlink called libffi.6.dylib to libffi.dylib, which itself is a symlink to libffi.7.dylib. The call to libffi.6.dylib was referenced in ~/opt/miniconda3/lib/python3.7/lib-dynload/_ctypes.cpython-37m-darwin.so.