ImportError: cannot import name _to_json

User 2712 | 12/2/2015, 1:13:00 AM

Hi, I have issue with Canvas-installed Graphlab on Anaconda-and keep getting error: ImportError: cannot import name tojson

` ImportError Traceback (most recent call last) <ipython-input-35-221ad021702e> in <module>() 1 import graphlab ----> 2 graphlab.canvas.set_target('ipynb')

/Users/ArdiAffinio/anaconda/lib/python2.7/site-packages/graphlab/canvas/utils.py in settarget(target, port) 38 39 return False ---> 40 41 def set_target(target, port=None): 42 """

/Users/ArdiAffinio/anaconda/lib/python2.7/site-packages/graphlab/canvas/target.py in <module>() ----> 1 import graphlab.canvas.handlers 2 import graphlab.canvas.server 3 import graphlab.canvas.state 4 import graphlab.connect as mt 5 from graphlab import version

/Users/ArdiAffinio/anaconda/lib/python2.7/site-packages/graphlab/canvas/handlers.py in <module>() 7 from graphlab.canvas import statichandler as static 8 from graphlab.canvas.logstreamhandler import LogSSEHandler ----> 9 from graphlab.canvas.utils import to_json 10 11 import json

ImportError: cannot import name tojson `

Comments

User 954 | 12/2/2015, 9:53:01 PM

Hi Ardi,

Which version of OS X you are running on? Could you let us know how did you install GraphLab-Create?

We need more information to regenerate the problem.

Also try to reinstall GLC in a fresh environment: https://dato.com/download/install-graphlab-create-command-line.html

Thanks


User 4 | 12/2/2015, 9:53:07 PM

Hi @Ardi,

Can you clarify -- what version of GraphLab Create are you running? You can find out by running: import graphlab print graphlab.version

If you are not on the latest version (1.7.1) please try upgrading and let us know if that fixes the issue. Otherwise this may be an installation problem (partial or corrupt installation). In that case you can try reinstalling (pip uninstall graphlab-create and then pip install graphlab-create). Please let us know if that fixes this issue.