upgrade to 1.10 issue - Mac

User 5263 | 6/5/2016, 8:49:28 PM

I am not able to import graphlab following upgrade to 1.10.

Here is the import line and error message...

In [1]: import graphlab

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

/Users/glen/anaconda/envs/dato-env/lib/python2.7/site-packages/graphlab/init.pyc in <module>() 52 from . import visualization 53 ---> 54 from graphlab.datastructures.sgraph import Vertex, Edge 55 from graphlab.datastructures.sgraph import SGraph 56 from graphlab.data_structures.sarray import SArray

/Users/glen/anaconda/envs/dato-env/lib/python2.7/site-packages/graphlab/data_structures/init.py in <module>() 23 24 from . import image ---> 25 from . import sframe 26 from . import sarray 27 from . import sgraph

/Users/glen/anaconda/envs/dato-env/lib/python2.7/site-packages/graphlab/datastructures/sframe.py in <module>() 17 ''' 18 from .. import connect as mt ---> 19 from ..connect import main as glconnect 20 from ..cython.cyflexibletype import infertypeoflist 21 from ..cython.context import debugtrace as cython_context

/Users/glen/anaconda/envs/dato-env/lib/python2.7/site-packages/graphlab/connect/main.py in <module>() 24 # --------------------------------------------------------------------------- 25 ---> 26 from ..cython.cyunity import UnityGlobalProxy 27 from ..cython import cyipc 28 from ..cython.cy_server import EmbeddedServer

ImportError: dlopen(/Users/glen/anaconda/envs/dato-env/lib/python2.7/site-packages/graphlab/cython/cyunity.so, 2): no suitable image found. Did find: /Users/glen/anaconda/envs/dato-env/lib/python2.7/site-packages/graphlab/cython/cyunity.so: unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x00


User 1178 | 6/6/2016, 5:42:24 PM


It seems like you are either installing some old package or incomplete package. Can you try to do the following to reinstall your GraphLab-Create?

pip uninstall graphlab-create
pip install --upgrade --no-cache-dir graphlab-create

Let us know if this helps!

User 5263 | 6/11/2016, 9:22:03 PM

I was using the package for the coursera UW machine learning certification. Temporarily solved my problem by installing from scratch on another machine.

I will try your suggestion on the original machine and let you know. Thanks.

User 5263 | 6/12/2016, 10:58:11 PM

I did as you suggested, then restarted this machine, started dato launcher, and i was good. thank you!

User 940 | 6/21/2016, 2:01:17 AM

Hi @s2928 ,

I'm glad everything is working. Let us know if you have any more questions.

Cheers! -Piotr