openslide on Apple silicon?

Benjamin Gilbert bgilbert at cs.cmu.edu
Thu Aug 31 12:34:39 EDT 2023


On Thu, Aug 31, 2023 at 11:32 AM Jon Sauer <jon.sauer at gmail.com> wrote:
> OSError: dlopen(/usr/local/lib/libopenslide.dylib, 0x0006): tried: '/usr/local/lib/libopenslide.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64')), '/System/Volumes/Preboot/Cryptexes/OS/usr/local/lib/libopenslide.dylib' (no such file), '/usr/local/lib/libopenslide.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64')), '/usr/local/Cellar/openslide/3.4.1_7/lib/libopenslide.0.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64')), '/System/Volumes/Preboot/Cryptexes/OS/usr/local/Cellar/openslide/3.4.1_7/lib/libopenslide.0.dylib' (no such file), '/usr/local/Cellar/openslide/3.4.1_7/lib/libopenslide.0.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64’))

OpenSlide Python found your Homebrew copy of OpenSlide in /usr/local,
but couldn't load it because it's an x86_64 binary instead of an arm64
binary.  On ARM, Homebrew installs into /opt/homebrew instead.  Is it
possible that your Homebrew installation was migrated from a previous
x86_64 machine?  You might consider removing and reinstalling Homebrew
so you have native ARM binaries.  That should also fix the error
you're seeing.

--Benjamin Gilbert


More information about the openslide-users mailing list