Issue 194 in couchdb-python: couchdb-load attribute error: 'Resource' object has no attribute 'http'
The group you are posting to is a
Usenet group . Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
From:
couchdb-pyt... @googlecode.com
Date: Wed, 17 Aug 2011 08:43:21 +0000
Local: Wed, Aug 17 2011 4:43 am
Subject: Issue 194 in couchdb-python: couchdb-load attribute error: 'Resource' object has no attribute 'http'
Status: New Owner: ---- Labels: Type-Defect Priority-Medium New issue 194 by tomas.k... @gmail.com: couchdb-load attribute error: 'Resource' object has no attribute 'http' http://code.google.com/p/couchdb-python/issues/detail?id=194
Installed couchdb-python on Ubuntu 10.10, python version 2.6.5; couchdb-dump script correctly dumps a local database, but when running the couchdb-load script, I get the following error:
couchdb-load --input=cms.json -u fake -p invalid localhost:5984/dbname
Traceback (most recent call last): File "/usr/local/bin/couchdb-load", line 9, in <module> load_entry_point('CouchDB==0.9dev', 'console_scripts', 'couchdb-load')()
File "/usr/local/lib/python2.6/dist-packages/CouchDB-0.9dev-py2.6.egg/couchdb/to ols/load.py", line 87, in main password=options.password, ignore_errors=options.ignore_errors)
File "/usr/local/lib/python2.6/dist-packages/CouchDB-0.9dev-py2.6.egg/couchdb/to ols/load.py", line 27, in load_db db.resource.http.add_credentials(username, password) AttributeError: 'Resource' object has no attribute 'http'
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
couchdb-pyt... @googlecode.com
Date: Sun, 04 Sep 2011 11:18:20 +0000
Local: Sun, Sep 4 2011 7:18 am
Subject: Re: Issue 194 in couchdb-python: couchdb-load attribute error: 'Resource' object has no attribute 'http'
Comment #1 on issue 194 by ahmed.ri... @gmail.com: couchdb-load attribute error: 'Resource' object has no attribute 'http' http://code.google.com/p/couchdb-python/issues/detail?id=194
I got the same problem when trying to dump/load from python-client like : from couchdb.tools import load, dump dump.dump_db('http://127.0.0.1:5984/koko' , username='admin', password='couch', open('koko', 'w')) But I tried this and worked fine : dump.dump_db('http://admin:co... @127.0.0.1:5984/koko', output=open('koko', 'w'))
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
couchdb-pyt... @googlecode.com
Date: Sun, 04 Sep 2011 12:40:38 +0000
Local: Sun, Sep 4 2011 8:40 am
Subject: Re: Issue 194 in couchdb-python: couchdb-load attribute error: 'Resource' object has no attribute 'http'
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
Ahmed Refaey <ahmed.rif... @gmail.com>
Date: Sun, 4 Sep 2011 06:05:39 -0700 (PDT)
Local: Sun, Sep 4 2011 9:05 am
Subject: Re: Issue 194 in couchdb-python: couchdb-load attribute error: 'Resource' object has no attribute 'http'
I faced the same when trying loading using : load.load_db(open('koko'), 'http://127.0.0.1:5984/kiki' , username='admin', password='couch') But this worked :
load.load_db(open('koko'), 'http://admin:co... @127.0.0.1:5984/kiki')
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
couchdb-pyt... @googlecode.com
Date: Thu, 09 Feb 2012 14:22:49 +0000
Local: Thurs, Feb 9 2012 9:22 am
Subject: Re: Issue 194 in couchdb-python: couchdb-load attribute error: 'Resource' object has no attribute 'http'
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
couchdb-pyt... @googlecode.com
Date: Thu, 09 Feb 2012 15:00:11 +0000
Local: Thurs, Feb 9 2012 10:00 am
Subject: Re: Issue 194 in couchdb-python: couchdb-load attribute error: 'Resource' object has no attribute 'http'
Comment #4 on issue 194 by kxepal: couchdb-load attribute error: 'Resource' object has no attribute 'http' http://code.google.com/p/couchdb-python/issues/detail?id=194
In short, just replace
> db.resource.http.add_credentials(username, password) by > db.resource.credentials = (username, password)
I'll post patch a little later.
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
couchdb-pyt... @googlecode.com
Date: Fri, 21 Sep 2012 08:34:25 +0000
Local: Fri, Sep 21 2012 4:34 am
Subject: Re: Issue 194 in couchdb-python: couchdb-load attribute error: 'Resource' object has no attribute 'http'
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
couchdb-pyt... @googlecode.com
Date: Fri, 05 Oct 2012 20:29:28 +0000
Local: Fri, Oct 5 2012 4:29 pm
Subject: Re: Issue 194 in couchdb-python: couchdb-load attribute error: 'Resource' object has no attribute 'http'
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
couchdb-pyt... @googlecode.com
Date: Tue, 09 Oct 2012 08:09:28 +0000
Local: Tues, Oct 9 2012 4:09 am
Subject: Re: Issue 194 in couchdb-python: couchdb-load attribute error: 'Resource' object has no attribute 'http'
You must
Sign in before you can post messages.
You do not have the permission required to post.