`from sbi.analysis import pairplot` fails on a fresh install: No module named 'six'
Bug description
In a fresh environment with sbi 0.27.0, from sbi.analysis import pairplot raises ModuleNotFoundError: No module named 'six'. The import should work without installing anything extra.
plotting_helpers.py imports six, but sbi doesn't declare it as a dependency:
https://github.com/sbi-dev/sbi/blob/cd8f131444471749f2ce9baa8a8aaddccbde4c37/sbi/utils/plotting_helpers.py#L10
It used to arrive through matplotlib's python-dateutil dependency. python-dateutil 4.0.0 came out on 2026-11-01 and now only requires tzdata, so a fresh install no longer gets six. With python-dateutil<4, the import works.
CI doesn't catch this because the dev extra still pulls in six.
Minimal code example
# fresh environment: uv pip install sbi==0.27.0
from sbi.analysis import pairplot
Error message or traceback
from sbi.analysis.plot import (
File ".venv/lib/python3.12/site-packages/sbi/analysis/plot.py", line 41, in <module>
from sbi.utils.plotting_helpers import (
File ".venv/lib/python3.12/site-packages/sbi/utils/plotting_helpers.py", line 10, in <module>
import six
ModuleNotFoundError: No module named 'six'
sbi version
0.27.0 (the import is also still on main at cd8f131)
Python version
3.12.7
Device
CPU
Inference method
Not method-specific
Single-round or multi-round
Not applicable
Additional context
I'd drop the six import from plotting_helpers.py (replacing any six usage with plain Python 3 code) rather than adding six as a dependency, since it's a leftover Python 2 compatibility shim. To test, I'd build a fresh venv with python-dateutil>=4, install sbi without the dev extra, and confirm from sbi.analysis import pairplot succeeds; I'd also check CI's dev environment no longer masks the issue.
AI use: I used Claude Code to reproduce and trace this, and to draft the factual parts of this report.