mamba-org / mamba

The Fast Cross-Platform Package Manager
https://mamba.readthedocs.io
BSD 3-Clause "New" or "Revised" License
6.97k stars 359 forks source link

Post link scripts fail when using micromamba in constructor #3575

Open chrisburr opened 3 weeks ago

chrisburr commented 3 weeks ago

Troubleshooting docs

Anaconda default channels

How did you install Mamba?

Mambaforge or latest Miniforge

Search tried in issue tracker

conda-standalone

Latest version of Mamba

Tried in Conda?

Not applicable

Describe your issue

When using micromamba in conda constructor post link scripts fail:

Linking gdk-pixbuf-2.42.12-h7ddc832_0
Error unknow MAMBA_EXE: "/var/folders/1g/q2y74s696ng0v_cmb9sv7qgr0000gn/T/tmp.jbQeYhceBX/fake-home/micromambaexample/_conda", filename must be mamba or micromamba
/var/folders/1g/q2y74s696ng0v_cmb9sv7qgr0000gn/T/mambafu7rfzq1uyo: line 3: _conda: command not found

Linking gts-0.7.6-he42f4ea_4
Linking pip-24.3.1-pyh145f28c_0
Linking cairo-1.18.0-hb4a6bf7_3
Linking libgd-2.3.3-hac1b3a8_10
Linking harfbuzz-9.0.0-h997cde5_1
Linking pango-1.54.0-h9ee27a3_2
Linking gtk2-2.24.33-h91d5085_5
Linking librsvg-2.58.4-h40956f1_0
Error unknow MAMBA_EXE: "/var/folders/1g/q2y74s696ng0v_cmb9sv7qgr0000gn/T/tmp.jbQeYhceBX/fake-home/micromambaexample/_conda", filename must be mamba or micromamba
/var/folders/1g/q2y74s696ng0v_cmb9sv7qgr0000gn/T/mambafyv3elqcc83: line 3: _conda: command not found

Linking graphviz-12.0.0-hbf8cc41_0
Error unknow MAMBA_EXE: "/var/folders/1g/q2y74s696ng0v_cmb9sv7qgr0000gn/T/tmp.jbQeYhceBX/fake-home/micromambaexample/_conda", filename must be mamba or micromamba
/var/folders/1g/q2y74s696ng0v_cmb9sv7qgr0000gn/T/mambaf5ajrk6lett: line 3: _conda: command not found

To reproduce create construct.yaml containing:

name: MicromambaExample
version: 0.0.1
channels:
  - conda-forge

write_condarc: False

specs:
  - graphviz

And then run:

$ micromamba create --name test constructor micromamba
$ micromamba activate test
$ constructor . --conda-exe $CONDA_PREFIX/bin/micromamba
$ HOME=$PWD/fake-home bash MicromambaExample-0.0.1-MacOSX-arm64.sh

mamba info / micromamba info

No response

Logs

No response

environment.yml

No response

~/.condarc

No response