aquacropos / aquacrop

AquaCrop-OSPy: Python implementation of AquaCrop-OS
https://aquacropos.github.io/aquacrop/
Apache License 2.0
102 stars 73 forks source link

No module named 'aquacrop.solution.solution_temperature_stress' #164

Open Rimagination opened 5 months ago

Rimagination commented 5 months ago

1719820004013

zhongpengqun commented 4 months ago

I'm facing the same issue, and my OS is Linux (Ubuntu on ARM64), what's your OS?

tfoster88 commented 4 months ago

If you receive an error message such as "No module named..." or "ModuleNotFoundError: No module named... ", please try 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