haesleinhuepf / bia-bob

BIA Bob is a Jupyter+LLM-based assistant for interacting with image data and for working on Bio-image Analysis tasks.
BSD 3-Clause "New" or "Revised" License
93 stars 6 forks source link

crash on Mac M2 installing the recommended environment #69

Open tischi opened 1 year ago

tischi commented 1 year ago

Error:

# >>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<<

    Traceback (most recent call last):
      File "/Users/tischer/mambaforge/lib/python3.10/site-packages/conda/exceptions.py", line 1124, in __call__
        return func(*args, **kwargs)
      File "/Users/tischer/mambaforge/lib/python3.10/site-packages/conda_env/cli/main.py", line 78, in do_call
        exit_code = getattr(module, func_name)(args, parser)
      File "/Users/tischer/mambaforge/lib/python3.10/site-packages/conda/notices/core.py", line 109, in wrapper
        return func(*args, **kwargs)
      File "/Users/tischer/mambaforge/lib/python3.10/site-packages/conda_env/cli/main_create.py", line 154, in execute
        result[installer_type] = installer.install(prefix, pkg_specs, args, env)
      File "/Users/tischer/mambaforge/lib/python3.10/site-packages/mamba/mamba_env.py", line 153, in mamba_install
        transaction.fetch_extract_packages()
    RuntimeError: Found incorrect download: xmlschema. Aborting

`$ /Users/tischer/mambaforge/bin/mamba create -f https://github.com/haesleinhuepf/bia-bob/raw/main/environment.yml`

  environment variables:
                 CIO_TEST=<not set>
  CONDA_AUTO_UPDATE_CONDA=false
        CONDA_DEFAULT_ENV=base
                CONDA_EXE=/Users/tischer/mambaforge/bin/conda
             CONDA_PREFIX=/Users/tischer/mambaforge
    CONDA_PROMPT_MODIFIER=(base)
         CONDA_PYTHON_EXE=/Users/tischer/mambaforge/bin/python
               CONDA_ROOT=/Users/tischer/mambaforge
              CONDA_SHLVL=1
           CURL_CA_BUNDLE=<not set>
                 INFOPATH=/opt/homebrew/share/info:
               LD_PRELOAD=<not set>
                  MANPATH=/opt/homebrew/share/man::
                     PATH=/Users/tischer/mambaforge/bin:/Users/tischer/mambaforge/condabin:/User
                          s/tischer/.rbenv/shims:/Users/tischer/Documents/apache-maven-
                          3.9.4/bin:/Users/tischer/.rbenv/bin:/opt/homebrew/bin:/opt/homebrew/sb
                          in:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbi
                          n:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/us
                          r/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstra
                          p/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/
                          usr/appleinternal/bin
       REQUESTS_CA_BUNDLE=<not set>
            SSL_CERT_FILE=<not set>

     active environment : base
    active env location : /Users/tischer/mambaforge
            shell level : 1
       user config file : /Users/tischer/.condarc
 populated config files : /Users/tischer/mambaforge/.condarc
          conda version : 23.1.0
    conda-build version : not installed
         python version : 3.10.12.final.0
       virtual packages : __archspec=1=arm64
                          __osx=13.5=0
                          __unix=0=0
       base environment : /Users/tischer/mambaforge  (writable)
      conda av data dir : /Users/tischer/mambaforge/etc/conda
  conda av metadata url : None
           channel URLs : https://conda.anaconda.org/conda-forge/osx-arm64
                          https://conda.anaconda.org/conda-forge/noarch
          package cache : /Users/tischer/mambaforge/pkgs
                          /Users/tischer/.conda/pkgs
       envs directories : /Users/tischer/mambaforge/envs
                          /Users/tischer/.conda/envs
               platform : osx-arm64
             user-agent : conda/23.1.0 requests/2.31.0 CPython/3.10.12 Darwin/22.6.0 OSX/13.5
                UID:GID : 503:20
             netrc file : None
           offline mode : False

An unexpected error has occurred. Conda has prepared the above report.
tischi commented 1 year ago

Solution:

mamba clean --all
mamba update mamba -c conda-forge
marabuuu commented 4 months ago

Hi @tischi and @haesleinhuepf,

I encountered the same issue (M2 Pro). The solution worked for me. Should I add it as a note to the Installation instructions in the README.md until it is fixed?

Best, Mara

haesleinhuepf commented 4 months ago

This seems to me like an issue in mamba/conda, so I would prefer to not take any action. I also installed bob last week on a Mac and it worked fine...