Wrf-python import error

252 views
Skip to first unread message

Jeevan Kumar Bodaballa

unread,
Aug 9, 2021, 5:08:13 PM8/9/21
to wrfpython-talk
I installed wrf-python with help of Conda 
while I'm importing "from wrf import getvar" I am having below error
Screenshot 2021-08-09 at 23.07.56.png

Michaela Sizemore

unread,
Aug 9, 2021, 5:48:11 PM8/9/21
to wrfpython-talk, jeevan....@gmail.com
Hi,
I believe this is an issue with the compiler you are using. If you use a mac, can you let me know the output of when you type:
which gcc
which gfortran
Did you install with conda-forge (conda install -c conda-forge wrf-python) or just a base conda install (conda install wrf-python)? Using conda-forge may also help resolve this issue if you didn't use it previously when installing.

Jeevan Kumar Bodaballa

unread,
Aug 9, 2021, 5:56:50 PM8/9/21
to wrfpython-talk, misi...@ucar.edu, Jeevan Kumar Bodaballa
Hello , 
Thank you responding 
Yes I am using Mac

Which gcc => /usr/bin/gcc
Which gfortran => /usr/local/bin/gfortran

And I used Conda-forge to install wrf-python 

Michaela Sizemore

unread,
Aug 9, 2021, 6:09:23 PM8/9/21
to wrfpython-talk, jeevan....@gmail.com, Michaela Sizemore
Last question about your Mac, are you using an Intel chip or M1 chip?

Jeevan Kumar Bodaballa

unread,
Aug 9, 2021, 6:31:16 PM8/9/21
to wrfpython-talk, misi...@ucar.edu, Jeevan Kumar Bodaballa
Hi 
Intel chip (MacBook Pro 2020 model)

Michaela Sizemore

unread,
Aug 10, 2021, 10:46:47 AM8/10/21
to wrfpython-talk, jeevan....@gmail.com, Michaela Sizemore
Hi Jeevan,
I am not fully sure where the issue is coming from, but have forwarded this feed over to the other maintainer for wrf-python to see if they have more insight to the issue. In the mean time, you may want to try uninstalling and reinstalling the package or reinstalling using one of the other conda-forge options from the conda-forge package website to see if that resolves the issue. Another alternative is to git clone the wrf-python repository and installing via the instructions on the wrf-python readthedocs page for installing via source code. 
I am going to be out of the office starting tomorrow 8/11 through Friday 8/13, so hopefully we can resolve this issue for you today. 

Reply all
Reply to author
Forward
0 new messages