Python client error (ubuntu)

Evan Vigil-McClanahan emcclanahan at basho.com
Wed Apr 3 10:26:41 EDT 2013


At the moment, the master branch of the python client is in a state of
flux leading up to another release.   the 1.5-stable branch is more
likely what you want for the time being, or you can install from pypy
via pip or easy_install.

On Wed, Apr 3, 2013 at 6:02 AM, H. Ibrahim YILMAZ <ibrahim at drlinux.org> wrote:
> Hi,
>
> I'm trying to use riak with python.
>
> I've installed the client (from github).
>
> riak (1.2.0 2012-08-06) Debian x86_64
>
> When I try to connect I got error:
>
> AttributeError: 'module' object has no attribute 'RiakClient'
>
> The code :
>
> import riak
> import uuid
> import time
>
> client = riak.RiakClient()
> user_bucket = client.bucket('user')
>
> new_user = user_bucket.new('johndoe', data={
>     'first_name': 'John',
>     'last_name': 'Doe',
>     'gender': 'm',
>     'website': 'http://example.com/',
>     'is_active': True,
> })
>
>
> new_user.store()
>
> I've already installed:
>
> protobuf==2.4.1
> Python 2.7.4rc1
>
> Thanks...
>
>
> _______________________________________________
> riak-users mailing list
> riak-users at lists.basho.com
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
>




More information about the riak-users mailing list