Python 2.7 netcdf libraries

Hi community,

I have just finished porting what I believe was an ARCHER suite to ARCHER2 (cycle 7). The suite was able to compile and run the model, but the postproc_nemo/postproc_nemo_grid step failed because Python 2.7 could not find a required library. There are also a few warnings that I would like to try to fix. Do you have any idea what might be causing the issue?

[WARN] file:atmospp.nl: skip missing optional source: namelist:moose_arch
[WARN] file:nemocicepp.nl: skip missing optional source: namelist:moose_arch
[WARN] file:atmospp.nl: skip missing optional source: namelist:script_arch
[WARN] file:nemocicepp.nl: skip missing optional source: namelist:script_arch
[WARN] [SUBPROCESS]: Command: python2.7 /work/n02/n02/egavilan/cylc-run/u-du136/share/fcm_make_pp/build/bin/icb_combrest.py -f /work/n02/n02/egavilan/cylc-run/u-du136/share/data/History_Data/NEMOhist/du136o_icebergs_19610101_restart_ -n 840 -o /work/n02/n02/egavilan/cylc-run/u-du136/share/data/History_Data/NEMOhist/du136o_icebergs_19610101_restart.nc
[SUBPROCESS]: Error = 1:
Traceback (most recent call last):
File “/work/n02/n02/egavilan/cylc-run/u-du136/share/fcm_make_pp/build/bin/icb_combrest.py”, line 2, in
from netCDF4 import Dataset
File “/work/y07/shared/python/core/netcdf4/1.6.4/lib/python3.9/site-packages/netCDF4/init.py”, line 3, in
from ._netCDF4 import *
ImportError: No module named _netCDF4

[WARN] icb_combrest: Error=1
Traceback (most recent call last):
File “/work/n02/n02/egavilan/cylc-run/u-du136/share/fcm_make_pp/build/bin/icb_combrest.py”, line 2, in
from netCDF4 import Dataset
File “/work/y07/shared/python/core/netcdf4/1.6.4/lib/python3.9/site-packages/netCDF4/init.py”, line 3, in
from ._netCDF4 import *
ImportError: No module named _netCDF4

→ Failed to rebuild file: du136o_icebergs_19610101_restart
[ERROR] /work/y07/shared/umshared/nemo/utils/src/REBUILD_NEMO/BLD/bin/rebuild_nemo.exe rebuild_DU136O_ICEBERGS_19610101_RESTART: Error=1
→ Failed to rebuild file: /work/n02/n02/egavilan/cylc-run/u-du136/share/data/History_Data/NEMOhist/du136o_icebergs_19610101_restart.nc
[FAIL] Command Terminated
[FAIL] Terminating PostProc…
[FAIL] main_pp.py nemo <<‘STDIN
[FAIL]
[FAIL] ‘STDIN’ # return-code=1
2025-11-10T21:50:22Z CRITICAL - failed/EXIT

PS: the idx is u-du136

Best regards,

Estanislao

Hi Estanislao,

The suite is using a very old version of ARCHER2 postproc which won’t work anymore. I’ll send over some instructions on how to upgrade it shortly.

Cheers,
Ros.

Hi Estanislao,

It looks like you have been editing the suite since I looked at it first thing this morning which has made it very difficult for me to now advise.

Have you just edited the rose-app.conf files or have you run the upgrade macros?

Regards,
Ros

Hi Ros,

yes sorry. You mentioned that my postproc was very old so I followed this:

and then this:

finally this:

The suited was able to finish. Now I am trying to find where I sent the things….:rofl:.