Re: [Twisted-Python] qt5 and twisted, reactor already installed, python 2.x

2016-06-30 Thread meejah
Glyph Lefkowitz writes: > Yes. Unfortunately, lots of places do import the reactor directly > today, but we have long since decided that this is a bad way to do > things. This is why e.g. react > tml#react> passes the rea

Re: [Twisted-Python] qt5 and twisted, reactor already installed, python 2.x

2016-06-30 Thread Glyph Lefkowitz
> On Jun 30, 2016, at 03:49, steven meier wrote: > > >> You have to put the qt5reactor installation at the very top of the >> very first file that you run. What's happened here is that you >> imported some Twisted code that did 'from twisted.internet import >> reactor' at the top level, which

Re: [Twisted-Python] qt5 and twisted, reactor already installed, python 2.x

2016-06-30 Thread steven meier
> You have to put the qt5reactor installation at the very top of the > very first file that you run. What's happened here is that you > imported some Twisted code that did 'from twisted.internet import > reactor' at the top level, which unfortunately far too many modules > do, before you installe

Re: [Twisted-Python] qt5 and twisted, reactor already installed, python 2.x

2016-06-30 Thread steven meier
On Wed, 2016-06-29 at 16:01 -0700, Glyph wrote: > > > On Jun 29, 2016, at 15:39, steven meier > > wrote: > > > > > > here is my code: > > when importing get_main_page i get the error above... > > > > import sys > > from PyQt5 import QtWidgets > > from untitled import Ui_MainWindow > > #from we

Re: [Twisted-Python] qt5 and twisted, reactor already installed, python 2.x

2016-06-29 Thread Glyph
> On Jun 29, 2016, at 15:39, steven meier wrote: > > > here is my code: > when importing get_main_page i get the error above... > > import sys > from PyQt5 import QtWidgets > from untitled import Ui_MainWindow > #from webchat import get_main_page You have to put the qt5reactor installation at