[IPython-User] IPython in windows

Thomas Kluyver takowl@gmail....
Mon Oct 15 09:33:46 CDT 2012


On 14 October 2012 11:03, smk <mpapoutsogloy@gmail.com> wrote:
>   File "c:\python27\lib\site-packages\IPython\zmq\kernelmanager.py", line
> 806, i
> n start_kernel
>     self.kernel = launch_kernel(fname=self.connection_file, **kw)
>   File "c:\python27\lib\site-packages\IPython\zmq\ipkernel.py", line 869, in
> lau
> nch_kernel
>     *args, **kwargs)
>   File "c:\python27\lib\site-packages\IPython\zmq\entry_point.py", line 189,
> in
> base_launch_kernel
>     stdin=_stdin, stdout=_stdout, stderr=_stderr)
>   File "C:\Python27\lib\subprocess.py", line 679, in __init__
>     errread, errwrite)
>   File "C:\Python27\lib\subprocess.py", line 893, in _execute_child
>     startupinfo)
> UnicodeEncodeError: 'ascii' codec can't encode characters in position 86-90:
> ord

Ah, it seems to be having trouble because the Ipython directory, and
hence the connection file, has non-ascii characters in the path.
Please file an issue about that:
https://github.com/ipython/ipython/issues

In the meantime, if you set the environment variable IPYTHONDIR to a
location with only ascii characters, like C:\ipython, it should work.

Thomas


More information about the IPython-User mailing list