% spack install py-matplotlib backend=qt5agg arch=m1
...
==> Installing clingo-bootstrap-spack-gmmjcapqovtzrdbsqrcserdmlh334c5w
==> No binary for clingo-bootstrap-spack-gmmjcapqovtzrdbsqrcserdmlh334c5w found: installing from source
==> Error: RuntimeError: Unable to locate libpython3.9.a libraries in /opt/homebrew/Caskroom/miniforge/base/lib
/Users/rutvik/spack/var/spack/repos/builtin/packages/python/package.py:828, in libs:
825 return LibraryList(os.path.join(macos_developerdir, ldlibrary))
826 else:
827 msg = 'Unable to locate {0} libraries in {1}'
>> 828 raise RuntimeError(msg.format(ldlibrary, libdir))
829 else:
830 library = self.config_vars['LIBRARY']
831
==> Error: cannot bootstrap the "clingo" Python module from spec "clingo-bootstrap@spack+python %apple-clang target=aarch64" due to the following failures:
'spack-install' raised InstallError: Terminating after first install failure: RuntimeError: Unable to locate libpython3.9.a libraries in /opt/homebrew/Caskroom/miniforge/base/lib
Please run `spack -d spec zlib` for more verbose error messages
Steps to reproduce the issue
Information on your system
Additional information
I have Python 3.9 through Miniforge. If I check
/opt/homebrew/Caskroom/miniforge/base/libI see that I havelibpython3.9.dylibbut notlibpython3.9.a.@alalazo @tgamb
General information
spack debug reportand reported the version of Spack/Python/Platformspack maintainers <name-of-the-package>and @mentioned any maintainers