Hclust2.py generation error

I tried to generate a heatmap; however, I have been encountering an error. For context, I am using MetaPhlAn4.

/home/user/scratch3/conda/envs/metaphlan/bin/hclust2.py:588: MatplotlibDeprecationWarning: You are modifying the state of a globally registered colormap. This has been deprecated since 3.3 and in 3.6, you will not be able to modify a registered colormap in-place. To remove this warning, you can make a copy of the colormap first. cmap = mpl.cm.get_cmap(“bbcry”).copy()
cm.set_under( bottom_col )

/home/user/scratch3/conda/envs/metaphlan/bin/hclust2.py:594: MatplotlibDeprecationWarning: You are modifying the state of a globally registered colormap. This has been deprecated since 3.3 and in 3.6, you will not be able to modify a registered colormap in-place. To remove this warning, you can make a copy of the colormap first. cmap = mpl.cm.get_cmap(“bbcry”).copy()
cm.set_over( top_col )

Traceback (most recent call last):
File “/home/user/scratch3/conda/envs/metaphlan/bin/hclust2.py”, line 825, in
hclust2_main()
File “/home/user/scratch3/conda/envs/metaphlan/bin/hclust2.py”, line 822, in hclust2_main
hm.draw()
File “/home/user/scratch3/conda/envs/metaphlan/bin/hclust2.py”, line 684, in draw
norm = norm_f( vmin=minv if minv > 0.0 else None, vmax=maxv)
File “/home/user/scratch3/conda/envs/metaphlan/lib/python3.7/site-packages/matplotlib/_api/deprecation.py”, line 459, in wrapper
return func(*args, **kwargs)
File “/home/user/scratch3/conda/envs/metaphlan/lib/python3.7/site-packages/matplotlib/init.py”, line 1414, in inner
return func(ax, *map(sanitize_sequence, args), **kwargs)
File “/home/user/scratch3/conda/envs/metaphlan/lib/python3.7/site-packages/matplotlib/axes/_axes.py”, line 5492, in imshow
im._scale_norm(norm, vmin, vmax)
File “/home/user/scratch3/conda/envs/metaphlan/lib/python3.7/site-packages/matplotlib/cm.py”, line 381, in _scale_norm
"Passing parameters norm and vmin/vmax simultaneously is "

ValueError: Passing parameters norm and vmin/vmax simultaneously is not supported. Please pass vmin/vmax directly to the norm when creating it.

Hi @sasakitomiyano
Please, have a look at the following thread: hclust2_ValueError: Passing a Normalize instance simultaneously with vmin/vmax is not supported. Please pass vmin/vmax directly to the norm when creating it