2011-01-26 6 views
2

Est-ce que quelqu'un a eu cette erreur? S'il vous plaît conseiller! Il semble y avoir un problème avec la bibliothèque httplib python.Python CouchDB/httplib - Erreur: [Errno 61] Connexion refusée

Python 2.7 (r27:82508, Jul 3 2010, 20:17:05) 
[GCC 4.0.1 (Apple Inc. build 5493)] on darwin 
Type "copyright", "credits" or "license()" for more information. 

>>> import couchdb 
>>> couch = couchdb.Server() 
>>> couch.create("foo") 

Traceback (most recent call last): 
    File "<pyshell#9>", line 1, in <module> 
    couch.create("foo") 
    File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/couchdb/client.py", line 193, in create 
    self.resource.put_json(validate_dbname(name)) 
    File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/couchdb/http.py", line 405, in put_json 
    status, headers, data = self.put(*a, **k) 
    File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/couchdb/http.py", line 384, in put 
    return self._request('PUT', path, body=body, headers=headers, **params) 
    File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/couchdb/http.py", line 419, in _request 
    credentials=self.credentials) 
    File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/couchdb/http.py", line 239, in request 
    resp = _try_request_with_retries(iter(self.retry_delays)) 
    File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/couchdb/http.py", line 205, in _try_request_with_retries 
    raise e 
error: [Errno 61] Connection refused 
+1

Etes-vous sûr que canapé est en cours d'exécution sur le port par défaut? Pouvez-vous le faire par telnet? –

+0

Il ne fonctionne pas. Comment démarrer CouchDB sur Mac OS X? – heapzero

+0

D'oh! Ma faute! Ça ne fonctionnait pas! Ça fonctionne maintenant! Merci pour votre aide! :) – heapzero

Répondre

0

Êtes-vous derrière un proxy? vérifier en faisant: python -c "importer urllib; imprimer urllib.getproxies()"

Questions connexes