Question about installing

49 views
Skip to first unread message

Trude Eidhammer

unread,
Jul 23, 2024, 12:52:39 PM7/23/24
to wrfpython-talk
I just tried to install on Casper with wrf-python with
> pip install wrf-python

When I run 
import wrf
I get this error message: 

ImportError: /glade/work/trude/miniconda3/envs/climatebench/lib/python3.9/site-packages/wrf/_wrffortran.cpython-39-x86_64-linux-gnu.so: undefined symbol: _intel_fast_memset 

I am uncertain how to fix this issue

Thanks,
Trude

decker guzman

unread,
Jul 24, 2024, 9:48:15 AM7/24/24
to Trude Eidhammer, wrfpython-talk

The error message you are encountering, ImportError: undefined symbol: _intel_fast_memset, suggests that the WRF Python package is encountering an issue with a missing symbol in a shared library. This often happens due to incompatibility between different versions of the libraries used or the environment not being set up correctly.

Here are some steps you can follow to troubleshoot and resolve this issue:

  1. Check Environment Variables: Ensure that your environment is correctly set up with all necessary environment variables. Specifically, you may need to set the LD_LIBRARY_PATH to include directories where the required Intel libraries are located.


    export LD_LIBRARY_PATH=/path/to/intel/libraries:$LD_LIBRARY_PATH

    Replace /path/to/intel/libraries with the actual path to the Intel libraries on your system.

  2. Reinstall Intel Libraries: If the Intel libraries are not installed or are outdated, you may need to install or update them. This can often be done through the package manager provided by Intel or through your system's package manager.

  3. Update or Reinstall WRF-Python: Sometimes, the problem can be resolved by updating or reinstalling the WRF-Python package. You can do this by running:

    conda update wrf-python

Best regards
Decker

--
You received this message because you are subscribed to the Google Groups "wrfpython-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wrfpython-tal...@ucar.edu.
To view this discussion on the web visit https://groups.google.com/a/ucar.edu/d/msgid/wrfpython-talk/317ac6f1-cb02-429f-8455-142aed16b283n%40ucar.edu.

Ian Dragaud

unread,
Jul 24, 2024, 9:54:18 AM7/24/24
to Trude Eidhammer, wrfpython-talk
Hi,

maybe these information is useful:

Best,
Ian



--
Message has been deleted

Will H

unread,
Aug 9, 2024, 11:38:42 AM8/9/24
to wrfpython-talk, iandr...@lamma.ufrj.br, wrfpython-talk, tr...@ucar.edu, ja...@ucar.edu
So when installing WRF-Python using Conda you need to make sure that you do not update the libraries and keep the files frozen.

Basically conda has updated all the library packages to newer modules and wrf-python hasn't kept up with the updates.  I do believe that wrf-python is being updated slowly but I don't know when it will get a permanent fix.

If you know how to build a conda environment from a .yml file I can share my environment that has kept everything frozen and held back.

Regards,
Will

Ever Daniel Barreto Rojas

unread,
Aug 9, 2024, 11:45:29 AM8/9/24
to wrfpython-talk
Hi Will, I'm interested if you're willing to share your .yml file and instructions on how to install from that, thank you!

Will H

unread,
Aug 18, 2024, 7:30:23 AM8/18/24
to wrfpython-talk, everd...@gmail.com
wrf-python-stable.yml
Reply all
Reply to author
Forward
0 new messages