Skip to content

Unicode error when starting ipython in a folder with non-ascii path #200

Description

@jstenar

I get a unicode error when starting ipython from a path containing non-ascii characters, see below.

/Jörgen

C:\projekt\Papers\Föredrag\Mätkurs doktorander 2010\grafer\Adapter>ipython
[IPythonApp] Error loading config file: ipython_config.py
Traceback (most recent call last):
File "c:\python26\external\ipython\IPython\core\application.py", line 365, in
load_file_config
self.file_config = loader.load_config()
File "c:\python26\external\ipython\IPython\config\loader.py", line 253, in loa
d_config
self._find_file()
File "c:\python26\external\ipython\IPython\config\loader.py", line 260, in _fi
nd_file
self.full_filename = filefind(self.filename, self.path)
File "c:\python26\external\ipython\IPython\utils\path.py", line 131, in filefi
nd
testname = expand_path(os.path.join(path, filename))
File "C:\Python26\lib\ntpath.py", line 108, in join
path += "" + b
UnicodeDecodeError: 'ascii' codec can't decode byte 0xf6 in position 19: ordinal
not in range(128)
Python 2.6.6 (r266:84297, Aug 24 2010, 18:46:32) [MSC v.1500 32 bit (Intel)]
Type "copyright", "credits" or "license" for more information.

IPython 0.11.dev -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object', use 'object??' for extra details.

In [1]:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions