-
Notifications
You must be signed in to change notification settings - Fork 150
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)
![getvar error](https://private-user-images.githubusercontent.com/126084916/296407648-57ccfcba-c85e-4041-ad95-8ecfc013d241.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQwMzY5ODIsIm5iZiI6MTcyNDAzNjY4MiwicGF0aCI6Ii8xMjYwODQ5MTYvMjk2NDA3NjQ4LTU3Y2NmY2JhLWM4NWUtNDA0MS1hZDk1LThlY2ZjMDEzZDI0MS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODE5JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgxOVQwMzA0NDJaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT00MTQzYjY2YjE2ODdlODFkYTg4YzhkOGIzNGI2OGUyZDgzOTM4N2IwOTliMzlkOTI0ODAwODAzYzE5YWU1M2MxJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.uFT8t9eB-5x0wI-Mnewjohg3_2QITKWBOi9WGufNHuE)
/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: