Closed um-jglad closed 2 years ago
Ok, I'm pretty sure I've done nothing other than maybe reboot and new shell session, and the error is gone!?
hmm, weird indeed, but there are some installation problems on Apple M1 systems which I haven't fully resolved yet, so not sure if it was related..
well, actually the problem is still there, we haven't managed to solve it yet. First, it is not related to M1 (same happens on an Intel Mac workstation). Second, it only happens when compiling the code with Clang. By default, the setup script in agama picks up the system-default compiler, but apparently (and hideously!), distutils (the standard way of compiling C++ extension modules from within Python) prefers to use GCC, which works fine. I may try to change the setup script so that it tries GCC first, then falls back to the system-default compiler (which is Clang in the case of MacOS). But this may prevent people from using Intel C, for instance..
FWIW I was also able to seemingly compile, run python setup.py test
, and import successfully using python setup.py install --user
by installing gcc-11 with brew and making an alias for cc='gcc-11'
in my .zshrc file.
I've tried installing agama a few different ways with varying success on an M1 Macbook Air running macOS 12.4 Monterey. The most recent attempts using
pip install --user agama
orpython setup.py install --user
appear to compile fine in an anaconda environment with python 3.8, but produce an error when attempting to import agama:Any advice or help would be appreciated.