# PAYU interfering with mamba

**URL:** https://forum.access-hive.org.au/t/payu-interfering-with-mamba/4187
**Category:** Technical
**Tags:** access-nri, payu, solved, conda, mamba, help
**Created:** [19 February 2025 23:55 UTC](https://forum.access-hive.org.au/t/payu-interfering-with-mamba/4187 "2025-02-19T23:55:17Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![pearseb](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.access-hive.org.au/pearseb/32/1033_2.png) [@pearseb](https://forum.access-hive.org.au/u/pearseb)
#### Post date: [19 February 2025 23:55 UTC](https://forum.access-hive.org.au/t/payu-interfering-with-mamba/4187/1 "2025-02-19T23:55:17Z")

</div>

Hi ACCESS-NRI hard working people,

The new payu version is interfering with my creation of conda environments, for which I use mamba as a faster alternative to conda.

When I enter into Gadi, I always do the following:  
_module use /g/data/vk83/modules_  
_module load payu_

If I run:  
_mamba env create -f my\_env.yml_

I get the following error:  
_bash: /g/data/vk83/apps/base\_conda/bin/mamba: No such file or directory_

Do you know what’s happening?

Pearse

---

<div class="post-metadata">

### Author: ![dkhutch](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.access-hive.org.au/dkhutch/32/510_2.png) [@dkhutch](https://forum.access-hive.org.au/u/dkhutch)
#### Post date: [20 February 2025 00:07 UTC](https://forum.access-hive.org.au/t/payu-interfering-with-mamba/4187/2 "2025-02-20T00:07:11Z")

</div>

FWIW I generally do  
`module unload payu`  
whenever I’m using conda, because of similar interference with `conda analysis` modules.

---

<div class="post-metadata">

### Author: ![dougiesquire](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.access-hive.org.au/dougiesquire/32/16_2.png) [@dougiesquire](https://forum.access-hive.org.au/u/dougiesquire)
#### Post date: [20 February 2025 00:23 UTC](https://forum.access-hive.org.au/t/payu-interfering-with-mamba/4187/3 "2025-02-20T00:23:17Z")

</div>

Yeah, the Payu module uses a shared micromamba installation in `/g/data/vk83`. So you’ll need to unload the module as @dkhutch suggests.

As a general rule, it’s a good idea to only load modules when you need them to avoid these sorts of conflicts.

---

<div class="post-metadata">

### Author: ![heidi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.access-hive.org.au/heidi/32/335_2.png) [@heidi](https://forum.access-hive.org.au/u/heidi)
#### Post date: [20 February 2025 01:59 UTC](https://forum.access-hive.org.au/t/payu-interfering-with-mamba/4187/4 "2025-02-20T01:59:00Z")

</div>



---

<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: [20 February 2025 04:17 UTC](https://forum.access-hive.org.au/t/payu-interfering-with-mamba/4187/5 "2025-02-20T04:17:31Z")

</div>

Would it be more user-friendly for the payu module to only expose the `payu` command rather than including all the conda stuff? E.g. by putting a symlink to `payu` in a new directory and having the module only add that directory to `$PATH`.

---

<div class="post-metadata">

### Author: ![dougiesquire](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.access-hive.org.au/dougiesquire/32/16_2.png) [@dougiesquire](https://forum.access-hive.org.au/u/dougiesquire)
#### Post date: [20 February 2025 04:34 UTC](https://forum.access-hive.org.au/t/payu-interfering-with-mamba/4187/6 "2025-02-20T04:34:37Z")

</div>

^ ping @jo-basevi

---

<div class="post-metadata">

### Author: ![jo-basevi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.access-hive.org.au/jo-basevi/32/1438_2.png) [@jo-basevi](https://forum.access-hive.org.au/u/jo-basevi)
#### Post date: [20 February 2025 22:17 UTC](https://forum.access-hive.org.au/t/payu-interfering-with-mamba/4187/7 "2025-02-20T22:17:00Z")

</div>

> [@Scott](#):
>
> Would it be more user-friendly for the payu module to only expose the `payu` command rather than including all the conda stuff? E.g. by putting a symlink to `payu` in a new directory and having the module only add that directory to `$PATH`.

The latest payu module is deployed using Dale Robert’s work at CLEX of containerising conda environments (forked from the [cms-conda-singularity](https://github.com/coecms/cms-conda-singularity) repository) so it will be similar to the analysis environments. The module sets environment variables to what it would be if `micromamba activate` was run on the un-containerised version of the conda environment. An exception is the`$PATH` outside the container includes the directory of launcher entry-point scripts (e.g. `payu`) that launch the container and runs the command inside the container. It might be possible to remove the conda-specific environment variables, though I’d have to test to see if anything breaks (created related issue [here](https://github.com/ACCESS-NRI/model-release-condaenv/issues/11)).
