I wrote a simple Python client to insert data but when I try to
perform a query, I get:
Traceback (most recent call last):
File "./search.py", line 29, in <module>
row = result.get()
File "build/bdist.linux-x86_64/egg/riak/mapreduce.py", line 302, in get
File "build/bdist.linux-x86_64/egg/riak/bucket.py", line 245, in get
File "build/bdist.linux-x86_64/egg/riak/riak_object.py", line 290, in reload
File "build/bdist.linux-x86_64/egg/riak/transports/pbc.py", line 152, in get
File "build/bdist.macosx-10.6-universal/egg/google/protobuf/reflection.py",
line 510, in setter
File
"build/bdist.macosx-10.6-universal/egg/google/protobuf/internal/type_checkers.py",
line 91, in CheckValue
TypeError: u'events' has type <type 'unicode'>, but expected one of:
(<type 'str'>,)
My query is:
search_query = client.search('events', 'name:Fred')
Is it complaining about the bucket name? I had to manually build protobuf.
Thanks
Mike
_______________________________________________
riak-users mailing list
[email protected]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com