AttributeError: 'NoneType' object has no attribute 'makefile'

Bug #681175 reported by Juan Simón
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Gmail Watcher
Invalid
Undecided
Unassigned
desktopcouch
New
Undecided
Chad Miller
desktopcouch (Ubuntu)
New
Undecided
Chad Miller

Bug Description

$ gmailwatcher
Removing stale, deceptive pid file.
Apache CouchDB has started, time to relax.
Browse your desktop CouchDB at file:///home/simon/.local/share/desktop-couch/couchdb.html
Traceback (most recent call last):
  File "/usr/bin/gmailwatcher", line 57, in <module>
    load_preferences()
  File "/usr/bin/gmailwatcher", line 45, in load_preferences
    dlg = PreferencesGmailwatcherDialog.PreferencesGmailwatcherDialog()
  File "/usr/lib/pymodules/python2.6/gmailwatcher/PreferencesGmailwatcherDialog.py", line 43, in __new__
    new_object.finish_initializing(builder)
  File "/usr/lib/pymodules/python2.6/gmailwatcher/PreferencesGmailwatcherDialog.py", line 82, in finish_initializing
    self._database = CouchDatabase(self._db_name, create=True)
  File "/usr/lib/python2.6/dist-packages/desktopcouch/records/server.py", line 57, in __init__
    server_class=server_class, oauth_tokens=oauth_tokens, ctx=ctx)
  File "/usr/lib/python2.6/dist-packages/desktopcouch/records/server_base.py", line 152, in __init__
    self._reconnect()
  File "/usr/lib/python2.6/dist-packages/desktopcouch/records/server_base.py", line 176, in _reconnect
    if self._database_name not in self._server:
  File "/usr/lib/pymodules/python2.6/couchdb/client.py", line 124, in __contains__
    self.resource.head(validate_dbname(name))
  File "/usr/lib/pymodules/python2.6/couchdb/client.py", line 981, in head
    return self._request('HEAD', 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/pymodules/python2.6/httplib2/__init__.py", line 1129, in request
    (response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey)
  File "/usr/lib/pymodules/python2.6/httplib2/__init__.py", line 901, in _request
    (response, content) = self._conn_request(conn, request_uri, method, body, headers)
  File "/usr/lib/pymodules/python2.6/httplib2/__init__.py", line 871, in _conn_request
    response = conn.getresponse()
  File "/usr/lib/python2.6/httplib.py", line 984, 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'
---
Architecture: i386
DistroRelease: Ubuntu 10.04
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release i386 (20100429)
NonfreeKernelModules: nvidia
Package: gmailwatcher 10.11.1
PackageArchitecture: all
ProcEnviron:
 LANGUAGE=es_ES:es:en_US:en
 PATH=(custom, user)
 LANG=es_ES.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.32-26.47-generic-pae 2.6.32.24+drm33.11
Tags: lucid
Uname: Linux 2.6.32-26-generic-pae i686
UnreportableReason: Este no es un paquete Ubuntu genuino
UserGroups: adm admin audio cdrom dialout dip fax fuse lp lpadmin netdev nopasswdlogin plugdev sambashare users vboxusers video winbindd_priv

Revision history for this message
Juan Simón (simonbcn) wrote : Dependencies.txt

apport information

tags: added: apport-collected
description: updated
Owais Lone (loneowais)
Changed in gmailwatcher:
status: New → Invalid
Revision history for this message
Juan Simón (simonbcn) wrote :

It's curious that this app produces errors in other apps...

Revision history for this message
Gary M (garym) wrote :

I get the same error repeating in ~/.cache/desktop-couch/log/desktop-couch-replication.log, with most of each traceback matching this one.

Changed in desktopcouch:
status: New → Confirmed
status: Confirmed → New
Gary M (garym)
tags: added: lucid maverick
Revision history for this message
Eric Casteleijn (thisfred) wrote :

Chad, will this be fixed in 1.0? (also, isn't there code in the current version to catch this error, or did that not land in time for maverick?)

Changed in desktopcouch:
assignee: nobody → Chad Miller (cmiller)
Changed in desktopcouch (Ubuntu):
assignee: nobody → Chad Miller (cmiller)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.