Import graphlab error in VirtualBox (Ubuntu)

User 400 | 8/12/2014, 8:36:14 PM

Dear All:

I am using VirtualBox with Ubuntu. After activating graphlab, I typed 'import graphlab', I am getting the error -- 'import.im6: unable to open image 'graphlab': is a directory @error/blob.c/OpenBlob/2638'. Please advise what am I doing wrong?

Thank you!

Sincerely,

Rohit

Comments

User 4 | 8/13/2014, 3:50:51 PM

Hi @rohit,

I think the source of the confusion here might be around the "import graphlab" statement. It appears you are running this statement at a bash or other shell prompt (invoking http://manned.org/import.im6/6045e6af). GraphLab Create is a Python API, so instead you should run in a Python environment:

python

import graphlab

Hope that helps!


User 400 | 8/14/2014, 2:29:42 PM

Thank you Zach! I will run it in a Python environment. Rohit


User 4 | 8/14/2014, 5:18:04 PM

I forgot to mention, I find ipython is a very nice replacement for the standard python console. It gives you font coloring, tab complete, method help (try "graphlab?" after importing), etc. You can install it with <pre><code>pip install ipython</code></pre> and then run ipython. This is totally optional but I prefer to use it.


User 400 | 8/15/2014, 6:34:09 PM

Thank you Zach!