#15449: Logging in Sage based on older version of IPython and fails
----------------------+---------------------------------------
   Reporter:  itaibn  |            Owner:
       Type:  defect  |           Status:  new
   Priority:  major   |        Milestone:  sage-5.13
  Component:  misc    |         Keywords:  log logging ipython
  Merged in:          |          Authors:
  Reviewers:          |  Report Upstream:  N/A
Work issues:          |           Branch:
     Commit:          |     Dependencies:
   Stopgaps:          |
----------------------+---------------------------------------
 Logging in Sage doesn't work at all:

 {{{
 sage: log_text()
 ---------------------------------------------------------------------------
 AttributeError                            Traceback (most recent call
 last)
 <ipython-input-1-732188d3c286> in <module>()
 ----> 1 log_text()

 /home/itaibn-nobackup/sage/devel/local/lib/python2.7/site-
 packages/sage/misc/log.pyc in __init__(self, dir, debug, viewer)
      93         self._dir = dir
      94         self._filename = os.path.join(dir, self._filename())
 ---> 95         self._output = __IPYTHON__.output_hist
      96         self._input  = __IPYTHON__.input_hist_raw
      97         self._text = ''

 AttributeError: 'bool' object has no attribute 'output_hist'
 }}}

 This is because the module `misc.log` uses the variable `__IPYTHON__`,
 which meant something different in older versions of IPython.

--
Ticket URL: <http://trac.sagemath.org/ticket/15449>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to