name 'graphlab' is not defined

User 2881 | 12/22/2015, 10:41:47 AM

Hello

When running a script to test the functionalities I get:

import graphlab sf = graphlab.SFrame('people-example.csv')


NameError Traceback (most recent call last) <ipython-input-3-4df0be298ea8> in <module>() ----> 1 sf = graphlab.SFrame('people-example.csv') NameError: name 'graphlab' is not defined

In the cmd console I get:

[I 10:29:18.095 NotebookApp] Using MathJax from CDN: https://cdn.mathjax.org/mathjax/latest/MathJax.js [I 10:29:18.174 NotebookApp] Serving notebooks from local directory: C:\Users\gggmo_000 [I 10:29:18.174 NotebookApp] 0 active kernels [I 10:29:18.174 NotebookApp] The IPython Notebook is running at: http://localhost:8888/ [I 10:29:18.174 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). [W 10:29:26.812 NotebookApp] Notebook Documents/Coursera - Machine Learning/Getting Started with SFrames.ipynb is not trusted [I 10:29:28.203 NotebookApp] Kernel started: 2082d3df-ebd7-491e-8707-94164457bd5a

Any idea?

Thanks, Goncalo

Comments

User 1592 | 12/22/2015, 10:52:53 AM

Hi There is a syntax error, but also there may be another issue.

It should be import graphlab graphlab.SFrame.read_csv('fileName')

How did you install GraphLab? On what OS? which python and pip versions?

Thanks


User 3035 | 1/15/2016, 10:06:20 PM

I have the same issue. installed dato and taking a course in Machine Learning with Carlos. The notebook already is used in course by Carlos and work. but when i try to use it , get all kind of errors as if no path is created . here one of the errors.

In [1]:

graphlab.canvas.settarget('ipynb') sales.show(view="Scatter Plot", x="sqftliving", y="price")


NameError Traceback (most recent call last) <ipython-input-1-784a5a706a64> in <module>() ----> 1 graphlab.canvas.settarget('ipynb') 2 sales.show(view="Scatter Plot", x="sqftliving", y="price")

NameError: name 'graphlab' is not defined


User 3035 | 1/15/2016, 10:07:57 PM

I assume when we install Dato, the environment is set automatically. Or should I do something else


User 1592 | 1/16/2016, 5:39:16 AM

Hi If you have multiple version of python it may be you are calling the wrong version and thus you are not finding it. We recommend either installing within a virtualenv, or using our launcher to resolve those issues. Those instructions are available on our website.