Subdocument result iterator is using izip which hasn't been imported from itertools (and replaces zip in python3):
1
|
def __iter__(self):
|
2
|
for resinfo, specinfo in izip(self._results, self._specs):
|
3
|
err, value, path = resinfo[0], resinfo[1], specinfo[1]
|
4
|
if err:
|
5
|
raise E.exc_from_rc(err, obj=path)
|
6
|
yield value
|
$ python sd_test.py
|
Traceback (most recent call last):
|
File "sd_test.py", line 9, in <module>
|
for r in beer_sample.retrieve_in("21st_amendment_brewery_cafe-21a_ipa", "description"):
|
File "/Users/will/Developer/cbpython/pycbc/couchbase/result.py", line 89, in __iter__
|
for resinfo, specinfo in izip(self._results, self._specs):
|
NameError: global name 'izip' is not defined
|