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

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

Open
Rimagination opened this issue Jul 1, 2024 · 2 comments
Open

Comments

@Rimagination
Copy link

1719820004013

@zhongpengqun
Copy link

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

@tfoster88
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants