# Python problem with RNS, task install\_glm\_startdata

**URL:** https://forum.access-hive.org.au/t/python-problem-with-rns-task-install-glm-startdata/1967
**Category:** rAM3/Regional Nesting Suite
**Tags:** help-needed
**Created:** [26 March 2024 01:33 UTC](https://forum.access-hive.org.au/t/python-problem-with-rns-task-install-glm-startdata/1967 "2024-03-26T01:33:49Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Matt\_Woodhouse](https://avatars.discourse-cdn.com/v4/letter/m/9fc348/32.png) [@Matt\_Woodhouse](https://forum.access-hive.org.au/u/Matt_Woodhouse)
#### Post date: [26 March 2024 01:33 UTC](https://forum.access-hive.org.au/t/python-problem-with-rns-task-install-glm-startdata/1967/1 "2024-03-26T01:33:49Z")

</div>

I have been working with a copy of Regional Nesting Suite by395, (my de207). I had an initial attempt working cleanly earlier this week, but have had problems since the NCI issues yesterday (timing might be a coincidence).

The task install\_glm\_startdata now fails, with the following from job.err:

> Using the cylc session localhost
> 
> Loading cylc7/23.09  
> Loading requirement: mosrs-setup/1.0.1  
> Loading conda/analysis3-23.07  
> Module ERROR: CONDA\_SHLVL=0  
> CONDA\_EXE=/g/data/hh5/public/apps/miniconda3/bin/conda  
> \_CE\_M=  
> PWD=/home/599/mxw599  
> CONDA\_PYTHON\_EXE=/g/data/hh5/public/apps/miniconda3/bin/python  
> \_CE\_CONDA=  
> SHLVL=1  
> PATH=/g/data/hh5/public/apps/miniconda3/condabin:/usr/bin:/bin  
> \_=/bin/env  
> Fatal Python error: init\_import\_site: Failed to import the site module  
> Python runtime state: initialized  
> Traceback (most recent call last):  
> File “/g/data/hh5/public/apps/miniconda3/lib/python3.9/site.py”, line 73,  
> in   
> import os  
> File “/g/data/hh5/public/apps/miniconda3/lib/python3.9/os.py”, line 61, in  
>   
> import posixpath as path  
> File “/g/data/hh5/public/apps/miniconda3/lib/python3.9/posixpath.py”, line  
> 28, in   
> import genericpath  
> ModuleNotFoundError: No module named ‘genericpath’  
> In ‘/g/data/hh5/public/modules/conda/analysis3-23.07’  
> Please contact [root@localhost](mailto:root@localhost)  
> RuntimeError: unable to get file status from ‘/g/data/hr22/apps/cylc7/lib/python2.7/site.py’  
> /local/spool/pbs/mom\_priv/jobs/111766273.gadi-pbs.SC: line 93: ROSE\_DATAC: unbound variable  
> /g/data/hr22/apps/cylc7/cylc\_7.9.7/…/23.09/bin/cylc: line 8: /g/data/hr22/apps/cylc7/23.09/…/cylc\_7.9.7/bin/cylc: Input/output error  
> /g/data/hr22/apps/cylc7/cylc\_7.9.7/…/23.09/bin/cylc: line 8: /g/data/hr22/apps/cylc7/23.09/…/cylc\_7.9.7/bin/cylc: Input/output error

Additionally, the failure is not being reported back to cylc, with the task status remaining as ‘submitted’ despite the failure.

Any help appreciated!

---

<div class="post-metadata">

### Author: ![cbengel](https://avatars.discourse-cdn.com/v4/letter/c/ce7236/32.png) [@cbengel](https://forum.access-hive.org.au/u/cbengel)
#### Post date: [26 March 2024 01:59 UTC](https://forum.access-hive.org.au/t/python-problem-with-rns-task-install-glm-startdata/1967/2 "2024-03-26T01:59:06Z")

</div>

> [@Matt\_Woodhouse](#):
>
> /g/data/hh5/public/apps/miniconda3/bin/conda

Hi Matt,

I usually run an “install\_ec\_startdata” RNS suite.

Last week I had problems with suites that used to run suddenly not running and got around it by rebuilding the executable. Do you want to try that?

The other question is what commands do you run to set up your environment?

I use:

![image](https://us1.discourse-cdn.com/flex020/uploads/access1/original/2X/6/6100635c5f1a832ef51dfb3a340b144cf6e2d0ee.png)

Hope that helps somewhat.

---

<div class="post-metadata">

### Author: ![Scott](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.access-hive.org.au/scott/32/37_2.png) [@Scott](https://forum.access-hive.org.au/u/Scott)
#### Post date: [26 March 2024 02:27 UTC](https://forum.access-hive.org.au/t/python-problem-with-rns-task-install-glm-startdata/1967/3 "2024-03-26T02:27:52Z")

</div>

We’ve been getting reports of strange python failures today specifically on copyq, I wonder if that’s related. Could be something weird with the disks

---

<div class="post-metadata">

### Author: ![Matt\_Woodhouse](https://avatars.discourse-cdn.com/v4/letter/m/9fc348/32.png) [@Matt\_Woodhouse](https://forum.access-hive.org.au/u/Matt_Woodhouse)
#### Post date: [26 March 2024 02:53 UTC](https://forum.access-hive.org.au/t/python-problem-with-rns-task-install-glm-startdata/1967/4 "2024-03-26T02:53:02Z")

</div>

Hi Chermelle, Scott,

Thanks for the suggestions!

I tried using express rather than copyq, and the task ran cleanly and also reported back to cylc gui the correct status of the task (which wasn’t happening before). So I think we have our culprit: problems with copyq.

Cheers,  
Matt

---

<div class="post-metadata">

### Author: ![cbengel](https://avatars.discourse-cdn.com/v4/letter/c/ce7236/32.png) [@cbengel](https://forum.access-hive.org.au/u/cbengel)
#### Post date: [26 March 2024 03:23 UTC](https://forum.access-hive.org.au/t/python-problem-with-rns-task-install-glm-startdata/1967/5 "2024-03-26T03:23:12Z")

</div>


