Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UnicodeDecodeError when starting Ipython notebook on a directory containing a file with a non-ascii character #4454

Closed
germank opened this issue Oct 29, 2013 · 1 comment
Milestone

Comments

@germank
Copy link

germank commented Oct 29, 2013

Here's how to replicate this bug. First, I'm using the latest release (it happened with 1.0.0 as well):
$ ipython --version
1.1.0

Now, I create a file containing some weird character on it, for example the spanish letter "ñ":
$ cat > ñ.txt
^D

Finally, I try to start the Ipython notebook in that directory, and that's what happens:
$ ipython notebook
2013-10-29 10:29:02.380 [NotebookApp] Using existing profile dir: u'/home/german.kruszewski/.config/ipython/profile_default'
Traceback (most recent call last):
File "/home/german.kruszewski/.local/bin/ipython", line 9, in
load_entry_point('ipython==1.1.0', 'console_scripts', 'ipython')()
File "/home/german.kruszewski/.local/lib/python2.7/site-packages/IPython/init.py", line 118, in start_ipython
return launch_new_instance(argv=argv, *_kwargs)
File "/home/german.kruszewski/.local/lib/python2.7/site-packages/IPython/config/application.py", line 544, in launch_instance
app.initialize(argv)
File "", line 2, in initialize
File "/home/german.kruszewski/.local/lib/python2.7/site-packages/IPython/config/application.py", line 89, in catch_config_error
return method(app, *args, *_kwargs)
File "/home/german.kruszewski/.local/lib/python2.7/site-packages/IPython/terminal/ipapp.py", line 312, in initialize
super(TerminalIPythonApp, self).initialize(argv)
File "", line 2, in initialize
File "/home/german.kruszewski/.local/lib/python2.7/site-packages/IPython/config/application.py", line 89, in catch_config_error
return method(app, _args, *_kwargs)
File "/home/german.kruszewski/.local/lib/python2.7/site-packages/IPython/core/application.py", line 362, in initialize
self.parse_command_line(argv)
File "/home/german.kruszewski/.local/lib/python2.7/site-packages/IPython/terminal/ipapp.py", line 307, in parse_command_line
return super(TerminalIPythonApp, self).parse_command_line(argv)
File "", line 2, in parse_command_line
File "/home/german.kruszewski/.local/lib/python2.7/site-packages/IPython/config/application.py", line 89, in catch_config_error
return method(app, _args, *_kwargs)
File "/home/german.kruszewski/.local/lib/python2.7/site-packages/IPython/config/application.py", line 474, in parse_command_line
return self.initialize_subcommand(subc, subargv)
File "", line 2, in initialize_subcommand
File "/home/german.kruszewski/.local/lib/python2.7/site-packages/IPython/config/application.py", line 89, in catch_config_error
return method(app, _args, *_kwargs)
File "/home/german.kruszewski/.local/lib/python2.7/site-packages/IPython/config/application.py", line 412, in initialize_subcommand
self.subapp.initialize(argv)
File "", line 2, in initialize
File "/home/german.kruszewski/.local/lib/python2.7/site-packages/IPython/config/application.py", line 89, in catch_config_error
return method(app, _args, *_kwargs)
File "/home/german.kruszewski/.local/lib/python2.7/site-packages/IPython/html/notebookapp.py", line 663, in initialize
self.init_configurables()
File "/home/german.kruszewski/.local/lib/python2.7/site-packages/IPython/html/notebookapp.py", line 507, in init_configurables
self.cluster_manager.update_profiles()
File "/home/german.kruszewski/.local/lib/python2.7/site-packages/IPython/html/services/clusters/clustermanager.py", line 78, in update_profiles
for profile in list_profiles_in(path):
File "/home/german.kruszewski/.local/lib/python2.7/site-packages/IPython/core/profileapp.py", line 102, in list_profiles_in
full_path = os.path.join(path, f)
File "/home/german.kruszewski/.local/lib/python2.7/posixpath.py", line 70, in join
path += '/' + b
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1: ordinal not in range(128)

If you suspect this is an IPython bug, please report it at:
https://github.com/ipython/ipython/issues
or send an email to the mailing list at ipython-dev@scipy.org

You can print a more detailed traceback right now with "%tb", or use "%debug"
to interactively debug it.

Extra-detailed tracebacks for bug-reporting purposes can be enabled via:
c.Application.verbose_crash=True

@minrk
Copy link
Member

minrk commented Oct 29, 2013

closed by #4264

@minrk minrk closed this as completed Oct 29, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants