Since the archer2 upgrade, I am getting an error to do with the python environment on archer2 in u-cu858:
I’ve tried adding the line #!/usr/bin/env python
at the top of the regrid_NEMO4.2_to_BIKE.py script.
I’ve also tried changing the pythonpath to PYTHONPATH=/work/y07/shared/utils/core/python/miniconda2/bin/python
which is where the archer2 helpdesk said python2 can be found after the software upgrade:
They said:
To support NCAS users, my colleague Andy Turner has created a virtual environment that contains python 2 in /work/y07/shared/utils/core/python/miniconda2/ even though HPE no longer supports python2.
If I activate the environment, I get access to both python2 and python3:
rapostol@ln02:~> source /work/y07/shared/utils/core/python/miniconda2/bin/activate
(base) rapostol@ln02:~> python --version
Python 2.7.18 :: Anaconda, Inc.
(base) rapostol@ln02:~> python2 --version
Python 2.7.18 :: Anaconda, Inc.
(base) rapostol@ln02:~> python3 --version
Python 3.6.15
I’m wondering how I can set the python environment to python2 in my rose suite - I tried putting the line source /work/y07/shared/utils/core/python/miniconda2/bin/activate in my .bash_profile on archer2 but this hasn’t made a difference.
The full error I’m getting is:
Lmod is automatically replacing “cce/15.0.0” with “gcc/11.2.0”.
Lmod is automatically replacing “PrgEnv-cray/8.3.3” with “PrgEnv-gnu/8.3.3”.
Due to MODULEPATH changes, the following have been reloaded:
- cray-hdf5-parallel/1.12.2.1 3) cray-netcdf-hdf5parallel/4.9.0.1
- cray-mpich/8.1.23
Currently Loaded Modules:
- craype-x86-rome
- libfabric/1.12.1.2.2.0.0
- craype-network-ofi
- perftools-base/22.12.0
- xpmem/2.5.2-2.4_3.30__gd0f7936.shasta
- bolt/0.8
- epcc-setup-env
- load-epcc-module
- oasis3-mct/2.0/v1/2466
- XIOS/2.0/v1/952
- GC3-PrgEnv/v1
- gcc/11.2.0
- craype/2.7.19
- cray-dsmml/0.2.2
- cray-mpich/8.1.23
- cray-libsci/22.12.1.1
- PrgEnv-gnu/8.3.3
- cray-hdf5-parallel/1.12.2.1
- cray-netcdf-hdf5parallel/4.9.0.1
- hypre/2.25.0
- metis/5.1.0
- parmetis/4.0.3
- scotch/7.0.3
- mumps/5.5.1
- superlu/5.2.2
- superlu-dist/8.1.2
- petsc/3.18.5
- nco/5.1.6
Traceback (most recent call last):
File “/work/n02/n02/rutrns/cylc-run/u-cu858/share/fcm_make_unicicles/scripts/bin/regrid_NEMO4.2_to_BIKE.py”, line 4, in
import numpy as np
ImportError: No module named numpy
[FAIL] $PYTHON $ISCRIPDIR/regrid_NEMO4.2_to_BIKE.py --input $PREICE_OCOUPLE_NC --output $PREICE_NEMO_REG_HDF <<‘STDIN’
[FAIL]
[FAIL] ‘STDIN’ # return-code=1
2023-07-20T09:22:54Z CRITICAL - failed/EXIT