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 JIT function caching errors in Docker #58

Open
tasansal opened this issue Sep 7, 2022 · 0 comments
Open

Numba JIT function caching errors in Docker #58

tasansal opened this issue Sep 7, 2022 · 0 comments
Labels
bug Something isn't working dependencies Pull requests that update a dependency file

Comments

@tasansal
Copy link
Collaborator

tasansal commented Sep 7, 2022

We enable caching of numba functions so we don't compile them every time. However, this is not "zip safe". Docker happens to install packages as zip files.

We get this error.

RuntimeError: cannot cache function 'ieee2ibm': no locator available for file '/usr/local/lib/python3.9/site-packages/mdio/segy/ibm_float.py'

Solution: Wait till numba 0.57

See numba/numba#4908.

Band-aid solution: set environment variable NUMBA_CACHE_DIR=/tmp

@srib

@tasansal tasansal added bug Something isn't working dependencies Pull requests that update a dependency file labels Sep 7, 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 dependencies Pull requests that update a dependency file
Projects
None yet
Development

No branches or pull requests

1 participant