Can't import graphlab on EC2/Anaconda

User 1375 | 3/20/2015, 12:03:44 AM

Using this AMI on a c3.8xlarge in EC2. ami-c10944f1 RightImageUbuntu12.04x64v14.1.3_HVM

Installed anaconda as usual:

wget bash # follow install instructions

created virtualenv:

anaconda/bin/conda create -n graphlab anaconda source anaconda/bin/activate graphlab pip install graphlab-create==1.3

added product key to /root/.graphlab/config

ipython In [1]: import graphlab

ImportError Traceback (most recent call last) <ipython-input-1-4b66ad388e97> in <module>() ----> 1 import graphlab

/root/anaconda/envs/graphlab/lib/python2.7/site-packages/graphlab/ in <module>() 31 32 import graphlab.connect as mt ---> 33 import as aws 34 35 from graphlab.util import checkcanvasenabled

/root/anaconda/envs/graphlab/lib/python2.7/site-packages/graphlab/connect/aws/ in <module>() 23 24 """ ---> 25 from ec2 import getcredentials, launchEC2, listinstances, setcredentials, status, terminateEC2

/root/anaconda/envs/graphlab/lib/python2.7/site-packages/graphlab/connect/aws/ in <module>() 31 32 import graphlab.productkey ---> 33 import graphlab.connect.server as glserver 34 import graphlab.connect.main as glconnect 35 from graphlab.connect.main import catchandlog

/root/anaconda/envs/graphlab/lib/python2.7/site-packages/graphlab/connect/ in <module>() 20 """ 21 ---> 22 from graphlab.cython.cyipc import PyCommClient as Client 23 from graphlab.cython.cyipc import getpublicsecretkeypair 24 from graphlabutil.config import DEFAULTCONFIG as defaultlocalconf

ImportError: cannot open shared object file: No such file or directory


User 1394 | 3/20/2015, 5:32:58 AM

OK so two Ubuntu packages that need to be installed with this AMI/image.

apt-get install libpython2.7 libgomp1

After adding these packages GraphLab Create should work as expected.

Let me know if you continue to see errors with these packages installed.



User 1375 | 3/20/2015, 9:56:52 PM

It worked! Thank you Rajat