Stream: python-questions

Topic: ✔ pywinter


view this post on Zulip Erin Dougherty (May 06 2024 at 21:45):

Hi,

I am trying to use pywinter to produce intermediate file formats for MPAS-A. I am able to install this package to a virtual environment of mine on Casper, but when I try to import the package via:

import pywinter.winter

This fails with the following error message:
ImportError: /glade/u/home/doughert/miniconda3/envs/pangeo3/lib/python3.9/site-packages/KreatE_inter_m_f.cpython-39-x86_64-linux-gnu.so: undefined symbol: _intel_fast_memset

Does anyone know how to fix this? Thanks!

view this post on Zulip Katelyn FitzGerald (May 07 2024 at 03:46):

You may need to unload your compiler modules so that the package builds using the compilers in your conda env (there's some Fortran in pywinter that's making things a bit complicated). There might be a smoother way to do this, but it works at least.

When reinstalling you'll probably also need to tell pip not to use the cache: pip install pywinter --no-cache-dir

view this post on Zulip Erin Dougherty (May 08 2024 at 14:56):

Thanks, Katelyn! This worked great, so thanks for the help!

view this post on Zulip Notification Bot (May 08 2024 at 15:19):

Katelyn FitzGerald has marked this topic as resolved.

view this post on Zulip Daniel Howard (May 22 2024 at 20:01):

Just adding that I'll be adding this solution to this WRF/MPAS forum request as well. https://forum.mmm.ucar.edu/threads/how-to-use-pywinter-for-intermediate-files.17087/

Similarly, a request came in on this question to rchelp.ucar.edu and appreciate the insight here.


Last updated: May 16 2025 at 17:14 UTC