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

Jupyter fails to start on Windows when runtime dir has an apostrophe or space in it #7466

Open
Nanaaaa1 opened this issue Sep 24, 2024 · 6 comments
Labels
bug os:windows Issues that happen specifically on Microsoft Windows

Comments

@Nanaaaa1
Copy link

Your file couldn’t be accessed
It may have been moved, edited, or deleted.
ERR_FILE_NOT_FOUND

this is my path = file:///C:/Users/Nana's%20laptop/AppData/Roaming/jupyter/runtime/jpserver-16052-open.html

@Nanaaaa1 Nanaaaa1 added bug status:Needs Triage Applied to issues that need triage labels Sep 24, 2024
@Shahid6174
Copy link

What I think is the apostrophe would be causing a problem. Try renaming it. If it still doesn't work then check permissions.

@RRosio
Copy link
Collaborator

RRosio commented Oct 1, 2024

Thanks for opening this issue @Nanaaaa1, could you share if you have the same issue when running jupyter notebook --no-browser?

Alternatively, can you try changing your runtime directory using the instructions in the comment?

@JasonWeill
Copy link
Collaborator

I tried setting my runtime directory to ~/jason's-temp, and when I started Lab 4.3.0 beta on macOS, file:///Users/jweill/jason%27s-temp/jpserver-78401-open.html was opened successfully (note URL escaping). With another test directory, a space in the file path was correctly escaped to %20. In both cases, the JupyterLab and Jupyter Notebook applications opened successfully.

@JasonWeill
Copy link
Collaborator

This may be Windows-specific; need to try verifying on a Windows PC.

@JasonWeill
Copy link
Collaborator

With JupyterLab 4.2.5, after setting JUPYTER_RUNTIME_DIR to a directory with an apostrophe and a space in it, I see an error on startup:

OSError: [WinError 123] The filename, directory name, or volume label syntax is incorrect: '"C:\\Users\\jweill\\jl-playground\\Jason\'s test"'

@JasonWeill JasonWeill added os:windows Issues that happen specifically on Microsoft Windows and removed status:Needs Info status:Needs Triage Applied to issues that need triage labels Oct 8, 2024
@JasonWeill JasonWeill changed the title Jupyter fails to start Jupyter fails to start on Windows when runtime dir has an apostrophe or space in it Oct 8, 2024
@JasonWeill
Copy link
Collaborator

On Windows, I also see "WinError 123" when the directory has an apostrophe and no space, or when the directory has a space and no apostrophe.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug os:windows Issues that happen specifically on Microsoft Windows
Projects
None yet
Development

No branches or pull requests

4 participants