Error when import AOT compiled function in other njit function

I don’t know of any workaround for this at the moment. You’re best bet is to use njit(cache=True) for now. However, it seems like the devs will be moving toward better portability/cross-linking support in numba in the future. But, I wouldn’t be surprised if there was a solution to this in a year or two: Proposal: Numba 2023 MVP