vatlab / sos-notebook

Multi-language Jupyter Notebook
http://vatlab.github.io/SoS
BSD 3-Clause "New" or "Revised" License
176 stars 17 forks source link

Simple %run fails with error if directory with spaces is in the path #287

Closed N7DR closed 4 years ago

N7DR commented 4 years ago

If I create a trivial workflow with just one cell, containing (per the web example):

%run
print('hello world')

then if fails, when executed, with the error:

ERROR: Unrecognized command line option Book/sis-directory/.tmp_script_2edyhbdl.sos
Workflow exited with code 1

if the workflow has been created in a directory such that anywhere in the full path name is a directory whose name contains a space. For example, if I run the notebook from the directory: ~/level-1/ARRL Book/sos-directory/ then executing the cell will fail with the above error.

Moving exactly the same notebook to: ~/level-1/ARRL-Book/sos-directory/ [the space has been replaced with a hyphen] causes the cell to execute correctly.

BoPeng commented 4 years ago

Yes, the magic boils down to the execution of a workflow from command line which fails to consider space in the path.

BoPeng commented 4 years ago

Thanks for the bug report. I have fixed it and released sos-notebook 0.21.9.

BoPeng commented 4 years ago

The previous patch did not work... had to submit another patch and release sos-notebook 0.21.10 for this.