我正在使用Win 7 Pro上安装的GraphLab Create + Enthought Canopy Express
on
以下是我安装GraphLab Create
的方法on
我在(Canopy 64bit) C:\Users\kittuNnivvi>python
Enthought Canopy Python 2.7.9 | 64-bit | (default, Jul 1 2015, 03:41:50) [MSC v
.1500 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>
(Canopy 64bit) C:\Users\kittuNnivvi>pip install --upgrade --no-cache-dir https:/
/get.dato.com/GraphLab-Create/1.6.1/axx@xxx.xxx/AAAA-BBBB-CCCC-DDDD-...-67E6/GraphLab-Create-License.tar.gz
内使用它。
以下命令工作。
IPython Notebook
然而,当我运行以下代码时 -
Canopy Editor
我得到了运行时异常
sf = graphlab.SFrame.read_csv('people-example.csv')
sf['Country'].show
def transform_country(country):
if country == "USA":
return 'United States'
else:
return country
transform_country('USA')
我是新的GraphLab创建 - 请帮忙。它确实似乎是由环境设置引起的。我一直在这个论坛上阅读其他帖子。
我跑了sf['Country'] = sf['Country'].apply(transform_country)
- 其中包括它返回的值
---------------------------------------------------------------------------
RuntimeError Traceback (most recent call last)
<ipython-input-28-58b2d3ea026a> in <module>()
----> 1 sf['Country'].apply(transform_country)
C:\Users\kittuNnivvi\AppData\Local\Enthought\Canopy\User\lib\site-packages\graphlab\data_structures\sarray.pyc in apply(self, fn, dtype, skip_undefined, seed)
1624
1625 with cython_context():
-> 1626 return SArray(_proxy=self.__proxy__.transform(fn, dtype, skip_undefined, seed))
1627
1628
C:\Users\kittuNnivvi\AppData\Local\Enthought\Canopy\User\lib\site-packages\graphlab\cython\context.pyc in __exit__(self, exc_type, exc_value, traceback)
47 if not self.show_cython_trace:
48 # To hide cython trace, we re-raise from here
---> 49 raise exc_type(exc_value)
50 else:
51 # To show the full trace, we do nothing and let exception propagate
RuntimeError: Runtime Exception. Unable to evaluate lambdas. lambda workers did not start
。这是server_log文件的一部分。
graphlab.get_runtime_config()
我可以看到三个Python27.lib - 它们的大小相同。
这是在我的机器上运行时的输出。
GRAPHLAB_CACHE_FILE_LOCATIONS
您对我如何进一步排除故障所提供的任何意见都将非常有用。