NCAR / wrf-python

A collection of diagnostic and interpolation routines for use with output from the Weather Research and Forecasting (WRF-ARW) Model.
https://wrf-python.readthedocs.io
Apache License 2.0
411 stars 155 forks source link

wrf-python conflict woth scipy #140

Closed kasrash closed 2 years ago

kasrash commented 3 years ago

Dear all,

Wrf-python and scipy are not compatible woth each other, so I can’t install both of them on the same environment. I would be grateful if you could help me to solve this issue.

michaelavs commented 3 years ago

Hi @kasrash Would you mind providing a code snippet for how you are attempting to download SciPy/WRF-python? I'm not too sure why you may be having this issue as I currently have WRF-python and SciPy installed in the same environment with no issue, so I'm curious to see what may not be working correctly for your environment.

kasrash commented 3 years ago

Hi @michaelavs , Thank you for your response. I have anaconda latest version installed on my machine (I’m using macOS Big Sur if it matters), and when I try to install wrf-python using the command “conda install -c conda-forge wrf-python”, it says that I have some conflicts. Then, I created a new environment for wrf-python and I was able to install it on the new environment without any issues. However, when I tried to install SciPy after installing wrf-python, I received the conflict error again. I also tried to install SciPy using pip since I had the same issue with netCDF4 package and using pip solved the issue, but after installi SciPy using pip, wrf-python stopped working and I wasn’t able to import it.

michaelavs commented 3 years ago

Hi, I've tried copying your procedure by creating a new, empty conda environment, then using conda to install SciPy then wrf-python (assuming you originally had SciPy installed before WRF-Python). I then also tried a new, separate environment and installed WRF-python first and SciPy second (as you described in your second attempt). In both situations, I unfortunately wasn't able to recreate the issue you are having. Could you please type conda list into your terminal with the original environment activated and tell me the versions for SciPy and (if it is listed) WRF-python? My thought is that maybe there is a problem with your SciPy version and that's why you are having issues. On my system, I'm using SciPy version 1.6.0 and WRF-python version 1.3.2.5.

kasrash commented 3 years ago

Hi again, Thank you very much for your tests. In one of my environments where I have SciPy installed the version is 1.5.2, and in the other environment where wrf-python is installed the version of wrf-python is 1.3.2.5. Based on your test I have to install version 1.6.0 of SciPy. However, I'm wondering why conda has installed and older version of SciPy!