Alex, Creating a bucket type does not also activate it. That is a separate step:
*riak-admin bucket-type activate likes* If that returns *likes has been activated* or something along those lines, then the bucket type is ready to be used. Luc On Fri, Aug 15, 2014 at 10:37 AM, Alex De la rosa <[email protected]> wrote: > Hi Sean, > > I activated the bucket as follows: > > > riak-admin bucket-type create likes '{"props":{"datatype":"counter"}}' > > So in theory is good to go; seems I have version 2.0.3 installed instead > of 2.1.0rc1. It might be this. If I install it with your command, would I > have any compatibility issues once the final version is released? > > Thanks! > Alex > > > On Fri, Aug 15, 2014 at 7:07 PM, Sean Cribbs <[email protected]> wrote: > >> Hi Alex, >> >> The published version is not a final release, so it won't be >> automatically installed by pip. Try this: pip install riak==2.1.0rc1 >> >> Also, did you activate your bucket-type using riak-admin? It won't be >> usable until it's activated. >> >> On Fri, Aug 15, 2014 at 12:02 PM, Alex De la rosa >> <[email protected]> wrote: >> > Hi, thanks for your suggestion, but I would prefer to use the official >> > packages, and for what I saw on the list some days ago, the new version >> was >> > published, so I wonder why is not yet working. >> > >> > Thanks, >> > Alex >> > >> > >> > On Fri, Aug 15, 2014 at 6:20 PM, tele <[email protected]> wrote: >> >> >> >> Hi Alex, >> >> >> >> Use the version from git and see if you get the same error: >> >> >> >> git clone https://github.com/basho/riak-python-client.git >> >> cd riak-python-client >> >> python setup.py install >> >> >> >> :tele >> >> >> >> >> >> On Fri, 15 Aug 2014 18:12:09 +0200 >> >> Alex De la rosa <[email protected]> wrote: >> >> >> >> > Hi there, >> >> > >> >> > I created a "counter" bucket called "likes" with the following shell >> >> > script: >> >> > >> >> > riak-admin bucket-type create likes >> '{"props":{"datatype":"counter"}}' >> >> > >> >> > When I try to follow the guide [ >> >> > http://docs.basho.com/riak/2.0.0/dev/using/data-types ] to use this >> >> > bucket with Python, I found the following issue: >> >> > >> >> > Traceback (most recent call last): >> >> > File "x.py", line 17, in <module> >> >> > bucket = client.bucket_type('counter_bucket').bucket('likes') >> >> > AttributeError: 'RiakClient' object has no attribute 'bucket_type' >> >> > >> >> > Something wrong? Is a fresh install from "pip" so I thought the >> Python >> >> > library would be in its last updated version? >> >> > >> >> > Thanks! >> >> > Alex >> >> >> > >> > >> > _______________________________________________ >> > riak-users mailing list >> > [email protected] >> > http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com >> > >> >> >> >> -- >> Sean Cribbs <[email protected]> >> Software Engineer >> Basho Technologies, Inc. >> http://basho.com/ >> > > > _______________________________________________ > riak-users mailing list > [email protected] > http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com > >
_______________________________________________ riak-users mailing list [email protected] http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
