python API中的H2OConnectionError

时间:2018-06-21 05:01:47

标签: h2o

我已经在python中成功安装了H2O。我可以在笔记本中导入h2o模块。但是当使用init方法时,会引发以下错误。

h2o.init()

  

H2OConnectionError:版本不匹配。 H2O版本为3.16.0.11,但h2o-python软件包版本为3.20.0.2。从-http://h2o-release.s3.amazonaws.com/h2o/rel-wheeler/11/index.html安装匹配的h2o-Python版本。

我遵循此link进行安装。

对于完全跟踪错误

Checking whether there is an H2O instance running at http://127.0.0.1:54321. connected.
---------------------------------------------------------------------------
H2OConnectionError                        Traceback (most recent call last)
<ipython-input-3-8b3c14e1b107> in <module>()
----> 1 h2o.init(ip="127.0.0.1",max_mem_size_GB = 2)

/usr/local/lib/python2.7/dist-packages/h2o/h2o.pyc in init(url, ip, port, https, insecure, username, password, cookies, proxy, start_h2o, nthreads, ice_root, enable_assertions, max_mem_size, min_mem_size, strict_version_check, ignore_config, extra_classpath, **kwargs)
    263                                      auth=auth, proxy=proxy,cookies=cookies, verbose=True)
    264     if check_version:
--> 265         version_check()
    266     h2oconn.cluster.timezone = "UTC"
    267     h2oconn.cluster.show_status()

/usr/local/lib/python2.7/dist-packages/h2o/h2o.pyc in version_check()
    137                 "Install the matching h2o-Python version from - "
    138                 "http://h2o-release.s3.amazonaws.com/h2o/{2}/{3}/index.html."
--> 139                 "".format(ver_h2o, ver_pkg, branch_name_h2o, build_number_h2o))
    140     # Check age of the install
    141     if ci.build_too_old:

H2OConnectionError: Version mismatch. H2O is version 3.16.0.11, but the h2o-python package is version 3.20.0.2. Install the matching h2o-Python version from - http://h2o-release.s3.amazonaws.com/h2o/rel-wheeler/11/index.html.

我也尝试过

h2o.init(ip="127.0.0.1")

结果还是一样。

但是,h2o实例正在http://localhost:54321上运行。

我现在该怎么办?

0 个答案:

没有答案