You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ImportError with Plotly 7.0.0: create_distplot was removed from plotly.figure_factory #384
Describe the bug openseries 2.1.9 cannot be imported when Plotly 7.0.0 is installed. _common_model.py imports create_distplot from plotly.figure_factory at module load time, but that function was removed in Plotly 7.
The declared dependency is plotly>=5.18.0 with no upper bound, so a fresh install (or lockfile update) now resolves Plotly 7.0.0 and the package fails before any openseries API is used.
To Reproduce
Install openseries==2.1.9 with plotly==7.0.0 (for example via pip install openseries plotly after Plotly 7.0.0 was released).
Run:
fromopenseriesimportOpenTimeSeries
Expected behavior openseries imports successfully, and plot_histogram(..., plot_type="lines") still works.
Actual behavior
ImportError: cannot import name 'create_distplot' from 'plotly.figure_factory'
Traceback:
File ".../openseries/__init__.py", line 13, in <module>
from .frame import OpenFrame
File ".../openseries/frame.py", line 52, in <module>
from ._common_model import _calculate_time_factor, _CommonModel, _get_base_column_data
File ".../openseries/_common_model.py", line 61, in <module>
from plotly.figure_factory import create_distplot
ImportError: cannot import name 'create_distplot' from 'plotly.figure_factory'
Cap the dependency immediately: plotly>=5.18.0,<7.
Replace create_distplot with a Plotly Express / graph-objects equivalent (Plotly recommends plotly.express.histogram with marginal="rug").
Optionally lazy-import the plotting helper so a Plotly 7 install does not break from openseries import OpenTimeSeries even before plot_histogram is called.
Until this is released, downstream projects can work around it with plotly>=5.18.0,<7.
Activity
Resolve issue 384 and prepare to deploy version 2.1.10 (#385)
karrmagadgeteer2 commentedon Aug 28, 2026
fixed with #385