[IPython-User] IPython in windows

Carlos Córdoba ccordoba12@gmail....
Mon Oct 15 15:05:45 CDT 2012

Thomas, you can see from the first lines of reporter's error message:

[NotebookApp] Using existing profile dir:

that his trouble comes from the fact his home dir is non-ascii 
(something that unfortunately Windows allows). We had to suffer this 
situation in Spyder until we solved it six months ago.

Our solution was to add a couple of helper functions to deal with 
strings that come from the filesystem and use them to enconde/decode 
users home dir. You can find them here, in case you need them:



El 15/10/12 09:33, Thomas Kluyver escribió:
> 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
> _______________________________________________
> IPython-User mailing list
> IPython-User@scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-user

More information about the IPython-User mailing list