Issues with SGraph.show

User 2192 | 8/24/2015, 7:36:07 AM

Hi,

I'm trying to run g.show() in ipython notebook but I keep getting the following error: ` Error: Requested port is unavailable: None


AttributeError Traceback (most recent call last) <ipython-input-3-f6d537836882> in <module>() ----> 1 g.show()

/data/anaconda/lib/python2.7/site-packages/graphlab/datastructures/sgraph.pyc in show(self, vlabel, vlabelhover, vcolor, highlight, highlightcolor, nodesize, elabel, elabelhover, ecolor, ewidth, voffset, hoffset, arrows, vertexpositions) 1189 hoffset=hoffset, 1190 arrows=arrows, -> 1191 vertexpositions=vertexpositions) 1192 1193 def getneighborhood(self, ids, radius=1, fullsubgraph=True):

/data/anaconda/lib/python2.7/site-packages/multipledispatch/dispatcher.pyc in call(self, args, **kwargs) 162 self._cache[types] = func 163 try: --> 164 return func(args, **kwargs) 165 166 except MDNotImplementedError:

/data/anaconda/lib/python2.7/site-packages/graphlab/canvas/glcdisplaydispatch.pyc in show(obj, **kwargs) 33 import graphlab.canvas.views.sgraph 34 ---> 35 graphlab.canvas.inspect.find_vars(obj) 36 if 'highlight' in kwargs: 37 highlight = kwargs['highlight']

/data/anaconda/lib/python2.7/site-packages/graphlab/canvas/inspect.pyc in findvars(var) 41 (variablename, variable) = findvariablename(var) 42 if variablename is not None: ---> 43 target.addvariable((variablename,), variable) 44 45

AttributeError: 'NoneType' object has no attribute 'add_variable' `

Also, trying to set graphlab.canvas.set_target('browser')

results is a similar error : Error: Requested port is unavailable: None

What can cause this ?

Thanks !

Comments

User 954 | 8/24/2015, 4:17:37 PM

Hi,

Are you trying to run canvas on your local browser? Please try the following command and set a different port number. Let us know if it does not resolve the issue. <pre> graphlab.canvas.settarget('browser',portnum) </pre>

Thanks


User 4 | 8/25/2015, 8:11:13 PM

It's possible that there is a Tornado bug preventing our code from binding to localhost on any port (I have seen this once before). Can you try posting the stack trace from the set_target error? I think the stack trace from show (posted above) is a red herring, a symptom caused by the first error.