I may have a similar question. I am also trying to use a cluster and the humann2_test showed no errors, but when I attempt download the full database using:
!/bin/bash
#SBATCH -e slurm.err
#SBATCH -o slurm.out
export PATH=/opt/apps/slurm/bowtie2-2.2.5/:/opt/apps/slurm/metaphlan2:/opt/apps/Python-2.7.10/bin/:$PATH
humann2_databases --download chocophlan full .
humann2_databases --download uniref uniref50_diamond .
I get the following error:
Unable to write to the config file: /opt/apps/Python-2.7.10/lib/python2.7/site-packages/humann2-0.7.0-py2.7.egg/humann2/humann2.cfg
This makes me think HUMAnN2 is trying to alter Python and because Python is a shared resource I don't have writing privileges.
Does that seem like a correct interpretation? And if so, do you have any suggestions for working around this? Perhaps the best approach would be to install Python in my home directory.
Thanks!
Raven