ImportError: No module named graphlab

User 3676 | 3/17/2016, 10:26:30 AM

graphlab is being imported in python interpretor but it throws ImportError in IPython Notebook


User 1190 | 3/17/2016, 5:21:42 PM


Can you compare the result of sys.path and os.environ['PYTHONPATH'] in console and the notebook?

Thanks, -jay

User 3804 | 3/20/2016, 4:37:47 AM

I have the same problem. When I type sys.path in ipython notebook, I get:

['', '/home/kyle/anaconda2/lib/', '/home/kyle/anaconda2/lib/python2.7', '/home/kyle/anaconda2/lib/python2.7/plat-linux2', '/home/kyle/anaconda2/lib/python2.7/lib-tk', '/home/kyle/anaconda2/lib/python2.7/lib-old', '/home/kyle/anaconda2/lib/python2.7/lib-dynload', '/home/kyle/anaconda2/lib/python2.7/site-packages/Sphinx-1.3.1-py2.7.egg', '/home/kyle/anaconda2/lib/python2.7/site-packages/setuptools-18.4-py2.7.egg', '/home/kyle/anaconda2/lib/python2.7/site-packages', '/home/kyle/anaconda2/lib/python2.7/site-packages/cryptography-1.0.2-py2.7-linux-x86_64.egg', '/home/kyle/anaconda2/lib/python2.7/site-packages/IPython/extensions', '/home/kyle/.ipython']

When I type sys.path in the console, I get:

['', '/home/kyle/anaconda2/lib/', '/home/kyle/anaconda2/lib/python2.7', '/home/kyle/anaconda2/lib/python2.7/plat-linux2', '/home/kyle/anaconda2/lib/python2.7/lib-tk', '/home/kyle/anaconda2/lib/python2.7/lib-old', '/home/kyle/anaconda2/lib/python2.7/lib-dynload', '/home/kyle/anaconda2/lib/python2.7/site-packages', '/home/kyle/anaconda2/lib/python2.7/site-packages/Sphinx-1.3.1-py2.7.egg', '/home/kyle/anaconda2/lib/python2.7/site-packages/cryptography-1.0.2-py2.7-linux-x86_64.egg', '/home/kyle/anaconda2/lib/python2.7/site-packages/setuptools-18.4-py2.7.egg']

When I type os.environ['PYTHONPATH'] in ipython notebook, I get an error message:

KeyError Traceback (most recent call last) <ipython-input-8-c0743e63c4ed> in <module>() 3 4 sys.path ----> 5 os.environ['PYTHONPATH']

/home/kyle/anaconda2/lib/python2.7/UserDict.pyc in getitem(self, key) 21 if hasattr(self.class, "missing"): 22 return self.class.missing(self, key) ---> 23 raise KeyError(key) 24 def setitem(self, key, item):[key] = item 25 def delitem(self, key): del[key]


I get a similar error when running this command in the console. It appears that this environment variable has never been set. Is this required to be set in order for the graphlab module to work?

User 1190 | 3/21/2016, 6:30:11 PM

"PYTHONPATH" is not required to get the graphlab module work. I'm asking because that environment variable affects sys.path. The output of sys.path from ipython notebook and ipython console look the same to me, except for '/home/kyle/anaconda2/lib/python2.7/site-packages/IPython/extensions' which is only in ipython notebook's path.

Can you verified that graphlab is installed correctly by typing

ls /home/kyle/anaconda2/lib/python2.7/site-packages/graphlab

User 5173 | 5/5/2016, 8:33:23 AM

Im having the same problem. This is what the above command returned. I think its not installed. But i did install it.

ls: cannot access /home/paritosh/anaconda2/lib/python2.7/site-packages/graphlab: No such file or directory

User 2506 | 5/5/2016, 3:32:25 PM

Hi Paritosh,

Can you give me more details of your installation?

1) What is your OS? 2) How did you install GraphLab? Did you also try using dato launcher? If not, you can download dato launcher here