dniloash / Pywinter

Python lib for Reading/Creating MPAS/WRF-WPS intermediate file
https://pywinter.readthedocs.io/en/latest/
GNU General Public License v3.0
17 stars 6 forks source link

pywinter.winter won't import #10

Open edougherty32 opened 6 months ago

edougherty32 commented 6 months ago

Hi! I cannot get this package to work properly.

import pywinter works just fine, but import pywinter.winter throws the following error:

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

I'm not sure why this is. I am using Python 3.9 on a supercomputer, so any advice you have on how to fix this is welcome.

Thanks!

dniloash commented 6 months ago

Hi, it's related to the Fortran compiler on your system, but I am not sure about the solution. Also I don't have access to that especific environment for testing. I am currently trying to update de installation process in the package but is still pending. I am not sure about your aplication but for now maybe you can generate the files elsewhere. Usually works fine on linux personal computers, Google Colab it's also an option where it works fine. Regards.

edougherty32 commented 6 months ago

I see, thank you for letting me know!

numtas commented 3 months ago

Hey,

I have a similar issue, I am not able to use Pywinter on our HPC. Were you able to figure it out? Using Pywinter will save me a lot of time, but unfortunately I am unable to successfully install it on our HPC. Will my environment specifications help you fix this problem?

dniloash commented 3 months ago

Hello, nothing new. but I found this: https://forum.mmm.ucar.edu/threads/how-to-use-pywinter-for-intermediate-files.17087/#post-42393 you could try.

numtas commented 3 months ago

Hey,

I did try the fix that you suggested. I unloaded all the compilers that i had "exported" and "module loaded" in my bashrc script. I installed using the command "pip install pywinter --no-cache-dir". It was installed successfully but when i tried running my program, I got the following error

ImportError: /home/user15/.conda/envs/cdomod/lib/python3.9/site-packages/KreatE_inter_m_f.cpython-39-x86_64-linux-gnu.so: undefined symbol: __intel_sse2_strnlen