Launching a Blank page with no content and Server Stops

User 1247 | 4/29/2015, 8:13:16 PM

I am trying to launch very basic code which just launch a simple graph , but it just launch a blank page and server shuts down- [INFO] Start server at: ipc:///tmp/graphlabserver-4995 - Server binary: /Users/abhishekchoudhary/anaconda/anaconda/lib/python2.7/site-packages/graphlab/unityserver - Server log: /tmp/graphlabserver1430338105.log [INFO] GraphLab Server Version: 1.3.0 [INFO] Stopping the server connection.

my code is - import os import graphlab graphlab.canvas.settarget('ipynb') if os.path.exists('wikipediaw16'): sf = graphlab.SFrame('wikipediaw16') else: sf = graphlab.SFrame.readcsv('/Users/abhishekchoudhary/Work/Daru.csv', header=False) sf.save('wikipedia_w16') sf.show()

Logs -

! unityglobalbase::listtoolkitfunctionsindynamicmodule >! > 1430337946 : INFO: (registerfunction:454): Registering function unityglobalbase::listtoolkitclassesindynamicmodule >! > 1430337946 : INFO: (registerfunction:454): Registering function unityglobalbase::getcurrentcachefilelocation >! > 1430337946 : INFO: (registerfunction:454): Registering function unityglobalbase::getgraphlabobjecttype >! > 1430337946 : INFO: (start:215): Function entry >! > 1430337948 : INFO: (loadtoolkit:353): Attempt loading of /Users/abhishekchoudhary/Virtual/lib/python2.7/lib-dynload/multiprocessing.so >! > 1430337948 : INFO: (loadtoolkit:381): dlopen of /Users/abhishekchoudhary/Virtual/lib/python2.7/lib-dynload/multiprocessing.so >! > 1430337948 : INFO: (loadtoolkit:353): Attempt loading of /Users/abhishekchoudhary/Virtual/lib/python2.7/lib-dynload/curses.so >! > 1430337948 : INFO: (loadtoolkit:381): dlopen of /Users/abhishekchoudhary/Virtual/lib/python2.7/lib-dynload/curses.so >! > 1430337948 : INFO: (constructfromsframeindex:62): Construct sframe from location: /Users/abhishekchoudhary/Work/python/InformationRetrievel/com/graph/wikipediaw16 >! > 1430337948 : INFO: (createarraysforreading:123): Opening Frame for Reading of size (13,9) >! > 1430337949 : INFO: (main:472): Quiting with received character: 10 feof = 0 >! > 1430337949 : INFO: (~commserver:196): Function entry >! > 1430337949 : INFO: (stop:223): Function entry

Comments

User 1247 | 4/29/2015, 8:17:13 PM

Ok got the problem, it was with pycharm , Show command line afterwards


User 4 | 4/29/2015, 8:46:39 PM

Hi @Abhishek, thanks for the update. I think you are correct, "show command line afterwards" is the solution here. GraphLab Canvas needs to interact with a running Python process, but does not prevent the process from exiting; it is meant to be used with an interactive Python process (a Python prompt, IPython prompt, or IPython Notebook).

See also this thread: http://forum.dato.com/discussion/comment/2481/#Comment_2481