Open florentdemelezi opened 7 months ago
Thanks @florentdemelezi. If you are getting issues with compiling, usually it can be solved by the following troubleshooting steps:
First, run "python -m aquacrop.scripts.initiate_library" in your terminal, if this generates an error such as "RuntimeError: Attempted to compile AOT function without the compiler used by numpy.distutils present. Cannot find suitable msvc.", then you need to download and install an MSVC compiler such as the one included in Visual Studio build tools (see e.g. https://www.youtube.com/watch?v=p_R3tXSq0KI).
If this doesn't help solve the error message, then you can run aquacrop in pure python using:
import os
os.environ['DEVELOPMENT'] = 'DEVELOPMENT'
This second fix will make the model slower as it turns off the ahead of time compiling which is the common cause of these kinds of error messages
We are looking into alternatives to the numba AOT as its generally been a bit of a pain to maintain, but fixing this will take a few weeks at least
Discussed in https://github.com/aquacropos/aquacrop/discussions/134