Error Running dbtransfer Tool


I’m running cb server version 5.0 on ubuntu servers. When I’m trying to run this cbtransfer command to export some data to a csv file:

./cbtransfer \
-b metrics-metadata \
--key=metrics\.content_partner:.* \
-u Administrator \
-p password \
http://server_host:8091 \

I got error message about “AttributeError: ‘module’ object has no attribute ‘loads’” (complete error message shown below). I checked the python versions on the server and we do have python 2.7 and 3.4 installed. Can anyone help with this?

  Traceback (most recent call last):
  File "/opt/couchbase/lib/python/cbtransfer", line 33, in <module>
  File "/opt/couchbase/lib/python/", line 80, in main
    rv =
  File "/opt/couchbase/lib/python/", line 112, in run
    rv, source_map, sink_map = self.check_endpoints()
  File "/opt/couchbase/lib/python/", line 167, in check_endpoints
    rv, source_map = self.source_class.check(self.opts, self.source_spec)
  File "/opt/couchbase/lib/python/", line 73, in check
    err, map = pump.rest_couchbase(opts, spec)
  File "/opt/couchbase/lib/python/", line 1025, in rest_couchbase
    result, errors = rest.list_buckets(True)
  File "/opt/couchbase/lib/python/", line 671, in list_buckets
    result, errors = self._get(url)
  File "/opt/couchbase/lib/python/", line 32, in g
    return f(*args, **kwargs)
  File "/opt/couchbase/lib/python/", line 1260, in _get
    return _handle_response(response, self.debug)
  File "/opt/couchbase/lib/python/", line 1320, in _handle_response
    return response.json(), None
  File "/opt/couchbase/lib/python/requests/", line 799, in json
    return complexjson.loads(
AttributeError: 'module' object has no attribute 'loads'


Hi @hclc,

Would you mind sharing a sample document or two? I’d like to try and reproduce.