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 <[email protected]> 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 > [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
