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

Numba caching fails on Docker #53

Closed
AlecThomson opened this issue Mar 26, 2024 · 0 comments · Fixed by #54
Closed

Numba caching fails on Docker #53

AlecThomson opened this issue Mar 26, 2024 · 0 comments · Fixed by #54

Comments

@AlecThomson
Copy link
Owner

From @axshen:

I get this error RuntimeError: cannot cache function 'gaussft': no locator available for file '/opt/conda/envs/racs-tools/lib/python3.8/site-packages/racs_tools/gaussft.py' when running beamcon_2D

Looks like this is the same issue as numba/numba#4032.

Fix is in the above issue, which is to add:

RUN mkdir /tmp/numba_cache & chmod 777 /tmp/numba_cache & NUMBA_CACHE_DIR=/tmp/numba_cache
ENV NUMBA_CACHE_DIR=/tmp/numba_cache

to the Dockerfile.

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

Successfully merging a pull request may close this issue.

1 participant