我在将函数应用于 Graphlab Create (python) 中的 SArray 对象中的值时遇到问题。文档中给出的示例甚至对我来说都失败了。
sa = SArray([1,2,3,4,5])
sa[sa.apply(lambda x: math.log(x) <= 1)]
返回以下内容:
RuntimeError: Runtime Exception: 0. Runtime Exception: 0. Traceback (most recent call last):
File "/usr/lib/python2.7/pickle.py", line 1382, in loads
return Unpickler(file).load()
File "/usr/lib/python2.7/pickle.py", line 858, in load
dispatch[key](self)
File "/usr/lib/python2.7/pickle.py", line 1090, in load_global
klass = self.find_class(module, name)
File "/usr/lib/python2.7/pickle.py", line 1124, in find_class
__import__(module)
File "/Library/Python/2.7/site-packages/graphlab/__init__.py", line 7, in <module>
import graphlab.connect.aws as aws
AttributeError: 'module' object has no attribute 'connect'