Skip to content

Sporadic graph reference error when importing plotly #611

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
bnaul opened this issue Nov 21, 2016 · 3 comments
Closed

Sporadic graph reference error when importing plotly #611

bnaul opened this issue Nov 21, 2016 · 3 comments

Comments

@bnaul
Copy link

bnaul commented Nov 21, 2016

➜  ~ python -c 'import plotly; print("OK!")'
OK!
➜  ~ python -c 'import plotly; print("OK!")'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/Users/brettnaul/miniconda3/envs/cesium/lib/python3.5/site-packages/plotly/__init__.py", line 31, in <module>
    from plotly import (plotly, graph_objs, grid_objs, tools, utils, session,
  File "/Users/brettnaul/miniconda3/envs/cesium/lib/python3.5/site-packages/plotly/plotly/__init__.py", line 10, in <module>
    from . plotly import (
  File "/Users/brettnaul/miniconda3/envs/cesium/lib/python3.5/site-packages/plotly/plotly/plotly.py", line 31, in <module>
    from plotly import exceptions, tools, utils, version, files
  File "/Users/brettnaul/miniconda3/envs/cesium/lib/python3.5/site-packages/plotly/tools.py", line 21, in <module>
    from plotly import graph_reference
  File "/Users/brettnaul/miniconda3/envs/cesium/lib/python3.5/site-packages/plotly/graph_reference.py", line 523, in <module>
    OBJECTS = _get_objects()
  File "/Users/brettnaul/miniconda3/envs/cesium/lib/python3.5/site-packages/plotly/graph_reference.py", line 406, in _get_objects
    if any([key in path for key in GRAPH_REFERENCE['defs']['metaKeys']]):
KeyError: 'metaKeys'

Going offline prevents this error, so I expect it's related to a hosting issue (my colleague is experiencing the same error from a different location, so I doubt it's my internet). Might be irrelevant once wherever this download is being served from stops acting up, but regardless this seems like very undesirable behavior. In particular, any kind of production service that imports plotly will be broken until this is resolved.

EDIT: this is with plotly==1.12.9 or with the latest master.

@smu
Copy link

smu commented Nov 21, 2016

Same for me. Similar issue was reported in #612

@theengineear
Copy link
Contributor

Should be fixed now.

@theengineear
Copy link
Contributor

^^ in 1.13.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants