带有Python 3的GridDB服务器命令

问题描述

对于GridDB服务器CE,要运行“ gs_startnode”之类的命令,我们必须使用Python 2。

如果我们使用Python 3,则会发生以下错误:

bin/gs_startnode
Traceback (most recent call last):
File "bin/gs_startnode",line 122,in <module>
proc = subprocess.Popen(command,stdout=f,stderr=f)
File "/usr/lib/python2.7/subprocess.py",line 394,in __init__
errread,errwrite)
File "/usr/lib/python2.7/subprocess.py",line 1047,in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory

Python 2将于2020年退役,其信息为:https://www.python.org/doc/sunset-python-2/

为什么不将源代码升级到Python3?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)