You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
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):
install a mambaforge distribution (now called miniforge): instructions
create the qiime2 conda environment for the version you want (qiime2 2026.1 is recommended since q2-SCNIC will be compatible with it): instructions
activate your new qiime2 2026.1 conda environment
conda activate rachis-qiime2-2026.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 mambaWILL respect this global shell variable (but not your .condarc/.mambarc).
conda env config vars set CONDA_SUBDIR=osx-64
deactivate and reactivate your qiime2 conda environment - this allows the changes you just made to take affect
installing
fastsparinto your qiime2 conda environment on mac osx-arm64Caution
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
fastsparinto 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-solverdeals with cross-platform virtual system packages during rosetta emulation (osx-64).if you find a way to install
fastsparwith conda under these conditions, please let me know by creating an issue on this repo!Note
if you're installing
fastsparwithconda installin 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:
mambainstall repeatedly cannot findfastsparin the given channels, even when-c biocondais called (see below)mambadoes not respect it and pulls the actual system architecture (osx-arm64) - this can be seen in the screenshot abovefastspardoes not support mac (and probs linux) osx-arm64, it will not be found in thebioconda/osx-arm64channel and neither will the required dependencies throughconda-forge/osx-arm64fastsparinstall to fail!!!what you need to do to get
fastsparto install with qiime2 in mac osx-arm64 (apple silicon/M chips):mambaforgedistribution (now calledminiforge): instructionsq2-SCNICwill be compatible with it): instructionsCONDA_SUBDIRenvironmental variable toosx-64Important
you STILL need to run this command even though you already ran
conda config --env --set subdir osx-64when you installed the qiime2 environment sincemambaignores environment-level conda configurations (i.e. anything in the environment-level.condarc). DO NOT set your system-wideminiforgeto 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_SUBDIRenvironmental variable to the rosetta emulator (osx-64) every time your qiime2 environment is activated. this is important becausemambaWILL respect this global shell variable (but not your.condarc/.mambarc).conda env config vars set CONDA_SUBDIR=osx-64mambanow uses the rosetta emulator in this environmentthe output should look like this with
platform: osx-64listed at the bottom:fastsparwithmambafastsparinstallOriginally posted by @madiapgar in #22