<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">More good news.<div><br></div><div>I have confirmed that the reason of this failure was my using of an unstable version of PyQt5. With the stable version of PyQt5, Qt 5.0.2 and the current Twisted stable, trial suite passes— or rather it fails with the same errors the default reactor fails:</div><div><br></div><div>FAILED (skips=2025, expectedFailures=11, errors=1, successes=6578)</div><div><br></div><div>The default twisted reactor goes through the suite in 61 seconds, qt5reactor in 66 seconds. Pretty good.</div><div><br></div><div>You can find the qt5 reactor here: <a href="https://dl.dropbox.com/s/r285g4bo8jb4of9/index.html">https://dl.dropbox.com/s/r285g4bo8jb4of9/index.html</a></div><div><br></div><div>If I have more time, I'll package this reactor and put it on GitHub, but I am not sure if I have the (moral) right to—the only thing I did was to change four or five lines, after all. </div><div><br></div><div>Mind that PySide does not yet support Qt5, so I have removed PySide imports. It seems that they have no plans to support Qt5 for at least through the next year.</div><div><br></div><div>Hope it helps someone!</div><div><br></div><div>Best,</div><div>Burak</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br><div><div>On Aug 9, 2013, at 7:55 PM, Burak Nehbit <<a href="mailto:burak@nehbit.net">burak@nehbit.net</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><meta http-equiv="Content-Type" content="text/html charset=windows-1252"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">I have been experimenting with porting qt4reactor to qt5, and I have some progress to share. It seems that the PyQt API that was being used in qt4reactor was deprecated, so I have converted the calls to the new version API and it seems it mostly works.. Except one thing: <div><br></div><div><div><font face="Monaco">Traceback (most recent call last):</font></div><div><font face="Monaco">  File "sampleguiclient_twisted.py", line 132, in <module></font></div><div><font face="Monaco">    from twisted.internet import reactor</font></div><div><font face="Monaco">AttributeError: 'function' object has no attribute '__pyqtSignature__'</font></div><div><br></div><div>I could not get past this error. I have prepared an example with a test case where you can see the error for yourself, and it can be reached here: </div><div><br></div><div><a href="https://dl.dropbox.com/s/4asklib8yuvm5ru/index.html">https://dl.dropbox.com/s/4asklib8yuvm5ru/index.html</a> </div><div><br></div><div>This bunch of python files assume you have Qt5 installed, but otherwise free of dependencies. </div><div><br></div><div>Any guesses on what's going on?</div><div><br></div><div>Best,</div><div>Burak</div><div><br></div><div><br></div><div><br></div><div><br><div><div><div>On Jul 23, 2013, at 12:43 AM, Glyph <<a href="mailto:glyph@twistedmatrix.com">glyph@twistedmatrix.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><meta http-equiv="Content-Type" content="text/html charset=windows-1252"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><br><div><div>On Jul 20, 2013, at 5:04 AM, Burak Nehbit <<a href="mailto:burak@nehbit.net">burak@nehbit.net</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span style="font-family: Menlo-Regular; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;">Is there such a thing for Qt5? Is it planned?</span></blockquote></div><br><div>Well, it sounds like <i>you're</i> planning it, so, I guess so :).</div><div><br></div><div>I doubt that anyone on this list has plans to do it (or there would already be work qt5 work done in the qt reactor repository) but there are plenty of people (myself included) who would be very happy to help you learn enough about Twisted to do it yourself.  And, honestly, if you're motivated to do it it's probably *not* a huge amount of effort to update the implementation.  Feel free to ask any questions you have on this list.</div><div><br></div><div>In the meanwhile though, maybe you could report a bug to Nokia or Trolltech or whoever runs Qt development right now that they should stop gratuitously breaking interfaces between versions?  We've had (at least one) major rewrite of the Qt reactor for every version of Qt, which seem to come out relatively frequently.  Nothing about the nature of event loops or sockets has changed sufficiently in the meanwhile to justify the constant re-work that Qt seems to require from us.</div><div><br></div><div>-glyph</div><div><br></div></div>_______________________________________________<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">http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python</a><br></blockquote></div><br></div></div></div></div></blockquote></div><br></div></body></html>