简体   繁体   English

执行时GraphLab创建sFrame.show()函数错误

[英]GraphLab Create sFrame.show() function error when executing

I've installed GraphLab Create using Anaconda. 我已经使用Anaconda安装了GraphLab Create。 Everything seems to be fine with SFrames, I can manipulate data and ingest it but I can't execute the function show() . 使用SFrame似乎一切都很好,我可以操纵数据并提取它,但不能执行show()函数。 The error message is like this: 错误消息是这样的:

Error: Requested port is unavailable
inspect.pyc in find_vars(var)
     42     (variable_name, variable) = _find_variable_name(var)
     43     if variable_name is not None:
---> 44         target.add_variable((variable_name,), variable)
     45     return variable_name
     46 

AttributeError: 'NoneType' object has no attribute 'add_variable'

Also, I tried to instead change the target of the canvas to the notebook itself cause the port thing might have caused the problem, but the error when I execute graphlab.canvas.set_target('ipynb') is this: 另外,我尝试改为将画布的目标更改为笔记本本身,从而导致端口问题可能导致了问题,但是执行graphlab.canvas.set_target('ipynb')时出现的错误是这样的:

util.pyc in __new__(cls, *args, **kwargs)
    310         # singleton magic.  If we get rid of that we can switch to __init__
    311         # here too.
--> 312         instance.initialize(*args, **init_kwargs)
    313         return instance
    314 

TypeError: initialize() got an unexpected keyword argument 'io_loop'

Here's the specs of my environment: 这是我的环境的规格:

Python: 2.7
OS: Windows 10
Jupyter Notebook: 5.4.1
Anaconda: 4.3.30
GraphLab: 2.1

EDIT: Added the error message on top of the stack trace which is Error: Requested port is unavailable 编辑:在错误的堆栈跟踪的顶部添加了错误消息Error: Requested port is unavailable

Downgrade tornado. 降级龙卷风。

pip install tornado==4.5.3

Find more answers in this link 此链接中找到更多答案

I used Anaconda3 5.1.0 and got a problem similar to yours. 我使用了Anaconda3 5.1.0,遇到了与您类似的问题。 Then, I uninsatll it, and download GraphLabCreateLauncher from Turi . 然后,我取消安装它,并从Turi下载GraphLabCreateLauncher。 Run the launcher and install Anaconda2 4.0.0. 运行启动器并安装Anaconda2 4.0.0。 Now, the problem is solved. 现在,问题解决了。 I hope it will help you. 希望对您有帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM