【发布时间】:2014-11-30 01:52:37
【问题描述】:
我在使用我的 python 驱动程序连接到我的 RethinkDB 本地主机时遇到问题。 目录结构为:
home/rethinkdb/drivers/python.
当我在这个 python 目录中时,我启动了 python shell。 我打字 将 rethinkdb 导入为 r r.connect('localhost', 28015).repl()
我得到错误:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "rethinkdb/net.py", line 366, in connect
return Connection(host, port, db, auth_key, timeout)
File "rethinkdb/net.py", line 136, in __init__
self.reconnect(noreply_wait=False)
File "rethinkdb/net.py", line 157, in reconnect
self._sock_sendall(struct.pack("<L", p.VersionDummy.Protocol.JSON))
File "rethinkdb/net.py", line 219, in _sock_sendall
return self.socket.sendall(data)
File "/usr/lib/python2.7/socket.py", line 224, in meth
return getattr(self._sock,name)(*args)
**socket.error: [Errno 32] Broken pipe**
我不知道为什么会这样-感谢帮助!
【问题讨论】:
-
驱动和Rethinkdb版本是?
-
@janihh Rethinkdb 的版本是 1.12.5...我不知道如何检查驱动程序的版本?