# Python 2.7 netcdf libraries

**URL:** <https://cms-helpdesk.ncas.ac.uk/t/python-2-7-netcdf-libraries/1870>\
**Category:** Rose/Cylc and FCM\
**Tags:** ARCHER2\
**Created:** [10 November 2025 22:24 UTC](https://cms-helpdesk.ncas.ac.uk/t/python-2-7-netcdf-libraries/1870 "2025-11-10T22:24:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dramauh](https://avatars.discourse-cdn.com/v4/letter/d/c5a1d2/32.png) [@dramauh](https://cms-helpdesk.ncas.ac.uk/u/dramauh)\
**Post date:** [10 November 2025 22:24 UTC](https://cms-helpdesk.ncas.ac.uk/t/python-2-7-netcdf-libraries/1870/1 "2025-11-10T22:24:22Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![RosalynHatcher](https://dub1.discourse-cdn.com/flex013/user_avatar/cms-helpdesk.ncas.ac.uk/rosalynhatcher/32/11_2.png) [@RosalynHatcher](https://cms-helpdesk.ncas.ac.uk/u/RosalynHatcher)\
**Post date:** [11 November 2025 08:47 UTC](https://cms-helpdesk.ncas.ac.uk/t/python-2-7-netcdf-libraries/1870/3 "2025-11-11T08:47:12Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![RosalynHatcher](https://dub1.discourse-cdn.com/flex013/user_avatar/cms-helpdesk.ncas.ac.uk/rosalynhatcher/32/11_2.png) [@RosalynHatcher](https://cms-helpdesk.ncas.ac.uk/u/RosalynHatcher)\
**Post date:** [11 November 2025 14:14 UTC](https://cms-helpdesk.ncas.ac.uk/t/python-2-7-netcdf-libraries/1870/4 "2025-11-11T14:14:48Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![dramauh](https://avatars.discourse-cdn.com/v4/letter/d/c5a1d2/32.png) [@dramauh](https://cms-helpdesk.ncas.ac.uk/u/dramauh)\
**Post date:** [11 November 2025 14:20 UTC](https://cms-helpdesk.ncas.ac.uk/t/python-2-7-netcdf-libraries/1870/5 "2025-11-11T14:20:02Z")

</div>

Hi Ros,

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

> **[UM Post-processing App](https://cms.ncas.ac.uk/unified-model/postproc/)**
>
> This page details how to upgrade postproc in your suite to include tasks to transfer data to JASMIN using Gridftp and migrate data to JASMIN Elastic Tape using the JDMA.

and then this:

> **[Configuring PPTransfer using Globus](https://cms.ncas.ac.uk/unified-model/pptransfer-globus/)**
>
> JASMIN will be retiring the current gridftp server (gridftp1.jasmin.ac.uk) in December 2024. This means that everyone will need to use Globus for data transfers between ARCHER2 and JASMIN. There is some initial setup to do, including authenticating...

finally this:

> **[Migration of UM Data to JASMIN Elastic Tape](https://cms.ncas.ac.uk/unified-model/jdma)**
>
> Instructions on how to add the JDMA app to a UM Suite to enable migration of model data to JASMIN Elastic Tape as part of the UM Workflow.

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