Pyrhon version issue of HUMAnN4.0.0a

Dear bioBakery team,

I am using HUMAnN3 series very well and have recently tried to use HUMAnN4.0.0a.
When I install and run HUMAnN4.0.0a in the conda environment, I get an error TypeError: super() argument 1 must be type, not classobj.
I found that this error cause by the version of python in conda environment was python2, so I rebuilt the environment with specifying python=3.7 according to the manual.
But during the installation of HUMAnN4.0.0a, it stopped since HUMAnN4.0.0a required python=2.7.
this is the error message:

conda install humann=4.0.0a1 -c biobakery -c bioconda
Channels:
 - biobakery
 - bioconda
 - conda-forge
Platform: linux-64
Collecting package metadata (repodata.json): done
Solving environment: / warning  libmamba Added empty dependency for problem type SOLVER_RULE_UPDATE failed

LibMambaUnsatisfiableError: Encountered problems while solving:
  - package humann-4.0.0a1-py_0 requires python_abi 2.7.* *_cp27mu, but none of the providers can be installed

Could not solve for environment specs
The following packages are incompatible
├─ humann 4.0.0a1**  is installable and it requires
│  └─ python_abi 2.7.* *_cp27mu, which requires
│     └─ python 2.7.* , which can be installed;
└─ pin-1 is not installable because it requires
   └─ python 3.7.* , which conflicts with any installable versions previously reported.

Would you kindly fix this problem?

Thanks,
Kirby

1 Like

I experience the same error. Would be great to have a solution

Thanks!

1 Like

@G-Molano-LA Hello,

I detour this problem by using pip (it is suggested in the manual).

After installing HUMAnN4a using pip, it works fine in my environment.

However, I use conda for stable environment management, so I would like the team to correct the conda version of HUMAnN4a.

Related to this, when I try to install humann via:
conda create --prefix /my/path/conda_environment/humann4.0.0.alpha-1 -c biobakery humann=4.0.0a1 it has python 2.7 as a dependancy and instead of Metaphlan 4 it has
bioconda/noarch::metaphlan-2.8.1-py_1

1 Like