Closed
Description
Hi, I installed the latest version of plotly today (2.0.6) and ran into the following error with the first import line:
import plotly.graph_objs as go
It gives me the following error:
/usr/local/lib/python2.7/site-packages/plotly/__init__.py in <module>()
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__
/usr/local/lib/python2.7/site-packages/plotly/plotly/__init__.py in <module>()
8
9 """
---> 10 from . plotly import (
11 sign_in,
12 update_plot_options,
/usr/local/lib/python2.7/site-packages/plotly/plotly/plotly.py in <module>()
27 from requests.compat import json as _json
28
---> 29 from plotly import exceptions, files, session, tools, utils
30 from plotly.api import v1, v2
31 from plotly.plotly import chunked_requests
/usr/local/lib/python2.7/site-packages/plotly/tools.py in <module>()
58
59 ipython_core_display = optional_imports.get_module('IPython.core.display')
---> 60 matplotlylib = optional_imports.get_module('plotly.matplotlylib')
61 sage_salvus = optional_imports.get_module('sage_salvus')
62
/usr/local/lib/python2.7/site-packages/plotly/optional_imports.pyc in get_module(name)
21 if name not in _not_importable:
22 try:
---> 23 return import_module(name)
24 except ImportError:
25 _not_importable.add(name)
/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/importlib/__init__.pyc in import_module(name, package)
35 level += 1
36 name = _resolve_name(name[level:], package, level)
---> 37 __import__(name)
38 return sys.modules[name]
/usr/local/lib/python2.7/site-packages/plotly/matplotlylib/__init__.py in <module>()
12 from __future__ import absolute_import
13
---> 14 from plotly.matplotlylib.renderer import PlotlyRenderer
15 from plotly.matplotlylib.mplexporter import Exporter
/usr/local/lib/python2.7/site-packages/plotly/matplotlylib/renderer.py in <module>()
11 import warnings
12
---> 13 import plotly.graph_objs as go
14 from plotly.matplotlylib.mplexporter import Renderer
15 from plotly.matplotlylib import mpltools
/usr/local/lib/python2.7/site-packages/plotly/graph_objs/__init__.py in <module>()
12 from __future__ import absolute_import
13
---> 14 from plotly.graph_objs.graph_objs import * # this is protected with __all__
/usr/local/lib/python2.7/site-packages/plotly/graph_objs/graph_objs.py in <module>()
32 import six
33
---> 34 from plotly import exceptions, graph_reference
35 from plotly.graph_objs import graph_objs_tools
36
/usr/local/lib/python2.7/site-packages/plotly/graph_reference.py in <module>()
230
231
--> 232 @utils.memoize()
233 def _get_valid_attributes(object_name, parent_object_names):
234 attributes = get_attributes_dicts(object_name, parent_object_names)
/usr/local/lib/python2.7/site-packages/plotly/utils.pyc in memoize(maxsize)
490 return result
491
--> 492 return decorator(_memoize)
/usr/local/lib/python2.7/site-packages/decorator.pyc in decorator(caller, _func)
256 callerfunc = caller
257 doc = caller.__doc__
--> 258 fun = getfullargspec(callerfunc).args[0] # first arg
259 else: # assume caller is an object with a __call__ method
260 name = caller.__class__.__name__.lower()
IndexError: list index out of range
Please advise on how I can fix this.
Metadata
Metadata
Assignees
Labels
No labels