Awesome! Thank you so much :)<div><br></div><div>Alex<br><br>On Friday, December 19, 2014, Brett Hazen <<a href="mailto:brett@basho.com">brett@basho.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div style="font-family:Verdana,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto">Alex —</div><div style="font-family:Verdana,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto"><br></div><div style="font-family:Verdana,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto">The new version was released today, including this feature.  Announcement to follow.</div> <br> <div><div style="font-family:helvetica,arial;font-size:13px">Brett</div></div> <br><p style="color:#000">On December 18, 2014 at 4:43:10 AM, Alex De la rosa (<a href="javascript:_e(%7B%7D,'cvml','alex.rosa.box@gmail.com');" target="_blank">alex.rosa.box@gmail.com</a>) wrote:</p> <blockquote type="cite"><span><div><div></div><div>






<div dir="ltr">Hi Sean,
<div><br></div>
<div>I wonder how the Python client progress goes? I didn't see any
news about it and PIP seems to not have a new version... when will
the delete bug fixed?</div>
<div><br></div>
<div>Thanks,</div>
<div>Alex</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Mon, Nov 17, 2014 at 4:53 PM, Alex De
la rosa <span dir="ltr"><<a href="javascript:_e(%7B%7D,'cvml','alex.rosa.box@gmail.com');" target="_blank">alex.rosa.box@gmail.com</a>></span> wrote:
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Awesome, thanks :)</div>
<div>
<div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Mon, Nov 17, 2014 at 4:52 PM, Sean
Cribbs <span dir="ltr"><<a href="javascript:_e(%7B%7D,'cvml','sean@basho.com');" target="_blank">sean@basho.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">I'll confer with Brett, who is wrapping up some
Python 3 compatibility, another release is needed soon.</div>
<div>
<div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Mon, Nov 17, 2014 at 1:12 AM, Alex De
la rosa <span dir="ltr"><<a href="javascript:_e(%7B%7D,'cvml','alex.rosa.box@gmail.com');" target="_blank">alex.rosa.box@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Yeah! this time worked :) thanks! Any ideas when a
new release for the Python client coming with that bug fixed?
<div><br></div>
<div>Thanks,</div>
<div>Alex</div>
</div>
<div>
<div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Mon, Nov 17, 2014 at 2:02 AM, Sean
Cribbs <span dir="ltr"><<a href="javascript:_e(%7B%7D,'cvml','sean@basho.com');" target="_blank">sean@basho.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Sorry, I made a mistake in the example. Try this:
<div><br></div>
<div>RiakObject(bucket._client, bucket, 'testkey').delete()</div>
</div>
<div>
<div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Sun, Nov 16, 2014 at 3:15 PM, Alex De
la rosa <span dir="ltr"><<a href="javascript:_e(%7B%7D,'cvml','alex.rosa.box@gmail.com');" target="_blank">alex.rosa.box@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Hi Sean,
<div><br></div>
<div>Seams that the workaround suggested hits the same error:</div>
<div>
<p><span><span>Traceback (most recent call
last):<br></span></span>  File "x.py", line 9, in
<module><br>
    RiakObject(bucket, 'testkey').delete()<br>
  File
"/usr/local/lib/python2.7/dist-packages/riak/riak_object.py", line
335, in delete<br>
    timeout=timeout)<span><br>
  File
"/usr/local/lib/python2.7/dist-packages/riak/bucket.py", line 539,
in delete<br>
    return self.new(key).delete(**kwargs)<br>
AttributeError: 'Map' object has no attribute 'delete'</span></p>
<p>Thanks,<br>
Alex</p>
</div>
</div>
<div>
<div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Sun, Nov 16, 2014 at 8:02 PM, Sean
Cribbs <span dir="ltr"><<a href="javascript:_e(%7B%7D,'cvml','sean@basho.com');" target="_blank">sean@basho.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Hi Alex,
<div><br></div>
<div>That's a bug in the Python client. There's an existing issue
on the repo for it: <a href="https://github.com/basho/riak-python-client/issues/365" target="_blank">https://github.com/basho/riak-python-client/issues/365</a></div>
<div><br></div>
<div>In the meantime, here's a workaround:</div>
<div><br></div>
<div>from riak.riak_object import RiakObject</div>
<div><br></div>
<div>RiakObject(bucket, 'testkey').delete()</div>
<div><br></div>
<div>Sorry for the inconvenience.</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">
<div>
<div>On Sat, Nov 15, 2014 at 5:54 PM, Alex De la rosa <span dir="ltr"><<a href="javascript:_e(%7B%7D,'cvml','alex.rosa.box@gmail.com');" target="_blank">alex.rosa.box@gmail.com</a>></span> wrote:<br></div>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div>
<div dir="ltr">
<p><span>Hi there,</span></p>
<p><span>I created an index and a MAP bucket-type in the following
way:</span></p>
<p><span>curl -XPUT "<a href="http://x.x.x.x:8098/search/index/ix_users" target="_blank">http://x.x.x.x:8098/search/index/ix_users</a>"<br></span>riak-admin
bucket-type create tp_users '{"props":
{"allow_mult":true,"search_index":"ix_users","datatype":"map"}}'<br>

riak-admin bucket-type activate tp_users</p>
<p>Then I saved some data and is working fine; but when I try to
delete a key, I get a nasty error; what am I doing wrong?:</p>
<p><span>import</span> <span>riak</span></p>
<p><span>client = riak.RiakClient(protocol =</span>
<span>'pbc'</span><span>, nodes =
[{</span><span>'host'</span><span>:</span>
<span>'x.x.x.x'</span><span>,</span>
<span>'http_port'</span><span>: 8098,</span>
<span>'pb_port'</span><span>: 8087}])<br></span><span>bucket =
client.bucket_type(</span><span>'tp_users'</span><span>).bucket(</span><span>'users'</span><span>)<br>
</span><span>bucket.delete(</span><span>'testkey'</span><span>)</span></p>
<p><span>Output of the script:</span></p>
<p><span>Traceback (most recent call
last):<br></span>  File "x.py", line 6, in
<module><br>
    bucket.delete('testkey')<br>
  File
"/usr/local/lib/python2.7/dist-packages/riak/bucket.py", line 539,
in delete<br>
    return self.new(key).delete(**kwargs)<br>
AttributeError: 'Map' object has no attribute 'delete'</p>
<p><span>This are my riak and python client versions:</span></p>
<p>~ # pip show riak<br>
---<br>
Name: riak<br>
Version: 2.1.0<br>
Location: /usr/local/lib/python2.7/dist-packages<br>
Requires: riak-pb, pyOpenSSL</p>
<p>~ # riak version<br>
2.0.2</p>
<p><span>Thanks,<br>
Alex</span></p>
</div>
<br></div>
</div>
_______________________________________________<br>
riak-users mailing list<br>
<a href="javascript:_e(%7B%7D,'cvml','riak-users@lists.basho.com');" target="_blank">riak-users@lists.basho.com</a><br>
<a href="http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com" target="_blank">http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com</a><br>

<br></blockquote>
</div>
<span><font color="#888888"><br>
<br clear="all"></font></span>
<div><span><font color="#888888"><br></font></span></div>
<span><font color="#888888">--<br></font></span>
<div><span><font color="#888888">Sean Cribbs <<a href="javascript:_e(%7B%7D,'cvml','sean@basho.com');" target="_blank">sean@basho.com</a>><br>
Sr. Software Engineer<br>
Basho Technologies, Inc.<br>
<a href="http://basho.com/" target="_blank">http://basho.com/</a></font></span></div>
</div>
</blockquote>
</div>
<br></div>
</div>
</div>
</blockquote>
</div>
<br>
<br clear="all">
<div><br></div>
--<br>
<div>Sean Cribbs <<a href="javascript:_e(%7B%7D,'cvml','sean@basho.com');" target="_blank">sean@basho.com</a>><br>
Sr. Software Engineer<br>
Basho Technologies, Inc.<br>
<a href="http://basho.com/" target="_blank">http://basho.com/</a></div>
</div>
</div>
</div>
</blockquote>
</div>
<br></div>
</div>
</div>
</blockquote>
</div>
<br>
<br clear="all">
<div><br></div>
--<br>
<div>Sean Cribbs <<a href="javascript:_e(%7B%7D,'cvml','sean@basho.com');" target="_blank">sean@basho.com</a>><br>
Sr. Software Engineer<br>
Basho Technologies, Inc.<br>
<a href="http://basho.com/" target="_blank">http://basho.com/</a></div>
</div>
</div>
</div>
</blockquote>
</div>
<br></div>
</div>
</div>
</blockquote>
</div>
</div>


_______________________________________________
<br>riak-users mailing list
<br><a href="javascript:_e(%7B%7D,'cvml','riak-users@lists.basho.com');" target="_blank">riak-users@lists.basho.com</a>
<br><a href="http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com" target="_blank">http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com</a>
<br></div></div></span></blockquote></div></blockquote></div>