Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Issue 194 in couchdb-python: couchdb-load attribute error: 'Resource' object has no attribute 'http'
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  9 messages - Collapse all  -  Translate all to Translated (View all originals)
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:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
couchdb-pyt...@googlecode.com  
View profile  
 More options Aug 17 2011, 4:43 am
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.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
couchdb-pyt...@googlecode.com  
View profile  
 More options Sep 4 2011, 7:18 am
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.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
couchdb-pyt...@googlecode.com  
View profile  
 More options Sep 4 2011, 8:40 am
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'

Comment #2 on 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

Let me add that I didn't have this problem when dumping the database but  
rather when loading the exported file into another one.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ahmed Refaey  
View profile  
 More options Sep 4 2011, 9:05 am
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.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
couchdb-pyt...@googlecode.com  
View profile  
 More options Feb 9 2012, 9:22 am
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'

Comment #3 on issue 194 by strtw...@gmail.com: couchdb-load attribute  
error: 'Resource' object has no attribute 'http'
http://code.google.com/p/couchdb-python/issues/detail?id=194

Did you find a solution to this?

I have the same problem when importing a db


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
couchdb-pyt...@googlecode.com  
View profile  
 More options Feb 9 2012, 10:00 am
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.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
couchdb-pyt...@googlecode.com  
View profile  
 More options Sep 21 2012, 4:34 am
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'
Updates:
        Owner: kxepal

Comment #5 on issue 194 by djc.ochtman: couchdb-load attribute  
error: 'Resource' object has no attribute 'http'
http://code.google.com/p/couchdb-python/issues/detail?id=194

(No comment was entered for this change.)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
couchdb-pyt...@googlecode.com  
View profile  
 More options Oct 5 2012, 4:29 pm
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'

Comment #6 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

Patch with tests attached.

Attachments:
        couchdb-python-194.1.patch  2.4 KB


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
couchdb-pyt...@googlecode.com  
View profile  
 More options Oct 9 2012, 4:09 am
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'
Updates:
        Status: Fixed

Comment #7 on issue 194 by matt.goo...@gmail.com: couchdb-load attribute  
error: 'Resource' object has no attribute 'http'
http://code.google.com/p/couchdb-python/issues/detail?id=194

Fixed in r58b76bbcb082, thanks.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »