-
Notifications
You must be signed in to change notification settings - Fork 155
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
ImportError -> from wrf import getvar #221
Comments
I'm new to this environment. When attempting to install WRF-Python using the following command: conda install -c conda-forge wrf-python
The following packages will be UPDATED:
ca-certificates 2023.5.7-h8857fd0_0 --> 2023.11.17-h8857fd0_0
certifi 2023.5.7-pyhd8ed1ab_0 --> 2023.11.17-pyhd8ed1ab_0
matplotlib pkgs/main::matplotlib-3.5.2-py39hecd8~ --> conda-forge::matplotlib-3.5.3-py39h6e9494a_2
openssl 1.1.1t-hfd90126_0 --> 1.1.1w-h8a1eda9_0
Proceed ([y]/n)? y
However, during the process, I encountered a 'RemoveError' stating:
RemoveError: 'requests' is a dependency of conda and cannot be removed from conda's operating environment.
![Uploading error_2.png…]()
|
Similar issue here, I did not have wrf-python installed on my machine (M2 Pro). I tried all the conda installation syntaxes provided here: https://anaconda.org/conda-forge/wrf-python. I always get the PackageNotFoundError:
In last resort, I tried with pip, but still got an error (I am only including part of the message here):
Thanks for the help! |
Yeah, WRF-Python is not yet available on conda-forge for M1/M2 machines, but has gotten substantially easier to build (see my comment on #199). Hopefully, we'll get a release over there soon so it's possible to just install using conda. |
Hi everyone,
I'm encountering issues while installing WRF Python. Specifically, I'm unable to import the 'getvar' library from WRF. Could anyone please assist me?
Machine -> Apple M2
which gcc-> /usr/bin/gcc
whicg gfortran -> /opt/homebrew/bin/gfortran
The error message I'm receiving is:
ImportError Traceback (most recent call last)
/var/folders/ld/xm4cx30j32gbl86n_0gb13xh0000gn/T/xpython_3902/2103250201.py in
2 import numpy as np
3 import xarray as xr
----> 4 from wrf import getvar
5 get_ipython().run_line_magic('matplotlib', 'widget')
6 import matplotlib.pyplot as plt
The text was updated successfully, but these errors were encountered: