json.encode(value), AttributeError: 'module' object has no attribute 'encode'
KodjoSuprem opened this issue · 2 comments
KodjoSuprem commented
I want to get all design docs from a db:
for doc in db.all(startkey="_design/", endkey="_design0"):
and gets
File "...\pycouchdb\utils.py", line 116, in _encode_view_options
value = json.encode(value)
AttributeError: 'module' object has no attribute 'encode'
I naively fixed it with the utils.to_json() function