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

"Fatal Python error: take_gil: PyMUTEX_LOCK(gil->mutex) failed" on an M1 mac #15

Open
fbartolic opened this issue Aug 2, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@fbartolic
Copy link
Owner

fbartolic commented Aug 2, 2022

No idea how to fix this. I've tried to install caustics on an M1 Mac dozens of times and succeeded only once with some specific permutation of compiler, Python and JAX versions. It might just be easier to rewrite the root solver entirely in JAX than to fix this.

@fbartolic fbartolic added the bug Something isn't working label Aug 2, 2022
@fbartolic
Copy link
Owner Author

I found a way to get it to work using Rosetta:

  1. Open terminal via Rosetta to the x86 versions of clang in the PATH.
  2. Install jax and jaxlib via conda install -c conda-forge jax jaxlib.
  3. Install caustics withpython setup.py install.

Getting it to work on Apple Silicon will require more effort.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant