ImportError: cannot import name 'exceptions'

Hi, please could someone help me to solve this problem? Plotly isn’t importing and I have no idea why… Any help appreciated!

import plotly.offline as pyo
from plotly.graph_objs import *
from plotly import tools
import plotly.plotly as py
pyo.offline.init_notebook_mode()

This yields:

ImportError Traceback (most recent call last)
in ()
----> 1 import plotly.offline as pyo
2 from plotly.graph_objs import *
3 from plotly import tools
4 import plotly.plotly as py
5 import pandas as pd

C:\Users\Lewis\Anaconda3\Lib\site-packages\plotly\plotly_init_.py in ()
8
9 “”"
—> 10 from . plotly import (
11 sign_in,
12 update_plot_options,

C:\Users\Lewis\Anaconda3\Lib\site-packages\plotly\plotly\plotly.py in ()
28 from requests.compat import json as _json
29
—> 30 from plotly import exceptions, files, session, tools, utils
31 from plotly.api import v1, v2
32 from plotly.plotly import chunked_requests

ImportError: cannot import name ‘exceptions’

I posted this on stackoverflow as well and there were basically no responses. I have still not solved the problem - can somebody please help with this? I would quite like to be able to use plotly.

Nobody? Still can’t sort this out…

What version of plotly are you using? Upgrade to the latest version to be sure and try running the line from plotly import exceptions.

There were a couple versions of Plotly that were broken completely so you may have landed on that tragically.

I am also having this issue on a windows box using anaconda and jupyter notebook server. Would love a response.

Have tried many different versions (2.0.5, 2.1.1, 2.2.2, 2.2.3)

ERROR:

ImportError Traceback (most recent call last)
in ()
21
22
—> 23 from plotly import exceptions

C:\Anaconda\lib\site-packages\plotly_init_.py in ()
29 from future import absolute_import
30
—> 31 from plotly import (plotly, dashboard_objs, graph_objs, grid_objs, tools,
32 utils, session, offline, colors)
33 from plotly.version import version

C:\Anaconda\lib\site-packages\plotly\plotly_init_.py in ()
8
9 “”"
—> 10 from . plotly import (
11 sign_in,
12 update_plot_options,

C:\Anaconda\lib\site-packages\plotly\plotly\plotly.py in ()
28 from requests.compat import json as _json
29
—> 30 from plotly import exceptions, files, session, tools, utils
31 from plotly.api import v1, v2
32 from plotly.plotly import chunked_requests

C:\Anaconda\lib\site-packages\plotly\tools.py in ()
14 import six
15
—> 16 from plotly import exceptions, optional_imports, session, utils
17 from plotly.files import (CONFIG_FILE, CREDENTIALS_FILE, FILE_CONTENT,
18 check_file_permissions)

ImportError: cannot import name exceptions