Nanoplot Tool crashing on private Cloud Galaxy server

Hello !
I have installed Galaxy on a private cloud server (following this tutorial : Hands-on: Hands-on: Galaxy Installation with Ansible / Galaxy Server administration) on ubuntu 20.04. I want to run a specific tool (Nanoplot) on Nanopore data (fastq format) but when I try, I get an error :
"If you read this then NanoPlot has crashed :frowning:
Please try updating NanoPlot and see if that helps…

If not, please report this issue at Issues · wdecoster/NanoPlot · GitHub
If you could include the log file that would be really helpful.
Thanks!"

I installed Nanoplot at the last version using the toolshed (1.28.2+galaxy1).

Here is the dataset error report :
Dataset Error Report

An error occurred while running the tool toolshed.g2.bx.psu.edu/repos/iuc/nanoplot/nanoplot/1.28.2+galaxy1.
Details

Execution resulted in the following messages:

Fatal error: Exit code 1 ()

Tool generated the following standard error:

Matplotlib created a temporary config/cache directory at /srv/galaxy/var/tmp/matplotlib-ymr9i8qo because the default path (/srv/galaxy/.config/matplotlib) is not a writable directory; it is highly recommended to set the MPLCONFIGDIR environment variable to a writable directory, in particular to speed up the import of Matplotlib and to better support multiprocessing.
Traceback (most recent call last):
File “/srv/galaxy/var/dependencies/_conda/envs/__nanoplot@1.28.2/bin/NanoPlot”, line 10, in
sys.exit(main())
File “/srv/galaxy/var/dependencies/_conda/envs/__nanoplot@1.28.2/lib/python3.9/site-packages/nanoplot/NanoPlot.py”, line 95, in main
plots = make_plots(datadf, settings)
File “/srv/galaxy/var/dependencies/_conda/envs/__nanoplot@1.28.2/lib/python3.9/site-packages/nanoplot/NanoPlot.py”, line 152, in make_plots
nanoplotter.scatter(
File “/srv/galaxy/var/dependencies/_conda/envs/__nanoplot@1.28.2/lib/python3.9/site-packages/nanoplotter/nanoplotter_main.py”, line 159, in scatter
plot = sns.jointplot(
File “/srv/galaxy/var/dependencies/_conda/envs/__nanoplot@1.28.2/lib/python3.9/site-packages/seaborn/_decorators.py”, line 46, in inner_f
return f(**kwargs)
File “/srv/galaxy/var/dependencies/_conda/envs/__nanoplot@1.28.2/lib/python3.9/site-packages/seaborn/axisgrid.py”, line 2244, in jointplot
grid.plot_joint(scatterplot, **joint_kws)
File “/srv/galaxy/var/dependencies/_conda/envs/__nanoplot@1.28.2/lib/python3.9/site-packages/seaborn/axisgrid.py”, line 1806, in plot_joint
func(x=self.x, y=self.y, **kwargs)
File “/srv/galaxy/var/dependencies/_conda/envs/__nanoplot@1.28.2/lib/python3.9/site-packages/seaborn/_decorators.py”, line 46, in inner_f
return f(**kwargs)
File “/srv/galaxy/var/dependencies/_conda/envs/__nanoplot@1.28.2/lib/python3.9/site-packages/seaborn/relational.py”, line 827, in scatterplot
p.plot(ax, kwargs)
File “/srv/galaxy/var/dependencies/_conda/envs/__nanoplot@1.28.2/lib/python3.9/site-packages/seaborn/relational.py”, line 608, in plot
scout = ax.scatter(scout_x, scout_y, **kws)
File “/srv/galaxy/var/dependencies/_conda/envs/__nanoplot@1.28.2/lib/python3.9/site-packages/matplotlib/init.py”, line 1412, in inner
return func(ax, *map(sanitize_sequence, args), **kwargs)
File “/srv/galaxy/var/dependencies/_conda/envs/__nanoplot@1.28.2/lib/python3.9/site-packages/matplotlib/axes/_axes.py”, line 4461, in scatter
collection.update(kwargs)
File “/srv/galaxy/var/dependencies/_conda/envs/__nanoplot@1.28.2/lib/python3.9/site-packages/matplotlib/artist.py”, line 1064, in update
raise AttributeError(f"{type(self).name!r} object "
AttributeError: ‘PathCollection’ object has no property ‘stat_func’

Galaxy job runner generated the following standard error:

Matplotlib created a temporary config/cache directory at /srv/galaxy/var/tmp/matplotlib-ymr9i8qo because the default path (/srv/galaxy/.config/matplotlib) is not a writable directory; it is highly recommended to set the MPLCONFIGDIR environment variable to a writable directory, in particular to speed up the import of Matplotlib and to better support multiprocessing.
Traceback (most recent call last):
File “/srv/galaxy/var/dependencies/_conda/envs/__nanoplot@1.28.2/bin/NanoPlot”, line 10, in
sys.exit(main())
File “/srv/galaxy/var/dependencies/_conda/envs/__nanoplot@1.28.2/lib/python3.9/site-packages/nanoplot/NanoPlot.py”, line 95, in main
plots = make_plots(datadf, settings)
File “/srv/galaxy/var/dependencies/_conda/envs/__nanoplot@1.28.2/lib/python3.9/site-packages/nanoplot/NanoPlot.py”, line 152, in make_plots
nanoplotter.scatter(
File “/srv/galaxy/var/dependencies/_conda/envs/__nanoplot@1.28.2/lib/python3.9/site-packages/nanoplotter/nanoplotter_main.py”, line 159, in scatter
plot = sns.jointplot(
File “/srv/galaxy/var/dependencies/_conda/envs/__nanoplot@1.28.2/lib/python3.9/site-packages/seaborn/_decorators.py”, line 46, in inner_f
return f(**kwargs)
File “/srv/galaxy/var/dependencies/_conda/envs/__nanoplot@1.28.2/lib/python3.9/site-packages/seaborn/axisgrid.py”, line 2244, in jointplot
grid.plot_joint(scatterplot, **joint_kws)
File “/srv/galaxy/var/dependencies/_conda/envs/__nanoplot@1.28.2/lib/python3.9/site-packages/seaborn/axisgrid.py”, line 1806, in plot_joint
func(x=self.x, y=self.y, **kwargs)
File “/srv/galaxy/var/dependencies/_conda/envs/__nanoplot@1.28.2/lib/python3.9/site-packages/seaborn/_decorators.py”, line 46, in inner_f
return f(**kwargs)
File “/srv/galaxy/var/dependencies/_conda/envs/__nanoplot@1.28.2/lib/python3.9/site-packages/seaborn/relational.py”, line 827, in scatterplot
p.plot(ax, kwargs)
File “/srv/galaxy/var/dependencies/_conda/envs/__nanoplot@1.28.2/lib/python3.9/site-packages/seaborn/relational.py”, line 608, in plot
scout = ax.scatter(scout_x, scout_y, **kws)
File “/srv/galaxy/var/dependencies/_conda/envs/__nanoplot@1.28.2/lib/python3.9/site-packages/matplotlib/init.py”, line 1412, in inner
return func(ax, *map(sanitize_sequence, args), **kwargs)
File “/srv/galaxy/var/dependencies/_conda/envs/__nanoplot@1.28.2/lib/python3.9/site-packages/matplotlib/axes/_axes.py”, line 4461, in scatter
collection.update(kwargs)
File “/srv/galaxy/var/dependencies/_conda/envs/__nanoplot@1.28.2/lib/python3.9/site-packages/matplotlib/artist.py”, line 1064, in update
raise AttributeError(f"{type(self).name!r} object "
AttributeError: ‘PathCollection’ object has no property ‘stat_func’

Here some info that are in my group_vars/galaxyservers.yml :

Galaxy

galaxy_create_user: true
galaxy_separate_privileges: true
galaxy_manage_paths: true
galaxy_layout: root-dir
galaxy_root: /srv/galaxy
galaxy_user: {name: galaxy, shell: /bin/bash}
galaxy_commit_id: release_22.01
galaxy_force_checkout: true
miniconda_prefix: “{{ galaxy_tool_dependency_dir }}/_conda”
miniconda_version: py39_4.12.0
miniconda_manage_dependencies: true

Hi @Enzo_C,
the problem seems to be related to this issue. Nanoplot updates should fix it; I’ll try to make it available the next week (there is a PR already opened).

Regards