# Error: QIIME 2 has no plugin/command named 'mag'.

**URL:** <https://forum.qiime2.org/t/error-qiime-2-has-no-plugin-command-named-mag/34354>\
**Category:** Technical Support\
**Tags:** moshpit\
**Created:** [October 14, 2026, 6:55pm UTC](https://forum.qiime2.org/t/error-qiime-2-has-no-plugin-command-named-mag/34354 "2026-10-14T18:55:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nichole.nusbacher](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/n/50afbb/32.png) [@nichole.nusbacher](https://forum.qiime2.org/u/nichole.nusbacher)\
**Post date:** [October 14, 2026, 6:55pm UTC](https://forum.qiime2.org/t/error-qiime-2-has-no-plugin-command-named-mag/34354/1 "2026-10-14T18:55:20Z")

</div>

I am working through the Moshpit tutorial End-to-end MAG reconstruction [MAG binning - MOSHPIT documentation](https://moshpit.qiime2.org/en/stable/chapters/tutorials/end-to-end-short/binning/) and received this error: **Error: QIIME 2 has no plugin/command named 'mag'**. Here is the actual code:

mosh mag bin-contigs-metabat \  
--i-contigs contigs.qza \  
--i-alignment-maps reads-to-contigs-aln.qza \  
--p-num-threads 4 \  
--p-seed 100 \  
--o-mags mags.qza \  
--o-contig-map contig-map.qza \  
--o-unbinned-contigs unbinned-contigs.qza \  
--verbose

I read through some other forum topics with similar errors. Did the mag plug-in get renamed? The rest of the tutorial has been working. Thank you.

---

<div class="post-metadata">

**Author:** ![SoilRotifer](https://forum.qiime2.org/user_avatar/forum.qiime2.org/soilrotifer/32/21071_2.png) [@SoilRotifer](https://forum.qiime2.org/u/SoilRotifer)\
**Post date:** [October 14, 2026, 6:59pm UTC](https://forum.qiime2.org/t/error-qiime-2-has-no-plugin-command-named-mag/34354/2 "2026-10-14T18:59:22Z")

</div>

Hi @nichole.nusbacher,

Can you provide us with the specific name and version of your conda environment? That is, is it `rachis-qiime2-2026.7` or `rachis-moshpit-2026.7`? Older version?

You should be in the `moshpit` branch.

There have been some rearrangements between versions. But it'd help to know which version you are running.

-Cheers!

---

<div class="post-metadata">

**Author:** ![nichole.nusbacher](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/n/50afbb/32.png) [@nichole.nusbacher](https://forum.qiime2.org/u/nichole.nusbacher)\
**Post date:** [October 14, 2026, 7:53pm UTC](https://forum.qiime2.org/t/error-qiime-2-has-no-plugin-command-named-mag/34354/3 "2026-10-14T19:53:46Z")

</div>

Thank you for asking this question - it prompted the answer. The Moshpit tutorial doesn't include the command to activate the Docker container (adding /bin/bash to the last line in docker run). I found that solution on a different Forum thread. I didn't notice that the version of Moshpit in the Forum thread and the one in the current tutorial were different (2025 vs 2026). When I created the new docker container with the current version, the plug in error was resolved. I got a different fatal error when using MetaBAT 2, but the code worked with SemiBin2. I am only running the tutorial to get an idea how it works so I will troubleshoot the MetaBAT2 error at a later time. Thanks for your help!

---

<div class="post-metadata">

**Author:** ![system](https://forum-qiime2-org.s3.dualstack.us-west-2.amazonaws.com/original/3X/2/1/21af5fe23cb6f4579467c66a9ed94e55274ca7bd.svg) [@system](https://forum.qiime2.org/u/system)\
**Post date:** [November 15, 2026, 1:54am UTC](https://forum.qiime2.org/t/error-qiime-2-has-no-plugin-command-named-mag/34354/4 "2026-11-15T01:54:30Z")

</div>

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
