"graphlab.canvas.set_target()" won't work

User 3159 | 1/31/2016, 3:25:36 PM

If I say graphlab.canvas.set_target('browser') it will give Error: Requested port is unavailable: None and if I say graphlab.canvas.set_target('ipynb') it will say error: [Errno 49] Can't assign requested address

Comments

User 2506 | 1/31/2016, 6:44:51 PM

I think the default port number might be already used in your machine. Can you try running graphlab.canvas.settarget('browser', port=8123) to see if it works? Try replacing 8123 with a port that is not in use. https://dato.com/products/create/docs/generated/graphlab.canvas.settarget.html


User 5079 | 4/19/2016, 1:03:36 PM

This happened to me too. Specifying a port didn't help.


User 1174 | 4/19/2016, 6:48:26 PM

Hi Mohan,

Can you please run cat /etc/hosts from the command line and make sure:

127.0.0.1 localhost

is in /etc/hosts? If not, add the line to the file, restart your IPython session and try running the canvas command again.

Let us know if that helps.


User 5079 | 4/20/2016, 5:41:19 AM

It is already there and I start the notebook by specifying 'ip=127.0.0.1;


User 1174 | 4/20/2016, 6:36:48 PM

Hi Mohan,

can you ping your localhost to see if localhost resolves to 127.0.0.1?

ping localhost


User 5079 | 4/26/2016, 3:48:34 AM

Yes. It does.


User 5079 | 4/26/2016, 4:10:34 AM

Oh! Removed one additional entry with wrong IP pointing to localhost. Thank you. It works.