<div dir="ltr">FYI, this change also broke wokkel, too, so at least you&#39;re not alone, it seems...<br><br><a href="https://twistedmatrix.com/trac/ticket/6245">https://twistedmatrix.com/trac/ticket/6245</a><br></div><div class="gmail_extra">

<br><br><div class="gmail_quote">On Thu, Jan 17, 2013 at 5:22 PM, Angelo Dell&#39;Aera <span dir="ltr">&lt;<a href="mailto:angelo.dellaera@gmail.com" target="_blank">angelo.dellaera@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<br>
After updating Twisted to 12.3.0 I started getting errors like the following one<br>
<br>
2013-01-17 14:38:23+0100 [-]   File &quot;/usr/lib64/python2.7/site-packages/twisted/names/common.py&quot;, line 93, in lookupAddress<br>
2013-01-17 14:38:23+0100 [-]     return self._lookup(name, dns.IN, dns.A, timeout)<br>
2013-01-17 14:38:23+0100 [-]   File &quot;/usr/lib64/python2.7/site-packages/twisted/names/client.py&quot;, line 384, in _lookup<br>
2013-01-17 14:38:23+0100 [-]     d = self.queryUDP([dns.Query(name, type, cls)], timeout)<br>
2013-01-17 14:38:23+0100 [-]   File &quot;/usr/lib64/python2.7/site-packages/twisted/names/dns.py&quot;, line 484, in __init__<br>
2013-01-17 14:38:23+0100 [-]     <a href="http://self.name" target="_blank">self.name</a> = Name(name)<br>
2013-01-17 14:38:23+0100 [-]   File&quot;/usr/lib64/python2.7/site-packages/twisted/names/dns.py&quot;, line 357, in __init__<br>
2013-01-17 14:38:23+0100 [-]     raise TypeError(&quot;%r is not a byte string&quot; % (name,))<br>
2013-01-17 14:38:23+0100 [-] TypeError: u&#39;<a href="http://example.com" target="_blank">example.com</a>&#39; is not a byte string<br>
<br>
Taking a look at documentation I found this document<br>
<br>
<a href="http://twistedmatrix.com/documents/current/core/howto/python3.html" target="_blank">http://twistedmatrix.com/documents/current/core/howto/python3.html</a><br>
<br>
which states<br>
<br>
&quot;twisted.names.dns deals with strings with a wide range of meanings,<br>
often several for each DNS record type. Most of these strings have<br>
remained as byte strings, which will probably require application<br>
updates (for the reason given in the FilePath section above). Some<br>
strings have changed to text strings, though. Any string representing a<br>
human readable address (for example, Record_A&#39;s address parameter) is<br>
now a text string. Additionally, time-to-live (ttl) values given as<br>
strings must now be given as text strings.&quot;<br>
<br>
which seems to describe the problem I&#39;m experiencing.<br>
<br>
But let me say that I&#39;m currently using Python 2.7.3 and I was surprised in realizing<br>
that a simple update from a minor 12.x release was enough to disrupt my application.<br>
<br>
Don&#39;t you think that a kind of compatibility mechanism (maybe with a warning message)<br>
would have been a more gentle way of doing this transition especially for those who<br>
are still using Python 2?<br>
<br>
Thanks and regards,<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
<br>
Angelo Dell&#39;Aera &#39;buffer&#39;<br>
Antifork Research, Inc.         <a href="http://buffer.antifork.org" target="_blank">http://buffer.antifork.org</a><br>
Sysenter Honeynet Project       <a href="http://www.sysenter-honeynet.org" target="_blank">http://www.sysenter-honeynet.org</a><br>
<br>
_______________________________________________<br>
Twisted-Python mailing list<br>
<a href="mailto:Twisted-Python@twistedmatrix.com">Twisted-Python@twistedmatrix.com</a><br>
<a href="http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python" target="_blank">http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python</a><br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr">cheers<div>lvh</div></div>
</div>