Skip to content

Error Launching Jupyter Notebook - WinPython 3.5.1.3 #314

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

Closed
jackjameshoward opened this issue Apr 21, 2016 · 6 comments · Fixed by #316
Closed

Error Launching Jupyter Notebook - WinPython 3.5.1.3 #314

jackjameshoward opened this issue Apr 21, 2016 · 6 comments · Fixed by #316

Comments

@jackjameshoward
Copy link

I installed the latest winpython version 3.5.1.3 and launched notebook using the executable and I get this error.

'K:\Program' is not recognized as an internal or external command,
operable program or batch file.
The syntax of the command is incorrect.
K:\Program Files\Python 3.5\scripts>

Any ideas?

@stonebig
Copy link
Contributor

stonebig commented Apr 21, 2016

It obviously doesn't like the "spaces" in your directory path.

Remove the spaces, or propose a pull request that solves this "auto-inflicted" problem.

@jackjameshoward
Copy link
Author

Its just strange that I haven't had this problem with previous distribution of WInpython in the same directory.
What is it that causes this problem?

@stonebig
Copy link
Contributor

until this release, the code behind the icons was coded in NSIS script, a technical debt and code you can't tweak on your installation.
Now the icon just call a .bat script, here "scripts\ipython_notebook.bat".

Fact is I don't understand why I can't make it work but, the simple "scripts\cmd.bat" resists working with a space in the path, since you make the notice.

==> help me fix "scripts\cmd.bat" and it should work again

@stonebig
Copy link
Contributor

stonebig commented Apr 22, 2016

ok. try this:
change in scripts\cmd.bat:

call %~dp0env_for_icons.bat

per

call "%~dp0env_for_icons.bat"

and in scripts\env_for_icons.bat:

call %~dp0env.bat

per

call "%~dp0env.bat"

@stonebig stonebig added this to the 2016-03 Matplotlib 2.0 / PyQt5.6 / mingwpy update ... milestone Apr 22, 2016
@stonebig stonebig reopened this Apr 22, 2016
@stonebig
Copy link
Contributor

you may confirm it works with this simple fixes

@jackjameshoward
Copy link
Author

@stonebig Thank you very much.
That works

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

Successfully merging a pull request may close this issue.

2 participants