pombreda / django-tasks

Automatically exported from code.google.com/p/django-tasks
0 stars 0 forks source link

Tracebacks contain color encoding if ipython is installed #2

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I am using an early june 2010 svn export of django-tasks (probably r12) and any 
traceback in the log output contains ANSI color escape codes if ipython is 
installed.

Uninstalling ipython resolves the issue, but its probably possible for those 
color tracebacks to be disabled by the code running the tasks.

django-tasks has been working well for me so far.  Great job guys.

Original issue reported on code.google.com by godber on 11 Jul 2010 at 6:03

GoogleCodeExporter commented 9 years ago
Weird.... The log output should be pretty neutral there...
Would you have a little more details? 

Original comment by pombreda...@gmail.com on 8 Aug 2010 at 3:30

GoogleCodeExporter commented 9 years ago
This issue still exists in the newer release I am using (either r14 or r15).  I 
believe the steps to reproduce it are to have iPython installed and then 
generate a traceback within your task.  You will see the ASCII color sequences 
in the log.  If you remove ipython from the running environment, then the ASCII 
color sequences are gone.

I will try to extract this from my project and share it with you.

I believe this documentation might be useful in disabling color tracebacks in 
ipython, but its still not clear to me how to proceed.  I haven't really dug 
into it yet.
http://ipython.scipy.org/doc/nightly/html/api/generated/IPython.core.ultratb.htm
l

Original comment by godber on 8 Aug 2010 at 10:43