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

Traceback on .ipynb with local symbols #52

Open
BeforeFlight opened this issue Mar 14, 2018 · 2 comments
Open

Traceback on .ipynb with local symbols #52

BeforeFlight opened this issue Mar 14, 2018 · 2 comments

Comments

@BeforeFlight
Copy link

When running nbopen in cmd with russian symbols in name get traceback:
Traceback (most recent call last): File "/usr/local/bin/nbopen", line 11, in <module> sys.exit(main()) File "/usr/local/lib/python2.7/dist-packages/nbopen/nbopen.py", line 52, in main nbopen(args.filename) File "/usr/local/lib/python2.7/dist-packages/nbopen/nbopen.py", line 24, in nbopen server_inf = find_best_server(filename) File "/usr/local/lib/python2.7/dist-packages/nbopen/nbopen.py", line 14, in find_best_server if filename.startswith(si['notebook_dir'])] UnicodeDecodeError: 'ascii' codec can't decode byte 0xd1 in position 33: ordinal not in range(128)

Is it problem with my python 2.7 packages or else?

If no russian symbols - notebook starts as expected.

@takluyver
Copy link
Owner

Please use Python 3 if at all possible where non-ascii filenames are involved. Life's too short to debug Python2+Unicode problems. ;-)

@BeforeFlight
Copy link
Author

Ok, i get it. In fact i share your opinion. As for me - python 2 is just transient, will be soon at 3.
Thanks.

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