[IPython-user] [IPython-dev] Win32 - call for pyreadline testing
Mon Apr 16 09:33:44 CDT 2007
I don't know if anyone has reported it but I am finding that
pyreadline 1.4 doesn't seem to play nice with doctest.
I was getting this error:
Traceback (most recent call last):
File "c:\work\src\runTests.py", line 12, in ?
failures, tests = _test(sys.argv)
File "c:\work\src\runTests.py", line 9, in _test
line 1853, in testmod
line 1377, in run
self.debugger = _OutputRedirectingPdb(save_stdout)
line 353, in __init__
File "C:\local\Python24\lib\pdb.py", line 64, in __init__
File "C:\local\Python24\Lib\site-packages\readline.py", line 5, in ?
from pyreadline import *
line 10, in ?
from rlmain import *
File "C:\local\Python24\Lib\site-packages\pyreadline\rlmain.py", line 13, in ?
line 14, in ?
from console import *
line 118, in ?
AttributeError: _SpoofOut instance has no attribute 'encoding'
I deleted the pyreadline 1.4 installation and it went away. I
installed 1.3 again and still have no problem. I was kind of suprised
that it would affect doctest but it looks like pyreadline replaces the
normal readline that pdb uses and doctest in turn imports pdb to
redirect its output to the screen properly. Has anyone else seen
anything like this?
On 4/11/07, aldarion <firstname.lastname@example.org> wrote:
> I have tested it already:)
> after fix the space problem(pyreadline1.4.2), ipython works and don't return
> exceptions.AttributeError when run foo.py
> however, there is still the exceptions.IndexError when
> C:\>C:\Python25\python.exe C:\Python25\scripts\ipython "\Documents and
> On 4/12/07, Fernando Perez <email@example.com> wrote:
> > On 4/11/07, aldarion <firstname.lastname@example.org > wrote:
> > > It looks the definition line of two function(clear_history of rlmain and
> > > history)
> > > miss a space(it should be four and now is three, and the function body
> > > one space too)
> > > and the function (clear_history) maybe responsible for the '
> > > exceptions.AttributeError',
> > Ugh, sorry. I copy/pasted from the mail client and didn't notice it
> > went in missing a space.
> > 1.4.2 is up:
> > http://ipython.scipy.org/dist/pyreadline-1.4.2.win32.exe
> > > there is still the IndexError error as Chris Calloway'said, no clue here
> > Let me know if those help in any way, and see if you can send me a
> > fuller traceback on that problem. I'm 100% blind here since I can't
> > run any of this code at all...
> > Thanks again for the help and patience!
> > Cheers,
> > f
> IPython-user mailing list
More information about the IPython-user