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 http://thecloudmarket.com/image/ami-c10944f1--rightimage-ubuntu-12-04-x64-v14-1-3-hvm

Installed anaconda as usual:

wget http://09c8d0b2229f813c1b93-c95ac804525aac4b6dba79b00b39d1d3.r79.cf1.rackcdn.com/Anaconda-2.1.0-Linux-x8664.sh bash Anaconda-2.1.0-Linux-x8664.sh # 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/init.py in <module>() 31 32 import graphlab.connect as mt ---> 33 import graphlab.connect.aws as aws 34 35 from graphlab.util import checkcanvasenabled

/root/anaconda/envs/graphlab/lib/python2.7/site-packages/graphlab/connect/aws/init.py 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/ec2.py 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/server.py 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: libgomp.so.1: cannot open shared object file: No such file or directory

Comments

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.

Thanks,

Rajat


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

It worked! Thank you Rajat