# Humann=4.0.0a1 : MinPath12hmp.py:804: SyntaxWarning

**URL:** <https://forum.biobakery.org/t/humann-4-0-0a1-minpath12hmp-py-syntaxwarning/8606>\
**Category:** HUMAnN\
**Created:** [November 6, 2025, 2:15pm UTC](https://forum.biobakery.org/t/humann-4-0-0a1-minpath12hmp-py-syntaxwarning/8606 "2025-11-06T14:15:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tonima\_Rahman](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/tonima_rahman/32/3339_2.png) [@Tonima\_Rahman](https://forum.biobakery.org/u/Tonima_Rahman)\
**Post date:** [November 6, 2025, 2:15pm UTC](https://forum.biobakery.org/t/humann-4-0-0a1-minpath12hmp-py-syntaxwarning/8606/1 "2025-11-06T14:15:29Z")

</div>

Hi,

I am using humann=4.0.0a1 with metaphlan=4.1.1. I am getting the following error.

.conda/envs/biobakery4/lib/python3.12/site-packages/humann/quantify/MinPath12hmp.py:804: SyntaxWarning: invalid escape sequence ‘\d’

m = re.match(‘^[^\d]+(?P\d+)’, aline)

Could you please provide instructions how to solve this issue?

Thank you!

---

<div class="post-metadata">

**Author:** ![franzosa](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/franzosa/32/3511_2.png) [@franzosa](https://forum.biobakery.org/u/franzosa)\
**Post date:** [December 5, 2025, 9:21pm UTC](https://forum.biobakery.org/t/humann-4-0-0a1-minpath12hmp-py-syntaxwarning/8606/2 "2025-12-05T21:21:24Z")

</div>

I believe this is a result of changes in Python’s regex engine in v3.12+. If you install HUMAnN in an earlier Python environment (e.g. 3.11) it should resolve this. We’ll work on ironing out these Python issues, since 3.12 and 3.13 have been out for a couple of years at this point and we should support them.

---

<div class="post-metadata">

**Author:** ![handibles](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/handibles/32/1191_2.png) [@handibles](https://forum.biobakery.org/u/handibles)\
**Post date:** [October 5, 2026, 4:08pm UTC](https://forum.biobakery.org/t/humann-4-0-0a1-minpath12hmp-py-syntaxwarning/8606/3 "2026-10-05T16:08:23Z")

</div>

see [Troubleshooting humann in 2026 CE - #3 by handibles](https://forum.biobakery.org/t/troubleshooting-humann-in-2026-ce/9074/3) for working install along these lines.
