Current client is not compatible with the remote server, please check the version: {message}

Nebula v2.6.1
Python v2.6.0

pip3 install .

Processing /root/nebula-python
  Requirement already satisfied (use --upgrade to upgrade): nebula2-python==2.6.0 from file:///root/nebula-python in /usr/local/lib/python3.5/site-packages
Requirement already satisfied (use --upgrade to upgrade): httplib2 in /usr/local/lib/python3.5/site-packages (from nebula2-python==2.6.0)
Requirement already satisfied (use --upgrade to upgrade): future in /usr/local/lib/python3.5/site-packages (from nebula2-python==2.6.0)
Requirement already satisfied (use --upgrade to upgrade): six in /usr/local/lib/python3.5/site-packages (from nebula2-python==2.6.0)
Requirement already satisfied (use --upgrade to upgrade): pytz in /usr/local/lib/python3.5/site-packages (from nebula2-python==2.6.0)
Requirement already satisfied (use --upgrade to upgrade): pyparsing!=3.0.0,!=3.0.1,!=3.0.2,!=3.0.3,<4,>=2.4.2 in /usr/local/lib/python3.5/site-packages (from httplib2->nebula2-python==2.6.0)
You are using pip version 8.0.2, however version 21.3.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Processing /root/nebula-python
  Requirement already satisfied (use --upgrade to upgrade): nebula2-python==2.6.0 from file:///root/nebula-python in /usr/local/lib/python3.5/site-packages
Requirement already satisfied (use --upgrade to upgrade): httplib2 in /usr/local/lib/python3.5/site-packages (from nebula2-python==2.6.0)
Requirement already satisfied (use --upgrade to upgrade): future in /usr/local/lib/python3.5/site-packages (from nebula2-python==2.6.0)
Requirement already satisfied (use --upgrade to upgrade): six in /usr/local/lib/python3.5/site-packages (from nebula2-python==2.6.0)
Requirement already satisfied (use --upgrade to upgrade): pytz in /usr/local/lib/python3.5/site-packages (from nebula2-python==2.6.0)
Requirement already satisfied (use --upgrade to upgrade): pyparsing!=3.0.0,!=3.0.1,!=3.0.2,!=3.0.3,<4,>=2.4.2 in /usr/local/lib/python3.5/site-packages (from httplib2->nebula2-python==2.6.0)
You are using pip version 8.0.2, however version 21.3.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

python3 example/GraphClientSimpleExample.py

Traceback (most recent call last):
File “example/GraphClientSimpleExample.py”, line 12, in
from nebula2.gclient.net import ConnectionPool
File “/usr/local/lib/python3.5/site-packages/nebula2/gclient/net/init.py”, line 13, in
from nebula2.Exception import (
File “/usr/local/lib/python3.5/site-packages/nebula2/Exception.py”, line 84
Exception.init(self, f’Current client is not compatible with the remote server, please check the version: {message}’)
^
SyntaxError: invalid syntax

提示语不是说二者的版本不匹配吗,你如果用的 v2.6.0 的 Nebula 内核,那么就应该用 v2.6.0 的 Python 客户端,如果你用的是 master,对应也得用 master

但是我用的是nebula2-python==2.6.0,这个版本应该对吧?
从git拉的python example 应该是master,是这个问题么

你 Nebula 的版本是啥?直接 git clone 没有加分支拉下来的吗?

Nebula 版本是rpm安装包,2.6.1

我让研发看看,感觉是 Python 版本的问题。

  1. 这个错误显示问题是python 版本问题,你需要3.6以上的python
  2. ./bin/nebula-graphd --help看看输出中client_white_list这个有没有包含2.6.0
3 个赞

此话题已在最后回复的 7 天后被自动关闭。不再允许新回复。