incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Marino <>
Subject Re: Get a harmless error everytime a document is created in couchdb using python-cloudant
Date Wed, 30 Jul 2014 18:07:03 GMT
Hi Rhadika,

I believe this was fixed with this commit:

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


Am 30.07.2014 um 19:28 schrieb "Ramanadham, Radhika" <>:

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 <
object at 0x7f265f4f4dd0>> ignored

Here is my code where I create a design document-

def createDesignDocForErrors():
   design =
   resp = design.put(params={
       "language": "javascript",
           "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"

           "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?


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message