User 435 | 7/4/2014, 6:27:54 PM
Today I downloaded GC 0.3 for a try. I installed it on my computer with the following specs (no previous installation): - ubuntu 12.04 with 16gb ram - anaconda python distribution (latest with python 2.7) - installed with pip install graphlab-create==0.3
I tried to write a simple script to get familiar with graphlab and got some error at the begining. Here is the code:
import graphlab as gl adat=gl.SFrame.read_csv('...path to a csv...',delimiter=';') adat['valami']=adat['columnx'].apply(lambda x: 10)
The script above runs without error, but when I try to ask the column names or just take a look at the head I get the following error and I can not use the 'adat' object anymore: <repr(<instancemethod at 0x7f4ed04e5d20>) failed: RuntimeError: Runtime Exception: 0. Runtime Exception: 0. Traceback (most recent call last): File "/home/bgy/anaconda/lib/python2.7/pickle.py", line 1382, in loads return Unpickler(file).load() File "/home/bgy/anaconda/lib/python2.7/pickle.py", line 858, in load dispatchkey File "/home/bgy/anaconda/lib/python2.7/pickle.py", line 1090, in loadglobal klass = self.findclass(module, name) File "/home/bgy/anaconda/lib/python2.7/pickle.py", line 1124, in findclass import(module) File "/home/bgy/anaconda/lib/python2.7/site-packages/graphlab/init.py", line 7, in <module> import graphlab.connect.aws as aws File "/home/bgy/anaconda/lib/python2.7/site-packages/graphlab/connect/init.py", line 7, in <module> from graphlabutil.config import DEFAULTCONFIG as defaultlocalconf File "/home/bgy/anaconda/lib/python2.7/site-packages/graphlabutil/init.py", line 4, in <module> import logging.config File "/home/bgy/anaconda/lib/python2.7/logging/config.py", line 29, in <module> import io File "/home/bgy/anaconda/lib/python2.7/io.py", line 51, in <module> import io ImportError: /home/bgy/anaconda/lib/python2.7/lib-dynload/io.so: undefined symbol: PyLongAsInt
If I write adat['valami']=10, that works. The lamba x: 10 is just a sample, nothing works with lambda, the result is the same.