Hi everyone,
I'm using pythonanywhere to host a dash app and am using numba to speed up the part with a high computation time. This works fine on my local machine, but on the pythonanywhere server I get the following error message:
Untyped global name 'sum': Cannot determine Numba type of <class 'builtin_function_or_method'>
According to the numba documentation 'sum' is a supported function. Does anyone know why it doesn't work on the pythonanywhere server.
You'll find a MWE below. I'm using the pre-installed numba version '0.53.1'.
from numba import njit
@njit
def numba_test():
return sum([1]*1000)
if __name__ == "__main__":
numba_test()