[Twisted-Python] StdioOnnaStick instance has no attribute 'isatty'
![](https://secure.gravatar.com/avatar/e134a7c1546bb254d8fee3eb90cfa235.jpg?s=120&d=mm&r=g)
I just tried to run some trial tests on ubuntu gutsy (twisted 2.5.0), just to get the error as in the title (full traceback below). Does anybody know what is wrong here? Traceback (most recent call last): File "/usr/bin/trial", line 24, in <module> run() File "/usr/lib/python2.5/site-packages/twisted/scripts/trial.py", line 345, in run test_result = trialRunner.run(suite) File "/usr/lib/python2.5/site-packages/twisted/trial/runner.py", line 772, in run result = self._makeResult() File "/usr/lib/python2.5/site-packages/twisted/trial/runner.py", line 712, in _makeResult return self.reporterFactory(self.stream, self.tbformat, self.rterrors) File "/usr/lib/python2.5/site-packages/twisted/trial/reporter.py", line 555, in __init__ if colorizer.supported(): File "/usr/lib/python2.5/site-packages/twisted/trial/reporter.py", line 446, in supported if not sys.stderr.isatty(): AttributeError: StdioOnnaStick instance has no attribute 'isatty' -- ---------------------------------------------------------------------- | Marcin Kasperski | For waterfall, milestones are commitments. | http://mekk.waw.pl | For iterative development, they are decision | | points. (Martin) ----------------------------------------------------------------------
![](https://secure.gravatar.com/avatar/e134a7c1546bb254d8fee3eb90cfa235.jpg?s=120&d=mm&r=g)
For the sake of completeness: I solved the problem. It was caused by the following line, I added to my test setup for some reason loooong time ago (well, IIRC I just wanted errors in a file for easier reading): log.startLogging(logfile.LogFile('twisted.log', logdir, 16 * 1024 * 1024)) After I removed this line, trial works again. -- ---------------------------------------------------------------------- | Marcin Kasperski | You have the right to produce quality work | http://mekk.waw.pl | at all the times. (Beck) | | ----------------------------------------------------------------------
![](https://secure.gravatar.com/avatar/e134a7c1546bb254d8fee3eb90cfa235.jpg?s=120&d=mm&r=g)
Bah, I do not understand what is wrong here and where is the bug... -- ---------------------------------------------------------------------- | Marcin Kasperski | For waterfall, milestones are commitments. | http://mekk.waw.pl | For iterative development, they are decision | | points. (Martin) ----------------------------------------------------------------------
![](https://secure.gravatar.com/avatar/e134a7c1546bb254d8fee3eb90cfa235.jpg?s=120&d=mm&r=g)
For the sake of completeness: I solved the problem. It was caused by the following line, I added to my test setup for some reason loooong time ago (well, IIRC I just wanted errors in a file for easier reading): log.startLogging(logfile.LogFile('twisted.log', logdir, 16 * 1024 * 1024)) After I removed this line, trial works again. -- ---------------------------------------------------------------------- | Marcin Kasperski | You have the right to produce quality work | http://mekk.waw.pl | at all the times. (Beck) | | ----------------------------------------------------------------------
![](https://secure.gravatar.com/avatar/e134a7c1546bb254d8fee3eb90cfa235.jpg?s=120&d=mm&r=g)
Bah, I do not understand what is wrong here and where is the bug... -- ---------------------------------------------------------------------- | Marcin Kasperski | For waterfall, milestones are commitments. | http://mekk.waw.pl | For iterative development, they are decision | | points. (Martin) ----------------------------------------------------------------------
participants (2)
-
Itamar Shtull-Trauring
-
Marcin Kasperski