biobakery / humann

HUMAnN is the next generation of HUMAnN 1.0 (HMP Unified Metabolic Analysis Network).
http://huttenhower.sph.harvard.edu/humann
Other
170 stars 58 forks source link

humann_genefamilies_genus_level error: 'dict' object has no attribute 'iteritems' #32

Closed pooranis closed 2 years ago

pooranis commented 2 years ago

Hello. Got this error when trying to run humann v3.0.0:

humann_genefamilies_genus_level -i humann_genefamilies.tsv -o out_genus_genefamilies.tsv

Traceback (most recent call last):
  File "/opt/conda/envs/app/bin/humann_genefamilies_genus_level", line 10, in <module>
    sys.exit(main())
  File "/opt/conda/envs/app/lib/python3.9/site-packages/humann/tools/genefamilies_genus_level.py", line 87, in main
    create_table(args.input,args.output)
  File "/opt/conda/envs/app/lib/python3.9/site-packages/humann/tools/genefamilies_genus_level.py", line 50, in create_table
    for gene_taxonomy, values in genus_values.iteritems():
AttributeError: 'dict' object has no attribute 'iteritems'

python 3 uses dict.items instead of dict.iteritems

https://github.com/biobakery/humann/blob/ac2e691d792673b56a3c2585cf43211d439d3326/humann/tools/genefamilies_genus_level.py#L50

Thanks!

github-actions[bot] commented 2 years ago

Thank you for creating this issue. We currently field issues through our bioBakery Discourse Support Forum. If you would please post the issue to discourse we would be happy to sync up with you to get it resolved.