[IPython-dev] Ticket #228
Jörgen Stenarson
jorgen.stenarson at bostream.nu
Thu Feb 21 12:53:26 EST 2008
Ville M. Vainio skrev:
> On Wed, Feb 13, 2008 at 9:57 PM, Jörgen Stenarson
> <jorgen.stenarson at bostream.nu> wrote:
>
>> Looking at the crash_report it looks like pyreadline_codepage is None.
>> This may be the clue we need to decide that ipython was started through
>> ssh. However it may be too late since pyreadline has already been
>> imported and installed by the time we get this crash. Since by default
>> pyreadline_codepage comes from sys.stdout.encoding we would just have to
>> check that sys.stdout.encoding is not None before importing pyreadline.
>
> Why not just set encoding to ascii if it appears to be None? Either
> way, we must prevent this crash.
>
There is a fix in trunk following this approach. However I'm not sure it
fixes the whole problem. Since I don't have access to a windows ssh
server with python and pyreadline installed I'm unable to test if it
works. Any report on if it works/fails is appreciated.
/Jörgen
More information about the IPython-dev
mailing list