# Iris package can not be found

**URL:** <https://cms-helpdesk.ncas.ac.uk/t/iris-package-can-not-be-found/1361>\
**Category:** JULES\
**Created:** [8 March 2024 14:49 UTC](https://cms-helpdesk.ncas.ac.uk/t/iris-package-can-not-be-found/1361 "2024-03-08T14:49:51Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![gwy](https://avatars.discourse-cdn.com/v4/letter/g/8e8cbc/32.png) [@gwy](https://cms-helpdesk.ncas.ac.uk/u/gwy)\
**Post date:** [8 March 2024 14:49 UTC](https://cms-helpdesk.ncas.ac.uk/t/iris-package-can-not-be-found/1361/1 "2024-03-08T14:49:51Z")

</div>

Dear Patrick,

I am trying to run the bench marking suite (u-bx465) by Heather Ashton and I came across the ancillary error. Then I saw your conversation with MDeKauwe two years ago.

> [Wall time issue - related to JASMIN env?](https://cms-helpdesk.ncas.ac.uk/t/wall-time-issue-related-to-jasmin-env/779)

I have run his suite (u-cr731, my local copy is u-de307) which has been adjusted for JASMIN and it works. However, when I came to bench mark analysis this error poped up for the Iris module.

> Lmod has detected the following error: The following module(s) are unknown:  
> “scitools”
> 
> Please check the spelling or version number. Also try “module spider …”  
> It is also possible your cache file is out-of-date; it may help to try:  
> $ module --ignore\_cache load “scitools”
> 
> Also make sure that all modulefiles written in TCL start with the string  
> #%Module
> 
> Traceback (most recent call last):  
> File “/home/users/gwy1998/cylc-run/u-de307/lib/python/benchmark\_analysis.py”, line 20, in   
> import iris  
> ModuleNotFoundError: No module named ‘iris’  
> 2024-03-07T19:13:59Z CRITICAL - failed/EXIT

I wonder if you know anything about this error.

Best,  
Wenyao

---

<div class="post-metadata">

**Author:** ![pmcguire](https://avatars.discourse-cdn.com/v4/letter/p/b782af/32.png) [@pmcguire](https://cms-helpdesk.ncas.ac.uk/u/pmcguire)\
**Post date:** [8 March 2024 15:39 UTC](https://cms-helpdesk.ncas.ac.uk/t/iris-package-can-not-be-found/1361/2 "2024-03-08T15:39:10Z")

</div>

Hi Wenyao  
If you’re missing iris, you might need to do a module load jaspy or a module load jaspy/2.7 (depending on whether you are using Python 3 or Python 2.7) before you run your suite. Or you can instead do the module load inside your suite.  
Patrick

---

<div class="post-metadata">

**Author:** ![gwy](https://avatars.discourse-cdn.com/v4/letter/g/8e8cbc/32.png) [@gwy](https://cms-helpdesk.ncas.ac.uk/u/gwy)\
**Post date:** [8 March 2024 16:00 UTC](https://cms-helpdesk.ncas.ac.uk/t/iris-package-can-not-be-found/1361/3 "2024-03-08T16:00:41Z")

</div>

Dear Patrick,

Thanks for your reply.

I have got a bench mark analysis python file in the lib folder in my suite where iris will be imported.  
Should I put a module load jaspy before that import command if I want to load it inside my suite?

> ![Screenshot 2024-03-08 at 15.55.47](https://europe1.discourse-cdn.com/flex013/uploads/cms_support/original/1X/6d125b9e7923354bb6c13f098ed493ceff972e10.jpeg)

Or it will be more suitable to put it together where ‘scitools’ will be loaded in the file under the bin folder? Is the missing of jaspy module also the reason why ‘scitools’ can’t not be loaded?

> ![Screenshot 2024-03-08 at 15.56.21](https://europe1.discourse-cdn.com/flex013/uploads/cms_support/original/1X/dd6b5a7f42ab2aa534fa91f3c0136add2bbdd518.png)

Thanks again for your help.

Best,  
Wenyao

---

<div class="post-metadata">

**Author:** ![pmcguire](https://avatars.discourse-cdn.com/v4/letter/p/b782af/32.png) [@pmcguire](https://cms-helpdesk.ncas.ac.uk/u/pmcguire)\
**Post date:** [8 March 2024 19:32 UTC](https://cms-helpdesk.ncas.ac.uk/t/iris-package-can-not-be-found/1361/4 "2024-03-08T19:32:00Z")

</div>

Hi Wenyao  
The module load jaspy should be run before you start python.  
Patrick

---

<div class="post-metadata">

**Author:** ![gwy](https://avatars.discourse-cdn.com/v4/letter/g/8e8cbc/32.png) [@gwy](https://cms-helpdesk.ncas.ac.uk/u/gwy)\
**Post date:** [10 March 2024 13:04 UTC](https://cms-helpdesk.ncas.ac.uk/t/iris-package-can-not-be-found/1361/5 "2024-03-10T13:04:03Z")

</div>

Dear Patrick,

Thanks for suggesting loading jaspy. I did what you suggested load the module in the termina outside the auite but it did not solve the issue.I wonder if I am doing it the right way?

Best,  
Wenyao

---

<div class="post-metadata">

**Author:** ![pmcguire](https://avatars.discourse-cdn.com/v4/letter/p/b782af/32.png) [@pmcguire](https://cms-helpdesk.ncas.ac.uk/u/pmcguire)\
**Post date:** [11 March 2024 11:53 UTC](https://cms-helpdesk.ncas.ac.uk/t/iris-package-can-not-be-found/1361/6 "2024-03-11T11:53:47Z")

</div>

Hi Wenyao:  
If the `module load jaspy` doesn’t work when doing that before you run your suite, then you can try the other suggestion that I gave. The other suggestion was to do `module load jaspy` inside your suite, before you start running `python`. Do you see where in your suite that you start to run `python`?  
Patrick

---

<div class="post-metadata">

**Author:** ![gwy](https://avatars.discourse-cdn.com/v4/letter/g/8e8cbc/32.png) [@gwy](https://cms-helpdesk.ncas.ac.uk/u/gwy)\
**Post date:** [11 March 2024 13:20 UTC](https://cms-helpdesk.ncas.ac.uk/t/iris-package-can-not-be-found/1361/7 "2024-03-11T13:20:23Z")

</div>

Dear Patrick,

Thanks for the reply. I saw some ‘module load’ commands in the suite.rc file. I wonder if that’s where I should put the `jaspy` load line in? In addiction, I guess this means python 2.7 is used in stead of python3? Is there a way of changing.

 ![Screenshot 2024-03-11 at 13.19.01](https://europe1.discourse-cdn.com/flex013/uploads/cms_support/original/1X/2530717f0eaa3079ec37fe06d67242aa2b0537a9.png)

Best,  
Wenyao

---

<div class="post-metadata">

**Author:** ![pmcguire](https://avatars.discourse-cdn.com/v4/letter/p/b782af/32.png) [@pmcguire](https://cms-helpdesk.ncas.ac.uk/u/pmcguire)\
**Post date:** [11 March 2024 15:06 UTC](https://cms-helpdesk.ncas.ac.uk/t/iris-package-can-not-be-found/1361/8 "2024-03-11T15:06:34Z")

</div>

Hi Wenyao  
You can try putting a module load jaspy/2.7 there.  
Patrick

---

<div class="post-metadata">

**Author:** ![gwy](https://avatars.discourse-cdn.com/v4/letter/g/8e8cbc/32.png) [@gwy](https://cms-helpdesk.ncas.ac.uk/u/gwy)\
**Post date:** [12 March 2024 10:45 UTC](https://cms-helpdesk.ncas.ac.uk/t/iris-package-can-not-be-found/1361/9 "2024-03-12T10:45:27Z")

</div>

Dear Patrick,

Thanks a lot for your help. It is now working.

Best,  
Wenyao

---

<div class="post-metadata">

**Author:** ![pmcguire](https://avatars.discourse-cdn.com/v4/letter/p/b782af/32.png) [@pmcguire](https://cms-helpdesk.ncas.ac.uk/u/pmcguire)\
**Post date:** [12 March 2024 15:31 UTC](https://cms-helpdesk.ncas.ac.uk/t/iris-package-can-not-be-found/1361/10 "2024-03-12T15:31:33Z")

</div>

Yay!  
Congrats, Wenyao!  
Patrick

---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/flex013/uploads/cms_support/original/1X/1fd2411499ffcbc299fe756cd5cdf26e44956558.png) [@system](https://cms-helpdesk.ncas.ac.uk/u/system)\
**Post date:** [11 April 2024 15:32 UTC](https://cms-helpdesk.ncas.ac.uk/t/iris-package-can-not-be-found/1361/11 "2024-04-11T15:32:16Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
