Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems with sbmlsim/amici on MacOS #138

Open
2 tasks done
beastemmt opened this issue May 6, 2022 · 4 comments
Open
2 tasks done

Problems with sbmlsim/amici on MacOS #138

beastemmt opened this issue May 6, 2022 · 4 comments
Labels
bug Something isn't working documentation Improvements or additions to documentation

Comments

@beastemmt
Copy link

beastemmt commented May 6, 2022

Checklist

Question

None of the used modules of sbmlsim can be found. After reinstalling using pip install -e . upgrade, I received the error message:

error: command '/var/folders/sy/f16zz6x50xz3113nwtb9bvq00000gp/T/abs_croot-8rcp3rdc/python-split_1649141342860/_build_env/bin/llvm-ar' failed: No such file or directory
ERROR: Failed building wheel for amici
Failed to build amici
ERROR: Could not build wheels for amici which use PEP 517 and cannot be installed directly

How can I fix this problem? (with macOS)

@matthiaskoenig
Copy link
Owner

Did you install the dependencies for AMICI, i.e.

sudo apt-get install libatlas-base-dev swig libhdf5-serial-dev

as documented here (https://amici.readthedocs.io/en/latest/python_installation.html#amici-python-installation)?

@matthiaskoenig matthiaskoenig self-assigned this May 6, 2022
@matthiaskoenig
Copy link
Owner

matthiaskoenig commented May 6, 2022

For OSX the dependencies are

brew install swig

# optionally for HDF5 support:
brew install hdf5

# optionally for parallel simulations:
brew install libomp

@matthiaskoenig
Copy link
Owner

As a workaround you can comment the following line:

    amici>=0.11.28

in the setup.cfg in your sbmlsim folder. I.e.

   # amici>=0.11.28

@matthiaskoenig matthiaskoenig changed the title sbmlsim/amici Problems with sbmlsim/amici on MacOS May 10, 2022
@matthiaskoenig matthiaskoenig added bug Something isn't working documentation Improvements or additions to documentation labels May 10, 2022
@matthiaskoenig matthiaskoenig added this to the Release 0.3.0 milestone May 10, 2022
@matthiaskoenig
Copy link
Owner

Made this an optional dependency for the next release. This should solve most issues for now. We have to solve the MacOS installation for AMICI.

@matthiaskoenig matthiaskoenig removed this from the Release 0.3.0 milestone May 10, 2022
@matthiaskoenig matthiaskoenig removed their assignment May 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants