Skip to content

Plotly 4.14.3 + Kaleido 0.2.0 - Import error on Linux #3101

@stephprobst

Description

@stephprobst

Environment:

Operating system: RedHat Linux 7
Python version: 3.6.8

Error:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/myuser/.local/lib/python3.6/site-packages/plotly/__init__.py", line 34, in <module>
    from plotly import (
  File "/home/myuser/.local/lib/python3.6/site-packages/plotly/io/__init__.py", line 5, in <module>
    from ._kaleido import to_image, write_image, full_figure_for_development
  File "/home/myuser/.local/lib/python3.6/site-packages/plotly/io/_kaleido.py", line 9, in <module>
    from kaleido.scopes.plotly import PlotlyScope
  File "/home/myuser/.local/lib/python3.6/site-packages/kaleido/scopes/plotly.py", line 3, in <module>
    import plotly.io as pio
AttributeError: module 'plotly' has no attribute 'io'

How to reproduce:

Install packages:

pip3 install kaleido==0.2.0
pip3 install plotly==4.14.3

Try to import plotly:

import plotly

Other interesting information:

The same combination of versions works fine on a Windows OS.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions