我试图在python中使用这个简单的例子:
>>> from desktopcouch.records.server import CouchDatabase
>>> from desktopcouch.records.record import Record
>>> db = CouchDatabase('testing', create=True)
>>>但只在根帐户中工作,并与常规用户一起使用:
>>> from desktopcouch.records.server import CouchDatabase
>>> from desktopcouch.records.record import Record
>>> db = CouchDatabase('testing', create=True)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/pymodules/python2.7/desktopcouch/application/server.py", line 101, in __init__
oauth_tokens=oauth_tokens, ctx=ctx)
File "/usr/lib/pymodules/python2.7/desktopcouch/application/server.py", line 75, in __init__
oauth_tokens=oauth_tokens, ctx=ctx, views_factory=views_factory)
File "/usr/lib/pymodules/python2.7/desktopcouch/records/database.py", line 123, in __init__
self._reconnect()
File "/usr/lib/pymodules/python2.7/desktopcouch/application/server.py", line 81, in _reconnect
port = find_port(ctx=self.ctx)
File "/usr/lib/pymodules/python2.7/desktopcouch/application/platform/__init__.py", line 48, in find_port
return platform_find_port(pid, ctx)
File "/usr/lib/pymodules/python2.7/desktopcouch/application/platform/linux/__init__.py", line 100, in platform_find_port
proxy = bus.get_object('org.desktopcouch.CouchDB', '/')
File "/usr/lib/python2.7/dist-packages/dbus/bus.py", line 241, in get_object
follow_name_owner_changes=follow_name_owner_changes)
File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 248, in __init__
self._named_service = conn.activate_name_owner(bus_name)
File "/usr/lib/python2.7/dist-packages/dbus/bus.py", line 180, in activate_name_owner
self.start_service_by_name(bus_name)
File "/usr/lib/python2.7/dist-packages/dbus/bus.py", line 278, in start_service_by_name
'su', (bus_name, flags)))
File "/usr/lib/python2.7/dist-packages/dbus/connection.py", line 651, in call_blocking
message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken发布于 2012-11-24 07:42:37
您使用的是什么版本的Ubuntu?只有能够以根用户的形式启动桌面沙发,听起来就像这个bug:1_file=“CouchDB 1.1.1可压缩性的配置修正”
我为它提出了一个修正,但是看起来单元测试有一些问题(我不认为与我的修复相关)。
无论如何,桌面沙发现在没有维护,我建议不要在上面构建任何新的软件。如果您对Ubuntu作为一种服务感兴趣,请看一下U1DB,它取代了桌面沙发。
如果您对在桌面应用程序中使用CouchDB感兴趣,请查看UserCouch和微纤维 (免责声明:我是两者的作者和维护者)。这两个项目都是作为Novacut项目的一部分开发的。我们最初使用的是桌面沙发,但从那时起我们就不再使用它了。
https://askubuntu.com/questions/218407
复制相似问题