More good news. 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:
FAILED (skips=2025, expectedFailures=11, errors=1, successes=6578) The default twisted reactor goes through the suite in 61 seconds, qt5reactor in 66 seconds. Pretty good. You can find the qt5 reactor here: https://dl.dropbox.com/s/r285g4bo8jb4of9/index.html 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. 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. Hope it helps someone! Best, Burak On Aug 9, 2013, at 7:55 PM, Burak Nehbit <bu...@nehbit.net> wrote: > 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: > > Traceback (most recent call last): > File "sampleguiclient_twisted.py", line 132, in <module> > from twisted.internet import reactor > AttributeError: 'function' object has no attribute '__pyqtSignature__' > > 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: > > https://dl.dropbox.com/s/4asklib8yuvm5ru/index.html > > This bunch of python files assume you have Qt5 installed, but otherwise free > of dependencies. > > Any guesses on what's going on? > > Best, > Burak > > > > > On Jul 23, 2013, at 12:43 AM, Glyph <gl...@twistedmatrix.com> wrote: > >> >> On Jul 20, 2013, at 5:04 AM, Burak Nehbit <bu...@nehbit.net> wrote: >> >>> Is there such a thing for Qt5? Is it planned? >> >> Well, it sounds like you're planning it, so, I guess so :). >> >> 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. >> >> 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. >> >> -glyph >> >> _______________________________________________ >> Twisted-Python mailing list >> Twisted-Python@twistedmatrix.com >> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python >
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python