Closed tnowotny closed 3 years ago
What platform's this on?
macbook pro
m900050:neurotechTutorial tn41$ genn-buildmodel.sh LIFRing
/Users/tn41/localdisk_projects/develop/genn/bin/genn-buildmodel.sh: line 52: pushd: /Users/tn41/Box: No such file or directory
genn-buildmodel.sh:52: error 50: command failure
where the working directory is
/Users/tn41/Box Sync/workshops/2021/06-Neurotech/demo/neurotechTutorial
the error occurs here https://github.com/genn-team/genn/blob/7cd8c549f45a6c6a3840e6aaa51c8ae6e849c20d/bin/genn-buildmodel.sh#L52 but to be honest I am not sure what this pushd / popd logic is trying to achieve to begin with? git blame says it was introduced by you, @jamesturner246, 5 years ago?
This seems to be the result of several different escaping issues:
genn-buildmodel.sh
, some quotes are required (namely for that pushd
)OUT_PATH
gets totally mangled. Escaping with \\
(which can be done in bash on Linux and Mac with something like ${OUT_PATH// /\\ }
) as suggested by https://www.cmcrossroads.com/article/gnu-make-meets-file-names-spaces-them) might helpHowever, my quick attempts at fixing 1 and 2 have not succeeded.
It appears that genn-buildmodel.sh fails when the model source is in a location with a path name that contains spaces.