# Cis tools on ARCHER2

**URL:** <https://cms-helpdesk.ncas.ac.uk/t/cis-tools-on-archer2/554>\
**Category:** Rose/Cylc and FCM\
**Tags:** ARCHER2, PUMATest\
**Created:** [25 April 2022 09:23 UTC](https://cms-helpdesk.ncas.ac.uk/t/cis-tools-on-archer2/554 "2022-04-25T09:23:28Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Leighton\_Regayre](https://dub1.discourse-cdn.com/flex013/user_avatar/cms-helpdesk.ncas.ac.uk/leighton_regayre/32/20_2.png) [@Leighton\_Regayre](https://cms-helpdesk.ncas.ac.uk/u/Leighton_Regayre)\
**Post date:** [25 April 2022 09:23 UTC](https://cms-helpdesk.ncas.ac.uk/t/cis-tools-on-archer2/554/1 "2022-04-25T09:23:28Z")

</div>

Hello,

My suite ‘u-cm987’ fails on the ‘flight\_track\_sim’ task because the ‘iris’ library is not available.

I sought help from archer2 admin and they confirmed my miniconda3 environment is set up correctly.

I also ran the command:  
conda install -c conda-forge cis  
to make the python ‘iris’ library available.

The first line of the associated python script is  
#!/work/n02/n02/lre/miniconda3/bin/python

This would be far easier if iris were commonly available. But, since it’s not could you please explain how I could make sure the task sees the correct miniconda environment?

Thanks very much,

Leighton

---

<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:** [25 April 2022 09:56 UTC](https://cms-helpdesk.ncas.ac.uk/t/cis-tools-on-archer2/554/2 "2022-04-25T09:56:02Z")

</div>

Hi Leighton,

Try setting the PYTHONPATH for the task to point to your miniconda3. At the moment you’re still loading the cray-python 3 environment for the task.

A central IRIS install is on our list of todos.

Regards,  
Ros.

---

<div class="post-metadata">

**Author:** ![Leighton\_Regayre](https://dub1.discourse-cdn.com/flex013/user_avatar/cms-helpdesk.ncas.ac.uk/leighton_regayre/32/20_2.png) [@Leighton\_Regayre](https://cms-helpdesk.ncas.ac.uk/u/Leighton_Regayre)\
**Post date:** [25 April 2022 15:56 UTC](https://cms-helpdesk.ncas.ac.uk/t/cis-tools-on-archer2/554/3 "2022-04-25T15:56:32Z")

</div>

Hi Ros,

I’m not sure if I’ve implemented your suggestion correctly.

I changed the PYTHONPATH for this task in my archer2.rc file to be  
PYTHONPATH=/work/n02/n02/lre/miniconda3/bin/python

Is that what you meant?

I reran with that chage and iris is still not visible.

Thanks,

Leighton

---

<div class="post-metadata">

**Author:** ![simon](https://dub1.discourse-cdn.com/flex013/user_avatar/cms-helpdesk.ncas.ac.uk/simon/32/59_2.png) [@simon](https://cms-helpdesk.ncas.ac.uk/u/simon)\
**Post date:** [27 April 2022 11:07 UTC](https://cms-helpdesk.ncas.ac.uk/t/cis-tools-on-archer2/554/4 "2022-04-27T11:07:39Z")

</div>

Hi,  
Try using `#!/work/y07/shared/umshared/iris/python` at the start of your script.

Simon.

---

<div class="post-metadata">

**Author:** ![Leighton\_Regayre](https://dub1.discourse-cdn.com/flex013/user_avatar/cms-helpdesk.ncas.ac.uk/leighton_regayre/32/20_2.png) [@Leighton\_Regayre](https://cms-helpdesk.ncas.ac.uk/u/Leighton_Regayre)\
**Post date:** [28 April 2022 09:57 UTC](https://cms-helpdesk.ncas.ac.uk/t/cis-tools-on-archer2/554/5 "2022-04-28T09:57:48Z")

</div>

Hi Simon,

Thanks for the suggestion. Is this a test version of a shared iris library?

The flight\_track\_sim task now crashes with multiple errors related to missing python functionality. It doesn’t seem to be able to import, try or use loops.

Thanks,

Leighton

---

<div class="post-metadata">

**Author:** ![simon](https://dub1.discourse-cdn.com/flex013/user_avatar/cms-helpdesk.ncas.ac.uk/simon/32/59_2.png) [@simon](https://cms-helpdesk.ncas.ac.uk/u/simon)\
**Post date:** [28 April 2022 13:38 UTC](https://cms-helpdesk.ncas.ac.uk/t/cis-tools-on-archer2/554/6 "2022-04-28T13:38:46Z")

</div>

Hi Leighton,

It’s iris 2.3.0

Unfortunately there is an issue with my previous answer, try  
`#!/usr/bin/env python_iris`  
instead.

And, if you have the `pre_scipt` option set in the `FLIGHT_TRACK_RESOURCE` config in `site/archer2.rc`, please remove it.
