Thanks for the mail, though I thought I was using the latest client. The client_lib/README file points to https://bitbucket.org/basho/riak-python-client and from there I ran the suggested command (hg clone https://bitbucket.org/basho/riak-python-client) to get the code.
However, I found at least part of the problem, though I still don't quite understand the root cause. In my riak-1.0.0 build directory, ./deps/protobuffs/ebin/protobuffs.beam is 12692 and includes the string next_field_num. However, ./rel/riak/lib/protobuffs-0/ebin/protobuffs.beam is only 7536 and does not include that string. It appears that the "rel" version is being built without the full protobuf code. When I run the server using the larger "deps" version, my test client works. On Thu, Oct 13, 2011 at 05:08:00PM -0400, Reid Draper wrote: > It looks like you're using version 1.2.2 of the client. I suggest trying > 1.3.0 or the master branch from github. > > On Thu, Oct 13, 2011 at 3:37 PM, Peter Fales <[email protected] > > wrote: > > > Trying to upgrade from 0.14.1 to 1.0.0... > > > > This python program works with 0.14.1: > > > > ==================================================================== > > import riak > > client = riak.RiakClient(port=XXXX, host="YYYY.ZZZZ", > > transport_class=riak.RiakPbcTransport) > > test_bucket = client.bucket('test') > > x=test_bucket.new('0-0-0','hello6') > > x.store() > > ==================================================================== > > However, with the server running 1.0.0, I get: > > > > ==================================================================== > > Traceback (most recent call last): > > File "./bench/client.py", line 6, in <module> > > x.store() > > File > > "/usr/lib/python2.7/site-packages/riak-1.2.2-py2.7.egg/riak/riak_object.py", > > line 296, in store > > Result = t.put(self, w, dw, return_body) > > File > > "/usr/lib/python2.7/site-packages/riak-1.2.2-py2.7.egg/riak/transports/pbc.py", > > line 188, in put > > msg_code, resp = self.recv_msg() > > File > > "/usr/lib/python2.7/site-packages/riak-1.2.2-py2.7.egg/riak/transports/pbc.py", > > line 357, in recv_msg > > self.recv_pkt() > > File > > "/usr/lib/python2.7/site-packages/riak-1.2.2-py2.7.egg/riak/transports/pbc.py", > > line 401, in recv_pkt > > format(nmsglen)) > > riak.RiakError: 'Socket returned short packet length - expected 4' > > ==================================================================== > > > > When this happens, console.logg gets: > > > > 2011-10-13 15:52:41.920 [error] <0.17823.0> CRASH REPORT Process > > <0.17823.0> with 0 neighbours crashed with reason: call to undefined > > function > > protobuffs:next_field_num(<<10,4,116,101,115,116,18,5,48,45,48,45,48,34,28,10,8,34,104,101,108,108,111,54,34,18,16,97,112...>>) > > > > > > Both 0.14.1 and 1.0.0 work with the HTTP interface, but I want to use > > the PB interface. > > > > I suspect I'm just missing something simple, but I haven't been puzzling > > over this for some time and haven't been able to find anything yet! > > > > > > -- > > Peter Fales > > Alcatel-Lucent > > Member of Technical Staff > > 1960 Lucent Lane > > Room: 9H-505 > > Naperville, IL 60566-7033 > > Email: [email protected] > > Phone: 630 979 8031 > > > > _______________________________________________ > > riak-users mailing list > > [email protected] > > http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com > > -- Peter Fales Alcatel-Lucent Member of Technical Staff 1960 Lucent Lane Room: 9H-505 Naperville, IL 60566-7033 Email: [email protected] Phone: 630 979 8031 _______________________________________________ riak-users mailing list [email protected] http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
