-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
unicode errors when opening a new notebook #3039
Comments
test: In a non-ascii location, try: import os
from subprocess import Popen
Popen("python.exe", cwd=os.getcwdu()) |
|
smaller tests: cwdu = os.getcwdu()
# test 1
os.chdir(cwdu)
# test 2
cwdb = cwdu.encode(sys.getfilesystemencoding())
# test 3
os.chdir(cwdb)
# test 4
Popen("time", cwd=cwdb) |
Results of small tests:
|
Okay, so it looks like there is a Windows-specific bug in Python that the cwd kwarg to Popen cannot be unicode, so we should be doing a conditional encode to |
|
Great, that should be enough info, and #3046 ought to be a sufficient fix. |
cast kernel cwd to bytes on Python 2 on Windows Popen on Windows Python 2.x apparently cannot handle unicode cwd. use filesystemencoding if defined, fallback on ascii. closes #3039
Popen on Windows Python 2.x apparently cannot handle unicode cwd. use filesystemencoding if defined, fallback on ascii. closes ipython#3039
cast kernel cwd to bytes on Python 2 on Windows Popen on Windows Python 2.x apparently cannot handle unicode cwd. use filesystemencoding if defined, fallback on ascii. closes ipython#3039
On windows 7 ipython 731eac3 I get a unicode exception when opening a notebook from a path containing non-ascii characters. I do not get the error if only the notebook and not the path contains non-ascii characters.
Example:
The text was updated successfully, but these errors were encountered: