Python library: Error with counters

Alex De la rosa alex.rosa.box at gmail.com
Fri Aug 15 13:02:59 EDT 2014


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 <tele at rhizomatica.org> 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 <alex.rosa.box at gmail.com> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20140815/d81371da/attachment.html>


More information about the riak-users mailing list