Python client error (ubuntu)

H. Ibrahim YILMAZ ibrahim at drlinux.org
Wed Apr 3 09:02:22 EDT 2013


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...

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20130403/4aaf30da/attachment.html>


More information about the riak-users mailing list