Installing with static librpython2.7.a

User 283 | 4/30/2014, 9:00:45 PM


I pip installed graphlab-create on Centos-6.5, 64bit, linking against our separate install of Python 2.7, which only contains a static archive of libpython2.7.a. Pip reported no errors after installation, however import graphlab fails because it is looking for Does graphlab-create explicitly require shared linkage to libpython, and can it be made to work with a static libpython?

$ uname -a Linux bp-dev 2.6.32-431.5.1.el6.x8664 #1 SMP Wed Feb 12 00:41:43 UTC 2014 x8664 x8664 x8664 GNU/Linux $ cat /etc/redhat-release CentOS release 6.5 (Final) $ python -c 'import graphlab' Traceback (most recent call last): File "<string>", line 1, in <module> File "/home/mdanielson/.local/lib/python2.7/site-packages/graphlab/", line 7, in <module> import as aws File "/home/mdanielson/.local/lib/python2.7/site-packages/graphlab/connect/aws/", line 5, in <module> from ec2 import getcredentials, launchEC2, listinstances, setcredentials, status, terminateEC2 File "/home/mdanielson/.local/lib/python2.7/site-packages/graphlab/connect/aws/", line 17, in <module> import graphlab.connect.server as glserver File "/home/mdanielson/.local/lib/python2.7/site-packages/graphlab/connect/", line 6, in <module> from graphlab.cython.cyipc import PyCommClient as Client ImportError: cannot open shared object file: No such file or directory


User 20 | 5/4/2014, 6:56:29 AM


We load at runtime for lambda evaluation, and we do not support your configuration at this time.

Thanks, Yucheng

User 1329 | 3/3/2015, 12:17:15 AM

Hi, Was this ever resolved for CentOS 6.5 ? I am still getting the same error.

User 1189 | 3/3/2015, 2:52:37 AM


We still require dynamic libpython. (The graphlab-create process, which is in C++ also uses libpython to allow parallelization of python lambdas.)

Basically, we try to load the libpython corresponding to the python binary you are running to minimize incompatibility issues.