incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ramanadham, Radhika" <radhika.ramanad...@emc.com>
Subject RE: Get a harmless error everytime a document is created in couchdb using python-cloudant
Date Wed, 30 Jul 2014 18:27:00 GMT
Thank you. I will try it out.

-----Original Message-----
From: Mike Marino [mailto:mmarino@gmail.com] 
Sent: Wednesday, July 30, 2014 2:07 PM
To: user@couchdb.apache.org
Subject: Re: Get a harmless error everytime a document is created in couchdb using python-cloudant

Hi Rhadika,

I believe this was fixed with this commit:

https://api.github.com/repos/cloudant-labs/cloudant-python/commits/04609664e32f330a781bfb7a11a198f66980e30a

The current version is 0.5.9, can you try upgrading and running your code again?

mgm

Am 30.07.2014 um 19:28 schrieb "Ramanadham, Radhika" <
radhika.ramanadham@emc.com>:

HI,
I am using cloudant0.5.8 and python3.3, couchdb 1.5.1 on suse linux.
I get the error whenever I create a document. The document does get created, but I can't avoid
the error.


Exception TypeError: TypeError('delete() takes 2 positional arguments but 3 were given',)
in <bound method Design.__del__ of <cloudant.design.Design object at 0x7f265f4f4dd0>>
ignored

Here is my code where I create a design document-

def createDesignDocForErrors():
   design = db.design(errors_view)
   resp = design.put(params={
       "_id":"_design/errors",
       "language": "javascript",
       "views":
       {
           "by_test_id": {
               #"map": "function(doc) { if (doc.type == 'error')  emit(doc.test_id, doc.errors)
}"
               "map": "function(doc) { if (doc.type == 'error')  emit(doc.test_id, doc.error_count)
}",
               "reduce" : "_sum"
           },

           #http://
<IP>:5984/longevity/_design/errors/_view/by_testid_starttime?group=true
           "by_testid_starttime": {
               "map": "function(doc) { if (doc.type == 'error')  emit([doc.test_id,doc.start_time],
doc.error_count) }",
               "reduce" : "function(keys, values) {return (values[0])}"
           }
       }
    })

Can anyone help?

Thanks,
Radhika
Mime
View raw message