Hi everyone,
I’m having trouble using the xp65 analysis3 environments in the UM RNS, specifically using iris. My suite (u-de207) includes some extra python scripts to post-process the model output, which I’m trying to update to use xp65 instead of hh5 (a bit late I know!)
I’m running the suite with cylc8 (v3.3) in compatibility mode rather than cylc7, as xp65 analysis3 environments > 25.05 aren’t compatible with cylc7 but environments < 25.08 do not have all of the packages I need (iris, mule, xesmf).
iris.load_cube(file_path) works fine outside of the suite but fails with the below error when the script is run from the suite. It looks like it might be a problem with loading the netCDF4 package but I’m not sure?
I’ve updated all references to hh5 to xp65 in the site/nci-gadi/suite-adds.rc and suite-runtime/lams.rc but not having much luck. Any help would be amazing!
Thank you,
Bec
From job.err:
Using the cylc session localhost
Loading cylc/8.3.3
Loading requirement: mosrs-setup/2.0.1
Loading conda/analysis3-25.08
Loading requirement: singularity
Traceback (most recent call last):
File "/home/578/rj9627/cylc-run/u-de207/run1/app/setup_ereefs/bin/get_daily_sst_ancil.py", line 131, in <module>
main(args)
^^^^^^^^^^
File "/home/578/rj9627/cylc-run/u-de207/run1/app/setup_ereefs/bin/get_daily_sst_ancil.py", line 42, in main
ancil_cube = iris.load_cube(ancil_dir+ancil_file).extract(constrain_date)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/g/data/xp65/public/apps/med_conda/envs/analysis3-25.08/lib/python3.11/site-packages/iris/loading.py", line 201, in load_cube
cubes = _load_collection(uris, constraints, callback).combined().cubes()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/g/data/xp65/public/apps/med_conda/envs/analysis3-25.08/lib/python3.11/site-packages/iris/loading.py", line 125, in _load_collection
from iris.fileformats.rules import _MULTIREF_DETECTION
File "/g/data/xp65/public/apps/med_conda/envs/analysis3-25.08/lib/python3.11/site-packages/iris/fileformats/__init__.py", line 17, in <module>
from . import name, netcdf, nimrod, pp, um
File "/g/data/xp65/public/apps/med_conda/envs/analysis3-25.08/lib/python3.11/site-packages/iris/fileformats/netcdf/__init__.py", line 22, in <module>
from .._nc_load_rules.helpers import UnknownCellMethodWarning, parse_cell_methods
File "/g/data/xp65/public/apps/med_conda/envs/analysis3-25.08/lib/python3.11/site-packages/iris/fileformats/_nc_load_rules/helpers.py", line 38, in <module>
import iris.fileformats.cf as cf
File "/g/data/xp65/public/apps/med_conda/envs/analysis3-25.08/lib/python3.11/site-packages/iris/fileformats/cf.py", line 27, in <module>
from iris.fileformats.netcdf import _thread_safe_nc
File "/g/data/xp65/public/apps/med_conda/envs/analysis3-25.08/lib/python3.11/site-packages/iris/fileformats/netcdf/_thread_safe_nc.py", line 15, in <module>
import netCDF4
File "/g/data/xp65/public/apps/med_conda/envs/analysis3-25.08/lib/python3.11/site-packages/netCDF4/__init__.py", line 3, in <module>
from ._netCDF4 import *
ImportError: /g/data/xp65/public/apps/med_conda/envs/analysis3-25.08/lib/python3.11/site-packages/netCDF4/../../.././libmpi.so.40: undefined symbol: mca_common_sm_fini