Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation error: integer expression expected #3772

Open
3 tasks done
lguez opened this issue Jan 27, 2025 · 1 comment · May be fixed by conda/constructor#936
Open
3 tasks done

Installation error: integer expression expected #3772

lguez opened this issue Jan 27, 2025 · 1 comment · May be fixed by conda/constructor#936

Comments

@lguez
Copy link

lguez commented Jan 27, 2025

Troubleshooting docs

  • My problem is not solved in the Troubleshooting docs

Anaconda default channels

  • I do NOT use the Anaconda default channels (pkgs/* etc.)

How did you install Mamba?

Mambaforge or latest Miniforge

Search tried in issue tracker

integer expression expected

Latest version of Mamba

  • My problem is not solved with the latest version

Tried in Conda?

Not applicable

Describe your issue

I downloaded Miniforge3-Linux-x86_64.sh, then ran the script. I got the error:

Miniforge3-Linux-x86_64.sh: line 517: [: 1
24: integer expression expected
usage: mamba [-h] [-v] [--no-plugins] [-V] COMMAND ...
mamba: error: argument COMMAND: invalid choice: 'shell' (choose from activate, clean, commands, compare, config, create, deactivate, env, export, info, init, install, list, notices, package, doctor, repoquery, remove, uninstall, rename, run, search, update, upgrade)

I have looked at line 517 of the script:

if [ "$("$PREFIX/bin/mamba" --version | cut -d' ' -f2 | cut -d'.' -f1)" -lt 2 ]; then

If I run:

$PREFIX/bin/mamba --version

I get:

mamba 1.5.12
conda 24.11.3

So the cut commands yield:

1
24

which cannot compare to 2. I think this explains the error. Is this not a bug of the script?

mamba info / micromamba info

mamba version : 1.5.12
     active environment : None
       user config file : /home/guez/.condarc
 populated config files : /mnt/Licorne/miniforge3/.condarc
          conda version : 24.11.3
    conda-build version : not installed
         python version : 3.12.8.final.0
                 solver : libmamba (default)
       virtual packages : __archspec=1=steamroller
                          __conda=24.11.3=0
                          __glibc=2.39=0
                          __linux=6.8.0=0
                          __unix=0=0
       base environment : /mnt/Licorne/miniforge3  (writable)
      conda av data dir : /mnt/Licorne/miniforge3/etc/conda
  conda av metadata url : None
           channel URLs : https://conda.anaconda.org/conda-forge/linux-64
                          https://conda.anaconda.org/conda-forge/noarch
          package cache : /mnt/Licorne/miniforge3/pkgs
                          /home/guez/.conda/pkgs
       envs directories : /mnt/Licorne/miniforge3/envs
                          /home/guez/.conda/envs
               platform : linux-64
             user-agent : conda/24.11.3 requests/2.32.3 CPython/3.12.8 Linux/6.8.0-51-generic linuxmint/22.1 glibc/2.39 solver/libmamba conda-libmamba-solver/24.9.0 libmambapy/1.5.12
                UID:GID : 1000:1000
             netrc file : None
           offline mode : False

Logs

environment.yml

~/.condarc

@jjerphan jjerphan linked a pull request Jan 27, 2025 that will close this issue
3 tasks
@jjerphan
Copy link
Member

Addressed by conda/constructor#936.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants