<div dir="ltr"><div><div><div>Hi there,<br><br></div>that really seems to be the issue here. I've quickly created a new sdist package for python-shout and installed it with the diff applied into my virtual environment and the broadcasting seems to work just fine again.<br>
<br></div>So I can confirm this to solve the issue. Hopefully they accept Bug Fixes fast so everyone could profit from this.<br><br></div>Thanks<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jul 21, 2014 at 2:49 PM, "Thomas B. Rücker" <span dir="ltr"><<a href="mailto:thomas@ruecker.fi" target="_blank">thomas@ruecker.fi</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<div class=""><br>
On 07/18/2014 07:33 PM, Frank Lazzarini wrote:<br>
> Hi there,<br>
><br>
> I am trying to use python-shout 0.2.1 to broadcast to a icecast 2.4.0<br>
> server, which result in a segmentation fault and I can't understand<br>
> why. Is anyone else experiencing this problem?<br>
</div>[…]<br>
<div class="">> # ./env/bin/python example.py test.mp3<br>
> Using libshout version 2.3.1<br>
> opening file test.mp3<br>
> Segmentation fault<br>
><br>
<br>
</div>As I'm not very well versed with those things it took me a bit, but I<br>
eventually dug out the problem. Something changed in python 2.5 (sic!),<br>
that broke the PyArg_ParseTuple call in shout.c<br>
(<a href="https://docs.python.org/2/c-api/arg.html#PyArg_ParseTuple" target="_blank">https://docs.python.org/2/c-api/arg.html#PyArg_ParseTuple</a>).<br>
<br>
Below is a diff of a quick-fix that works for me. Before I commit that<br>
and roll a release, I'd like to hear though from someone well versed in<br>
those things if it's the right-thing™ to do.<br>
<br>
----------------------------------<br>
Index: shout.c<br>
===================================================================<br>
--- shout.c (revision 19173)<br>
+++ shout.c (working copy)<br>
@@ -19,6 +19,7 @@<br>
* $Id$<br>
*/<br>
<br>
+#define PY_SSIZE_T_CLEAN<br>
#include <Python.h><br>
#include <shout/shout.h><br>
<br>
----------------------------------<br>
<br>
<br>
Cheers<br>
<br>
Thomas<br>
_______________________________________________<br>
Icecast-dev mailing list<br>
<a href="mailto:Icecast-dev@xiph.org">Icecast-dev@xiph.org</a><br>
<a href="http://lists.xiph.org/mailman/listinfo/icecast-dev" target="_blank">http://lists.xiph.org/mailman/listinfo/icecast-dev</a><br>
</blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr"><div><br></div><font face="arial, helvetica, sans-serif"><b style="font-size:small">Frank Lazzarini</b><br><font size="1"><b>Email:</b> <a href="mailto:flazzarini@gmail.com" target="_blank">flazzarini@gmail.com</a> <b>Phone:</b> +352 621 314 430<br>
<b>Blog:</b> <a href="http://www.gefoo.org" target="_blank">http://www.gefoo.org</a> <b>LinkedIn:</b> <a href="http://www.linkedin.com/pub/frank-lazzarini/1a/a30/112" target="_blank">http://www.linkedin.com/pub/frank-lazzarini/1a/a30/112</a></font></font><br>
<div><div><br></div></div></div>
</div>