【问题标题】:GraphLab Create sFrame.show() function error when executingGraphLab Create sFrame.show() 函数执行时出错
【发布时间】:2018-03-30 05:41:59
【问题描述】:

我已经使用 Anaconda 安装了 GraphLab Create。使用 SFrame 似乎一切都很好,我可以操作数据并摄取它,但我无法执行函数 show()。错误信息是这样的:

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'

另外,我尝试将画布的目标改为笔记本本身,因为端口的事情可能导致了问题,但是我执行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'

这是我的环境的规格:

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

编辑:在堆栈跟踪顶部添加错误消息Error: Requested port is unavailable

【问题讨论】:

    标签: python jupyter-notebook graphlab


    【解决方案1】:

    降级龙卷风。

    pip install tornado==4.5.3
    

    this link寻找更多答案

    【讨论】:

      【解决方案2】:

      我使用 Anaconda3 5.1.0 遇到了与您类似的问题。 然后,我取消安装它,并从Turi 下载 GraphLabCreateLauncher。运行启动器并安装 Anaconda2 4.0.0。 现在,问题解决了。希望对你有帮助。

      【讨论】:

        猜你喜欢
        • 2021-10-01
        • 1970-01-01
        • 2018-12-04
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2014-06-25
        • 2021-06-04
        • 2016-12-31
        相关资源
        最近更新 更多