Skip to content

fastspar install is weird in mac arm64 with qiime2 2026.1 #32

Description

@madiapgar

installing fastspar into your qiime2 conda environment on mac osx-arm64

Caution

the following instructions currently DO NOT WORK with qiime2 2026.4 and will uninstall ALL of your qiime2 plugins (yes, I mean literally all of them)!! for further information, see the issue comments below.

Warning

if you're attempting to install fastspar into a newer qiime2 conda environment (2026 and above) on mac osx-arm64 (apple silicon, M chips), conda install -c bioconda -c conda-forge fastspar==1.0.0 (and any of its variations) WILL NOT WORK!!

this is because of the way that the conda-libmamba-solver deals with cross-platform virtual system packages during rosetta emulation (osx-64).

if you find a way to install fastspar with conda under these conditions, please let me know by creating an issue on this repo!

Note

if you're installing fastspar with conda install in mac osx-arm64, you NEED to use the rosetta emulator (conda config --set subdir osx-64) regardless of whether you're installing in a qiime environment or not!

THE ISSUE:mamba install repeatedly cannot find fastspar in the given channels, even when -c bioconda is called (see below)

Image
  • this is because even with the conda subdir set to osx-64, mamba does not respect it and pulls the actual system architecture (osx-arm64) - this can be seen in the screenshot above
  • since fastspar does not support mac (and probs linux) osx-arm64, it will not be found in the bioconda/osx-arm64 channel and neither will the required dependencies through conda-forge/osx-arm64
    • this will cause your fastspar install to fail!!!

what you need to do to get fastspar to install with qiime2 in mac osx-arm64 (apple silicon/M chips):

  1. install a mambaforge distribution (now called miniforge): instructions
  2. create the qiime2 conda environment for the version you want (qiime2 2026.1 is recommended since q2-SCNIC will be compatible with it): instructions
  3. activate your new qiime2 2026.1 conda environment
conda activate rachis-qiime2-2026.1
  1. set the default system CONDA_SUBDIR environmental variable to osx-64

Important

you STILL need to run this command even though you already ran conda config --env --set subdir osx-64 when you installed the qiime2 environment since mamba ignores environment-level conda configurations (i.e. anything in the environment-level .condarc). DO NOT set your system-wide miniforge to the rosetta emulator (running the conda config command above without --env) since it can break your entire conda install by getting your system architecture confused (trust me, I've done this many times)

this command forces conda to set the global shell CONDA_SUBDIR environmental variable to the rosetta emulator (osx-64) every time your qiime2 environment is activated. this is important because mamba WILL respect this global shell variable (but not your .condarc/.mambarc).

conda env config vars set CONDA_SUBDIR=osx-64
  1. deactivate and reactivate your qiime2 conda environment - this allows the changes you just made to take affect
conda deactivate rachis-qiime2-2026.1

conda activate rachis-qiime2-2026.1
  1. verify that mamba now uses the rosetta emulator in this environment
mamba info

the output should look like this with platform: osx-64 listed at the bottom:

Image
  1. now you can finally install fastspar with mamba
mamba install -c bioconda -c conda-forge fastspar==1.0.0
  1. verify your fastspar install
fastspar --help

Originally posted by @madiapgar in #22

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions