I have a patch for desktopcouch, but I can't decide on the best way to handle this down.
desktopcouch is a thin wrapper around python-couchdb, and in creating and using views, client programs access and use python-couchdb functions directly. Here's one problem I can't fix inside desktopcouch without adding a layer between them.
dbus.exceptions.DBusException: org.freedesktop.DBus.Python.AttributeError: Traceback (most recent call last):
File "/usr/lib/pymodules/python2.6/dbus/service.py", line 702, in _message_cb
retval = candidate_method(self, *args, **keywords)
File "/usr/lib/python2.6/dist-packages/gwibber/microblog/dispatcher.py", line 413, in Refresh
self.refresh()
File "/usr/lib/python2.6/dist-packages/gwibber/microblog/dispatcher.py", line 558, in refresh
operations = list(self.collector.get_operations())
File "/usr/lib/python2.6/dist-packages/gwibber/microblog/dispatcher.py", line 169, in get_operations
for o in self.account_to_operations(acct):
File "/usr/lib/python2.6/dist-packages/gwibber/microblog/dispatcher.py", line 149, in account_to_operations
args = self.handle_max_id(acct, opname)
File "/usr/lib/python2.6/dist-packages/gwibber/microblog/dispatcher.py", line 118, in handle_max_id
result = view[[id, opname]][[id, opname]].rows
File "/usr/lib/pymodules/python2.6/couchdb/client.py", line 893, in rows
self._fetch()
File "/usr/lib/pymodules/python2.6/couchdb/client.py", line 881, in _fetch
data = self.view._exec(self.options)
File "/usr/lib/pymodules/python2.6/couchdb/client.py", line 766, in _exec
resp, data = self.resource.get(**self._encode_options(options))
File "/usr/lib/pymodules/python2.6/couchdb/client.py", line 978, in get
return self._request('GET', path, headers=headers, **params)
File "/usr/lib/pymodules/python2.6/couchdb/client.py", line 1014, in _request
resp, data = _make_request()
File "/usr/lib/pymodules/python2.6/couchdb/client.py", line 1009, in _make_request
body=body, headers=headers)
File "/usr/lib/python2.6/dist-packages/httplib2/__init__.py", line 1129, in request
(response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey)
File "/usr/lib/python2.6/dist-packages/httplib2/__init__.py", line 901, in _request
(response, content) = self._conn_request(conn, request_uri, method, body, headers)
File "/usr/lib/python2.6/dist-packages/httplib2/__init__.py", line 871, in _conn_request
response = conn.getresponse()
File "/usr/lib/python2.6/httplib.py", line 988, in getresponse
method=self._method)
File "/usr/lib/python2.6/httplib.py", line 330, in __init__
self.fp = sock.makefile('rb', 0)
AttributeError: 'NoneType' object has no attribute 'makefile'
Note, no "desktopcouch" in there. :(
I'll post what I have that re-connects CouchDatabase objects, but views are harder to fix.
I have a patch for desktopcouch, but I can't decide on the best way to handle this down.
desktopcouch is a thin wrapper around python-couchdb, and in creating and using views, client programs access and use python-couchdb functions directly. Here's one problem I can't fix inside desktopcouch without adding a layer between them.
dbus.exceptions .DBusException: org.freedesktop .DBus.Python. AttributeError: Traceback (most recent call last): pymodules/ python2. 6/dbus/ service. py", line 702, in _message_cb method( self, *args, **keywords) python2. 6/dist- packages/ gwibber/ microblog/ dispatcher. py", line 413, in Refresh python2. 6/dist- packages/ gwibber/ microblog/ dispatcher. py", line 558, in refresh collector. get_operations( )) python2. 6/dist- packages/ gwibber/ microblog/ dispatcher. py", line 169, in get_operations to_operations( acct): python2. 6/dist- packages/ gwibber/ microblog/ dispatcher. py", line 149, in account_ to_operations max_id( acct, opname) python2. 6/dist- packages/ gwibber/ microblog/ dispatcher. py", line 118, in handle_max_id pymodules/ python2. 6/couchdb/ client. py", line 893, in rows pymodules/ python2. 6/couchdb/ client. py", line 881, in _fetch _exec(self. options) pymodules/ python2. 6/couchdb/ client. py", line 766, in _exec get(**self. _encode_ options( options) ) pymodules/ python2. 6/couchdb/ client. py", line 978, in get 'GET', path, headers=headers, **params) pymodules/ python2. 6/couchdb/ client. py", line 1014, in _request pymodules/ python2. 6/couchdb/ client. py", line 1009, in _make_request python2. 6/dist- packages/ httplib2/ __init_ _.py", line 1129, in request python2. 6/dist- packages/ httplib2/ __init_ _.py", line 901, in _request request( conn, request_uri, method, body, headers) python2. 6/dist- packages/ httplib2/ __init_ _.py", line 871, in _conn_request python2. 6/httplib. py", line 988, in getresponse self._method) python2. 6/httplib. py", line 330, in __init__
File "/usr/lib/
retval = candidate_
File "/usr/lib/
self.refresh()
File "/usr/lib/
operations = list(self.
File "/usr/lib/
for o in self.account_
File "/usr/lib/
args = self.handle_
File "/usr/lib/
result = view[[id, opname]][[id, opname]].rows
File "/usr/lib/
self._fetch()
File "/usr/lib/
data = self.view.
File "/usr/lib/
resp, data = self.resource.
File "/usr/lib/
return self._request(
File "/usr/lib/
resp, data = _make_request()
File "/usr/lib/
body=body, headers=headers)
File "/usr/lib/
(response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey)
File "/usr/lib/
(response, content) = self._conn_
File "/usr/lib/
response = conn.getresponse()
File "/usr/lib/
method=
File "/usr/lib/
self.fp = sock.makefile('rb', 0)
AttributeError: 'NoneType' object has no attribute 'makefile'
Note, no "desktopcouch" in there. :(
I'll post what I have that re-connects CouchDatabase objects, but views are harder to fix.