graphlab example won't be imported under sdk 1.8.5, glc 1.8.5/1.8.6

User 5045 | 4/19/2016, 9:02:12 PM

Sorry for the duplicate post but now I believe it is a bug so I think I should report it separately since my previous post(http://forum.dato.com/discussion/1934/error-when-import-example-with-graphlab-create-sdk#latest) I tried to downgrade graphlab to 1.6.1, git clone the sdk and git reset sdk to 1.6.1, too. Now I can run the example1 application

In [1]: import graphlab as gl
A newer version of GraphLab Create (v1.8.5) is available! Your current version is v1.6.1.

You can use pip to upgrade the graphlab-create package. For more information see https://dato.com/products/create/upgrade.

In [2]:
KeyboardInterrupt

In [3]: import example1
[INFO] This non-commercial license of GraphLab Create is assigned to * and will expire on *. For commercial licensing options, visit https://dato.com/buy/.

[INFO] Start server at: ipc:///tmp/graphlab_server-1720 - Server binary: /root/anaconda2/envs/dato-env/lib/python2.7/site-packages/graphlab/unity_server - Server log: /tmp/graphlab_server_1461098819.log
[INFO] GraphLab Server Version: 1.6.1

In [4]: example1.add(2, 5)
Out[4]: 7

In [5]:

Comments

User 1174 | 4/22/2016, 6:19:29 PM

Hi David,

Can you pull from the SDK repo, rebuild, and try again?

Thanks.


User 5045 | 4/22/2016, 9:15:47 PM

@yyf Thank you for your reply I just created a new DigitalOcean droplet(Ubuntu 64 bit, 14.04), apt-get install g++,make,git Then following instructions on https://dato.com/download/install-graphlab-create.html https://dato.com/products/create/sdk/docs/ to build the example, but still cannot import them

(dato-env)root@***:~/graphlab-sdk# make
g++ -o sdk_example/example1.so -std=c++11 -I . -shared -fPIC sdk_example/example1.cpp
g++ -o sdk_example/sgraph_edge_deduplication.so -std=c++11 -I . -shared -fPIC sdk_example/sgraph_edge_deduplication.cpp
g++ -o sdk_example/sgraph_weighted_pagerank.so -std=c++11 -I . -shared -fPIC sdk_example/sgraph_weighted_pagerank.cpp
(dato-env)root@***:~/graphlab-sdk# ipython
Python 2.7.11 |Anaconda 4.0.0 (64-bit)| (default, Dec  6 2015, 18:08:32)
Type "copyright", "credits" or "license" for more information.
IPython 4.1.2 -- An enhanced Interactive Python.
?         -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help      -> Python's own help system.
object?   -> Details about 'object', use 'object??' for extra details.
In [1]: import graphlab as gl
In [2]: import sdk_example.example1 as example1
This non-commercial license of GraphLab Create is assigned to *** and will expire on ***. For commercial licensing options, visit https://dato.com/buy/.
2016-04-22 17:00:37,372 [INFO] graphlab.cython.cy_server, 176: GraphLab Create v1.8.5 started. Logging: /tmp/graphlab_server_1461358836.log
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-2-d6b3c31c3325> in <module>()
----> 1 import sdk_example.example1 as example1
ImportError: sdk_example/example1.so: undefined symbol: _ZN8graphlab18toolkit_class_base9list_keysEv

I've attached my log for your reference

BTW, I can confirm that I've built several examples and written several extensionsunder glc 1.6.5, SDK 1.6.5, no problems have been found when importing and using them


User 19 | 4/22/2016, 9:43:56 PM

Hi,

We have reproduced the issue and we are looking into it. Thanks for reporting it!

Chris