[Twisted-Python] StdioOnnaStick instance has no attribute 'isatty'
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) ----------------------------------------------------------------------
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?
(...)
AttributeError: StdioOnnaStick instance has no attribute 'isatty'
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) | | ----------------------------------------------------------------------
On Thu, 2007-11-29 at 22:13 +0100, Marcin Kasperski wrote:
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?
(...)
AttributeError: StdioOnnaStick instance has no attribute 'isatty'
Could you file a bug about this? I suspect someone someday may have same issue, so we should fix underlying problem. Thanks!
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?
(...)
AttributeError: StdioOnnaStick instance has no attribute 'isatty'
Could you file a bug about this? I suspect someone someday may have same issue, so we should fix underlying problem.
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