Troubleshooting
This section provides solutions to common issues that may arise when using the QTCAD software.
mach-o file, but is an incompatible architecture (have ‘x86_64’, need ‘arm64’)
If you see an error such as the following:
E ImportError: dlopen(/opt/homebrew/Caskroom/miniconda/base/envs/qtcad/lib/python3.10/site-packages/fmm3dpy/hfmm3d_fortran.cpython-310-darwin.so, 0x0002):
tried: '/opt/homebrew/Caskroom/miniconda/base/envs/qtcad/lib/python3.10/site-packages/fmm3dpy/hfmm3d_fortran.cpython-310-darwin.so'
(mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64')),
'/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/Caskroom/miniconda/base/envs/qtcad/lib/python3.10/site-packages/fmm3dpy/hfmm3d_fortran.cpython-310-darwin.so'
(no such file), '/opt/homebrew/Caskroom/miniconda/base/envs/qtcad/lib/python3.10/site-packages/fmm3dpy/hfmm3d_fortran.cpython-310-darwin.so'
(mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64'))
This is a known issue with the fmm3dpy
package on Apple Silicon processors
(e.g. Apple M1). As explained in Package installation with conda (recommended), please create a new conda
environment in osx-64 mode with:
softwareupdate --install-rosetta
** RESTART YOUR SHELL **
CONDA_SUBDIR=osx-64 conda env create -f qtcad-mac.yml