Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

casegen error on Hera #523

Open
juliasimonson-noaa opened this issue Sep 30, 2024 · 4 comments
Open

casegen error on Hera #523

juliasimonson-noaa opened this issue Sep 30, 2024 · 4 comments
Labels

Comments

@juliasimonson-noaa
Copy link

I'm trying to generate a driver file on Hera using one of the casegen scripts (UFS_forcing_ensemble_generator.py), but when I ran the script I get the following error:

Traceback (most recent call last):
File "./UFS_forcing_ensemble_generator.py", line 8, in ‹module>
from netCDF4 import Dataset
File "/scratch1/NCEPDEV/nems/role.epic/spack-stack/spack-stack-1.6.0/envs/unified-env-rocky8/install/intel/2021.5.0/py-netcdf4-1.5.8-qs672u4/lib/python3.10/site-packages/netCDF4/init-py" , line 3, in ‹module>
from •_netCDF4 import *
ModuleNotFoundError: No module named 'netCDF4._netCDF4'

Prior to running the script, I had used Hera_intel.lua to load the necessary modules and had activated the conda environment env_ufscasegen.

@dustinswales dustinswales transferred this issue from NCAR/ccpp-physics Sep 30, 2024
@dustinswales
Copy link
Collaborator

@juliasimonson-noaa Sorry you having this issue (Moving this to the CCPP SCM repo where the experts can chime in).
Interestingly, I just noticed that my python environments are no longer working with the SCM, with the same netCDF4 error, so I wonder if something is going on with conda/anaconda on Hera?
@hertneky @mkavulich @scrasmussen Have you run into any issues on Hera with the SCM in the past day or so?

@dustinswales
Copy link
Collaborator

@juliasimonson-noaa I think there is a problem with the modules being loaded by the SCM. Can you try removing lines 12-14 from ccpp-scm/scm/etc/modules/hera_intel.lua , and then load the environment (>ml hera_intel), and rerun?

@juliasimonson-noaa
Copy link
Author

@dustinswales I removed the lines and loading the environment, was able to avoid the netCDF4 error but still had issues running the SCM. But those issues might be due to something else, I was able to get it to work by running the casegen script in one terminal and running the SCM with hera_intel loaded in another terminal.

@dustinswales
Copy link
Collaborator

@juliasimonson-noaa Good to hear. We are working on a fix for the environment conflict.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants