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

Apple build problems #527

Open
skeenan opened this issue Oct 18, 2024 · 0 comments
Open

Apple build problems #527

skeenan opened this issue Oct 18, 2024 · 0 comments

Comments

@skeenan
Copy link

skeenan commented Oct 18, 2024

After some effort I was able to get a build on Apple M1 using

https://github.com/PhilipDeegan/tick/tree/releases

When I import I now see the error below, seems to be due to conflict with the NumPy extension _multiarray_umath and a failure during the initialization of the _tick_cpp module. Any ideas on how to fix?

❯ python -c "import tick.tick_cpp; print(dir(tick.tick_cpp))"

Traceback (most recent call last):
File "/Users/foo/miniforge3/envs/clean_env/lib/python3.12/site-packages/numpy/init.py", line 114, in
from numpy.config import show as show_config
File "/Users/foo/miniforge3/envs/clean_env/lib/python3.12/site-packages/numpy/config.py", line 4, in
from numpy._core._multiarray_umath import (
File "/Users/foo/miniforge3/envs/clean_env/lib/python3.12/site-packages/numpy/_core/init.py", line 23, in
from . import multiarray
File "/Users/foo/miniforge3/envs/clean_env/lib/python3.12/site-packages/numpy/_core/multiarray.py", line 10, in
from . import overrides
File "/Users/foo/miniforge3/envs/clean_env/lib/python3.12/site-packages/numpy/_core/overrides.py", line 8, in
from numpy._core._multiarray_umath import (
SystemError: initialization of _multiarray_umath failed without raising an exception
Traceback (most recent call last):
File "", line 1, in
File "/Users/foo/git-checkouts/tick/tick/tick_cpp/init.py", line 1, in
from .tick_cpp import *
File "/Users/foo/git-checkouts/tick/tick/tick_cpp/tick_cpp.py", line 10, in
from . import _tick_cpp
RuntimeError: CPU dispatcher tracer already initlized

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant