-
-
Notifications
You must be signed in to change notification settings - Fork 103
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
Install Fails when Directory name has a space in it #3364
Comments
Thank you for reporting this issue @digitaluniverse ! I am linking some related issues below to help the team get more context about how we have been treating this problem up to now: |
Thank you for opening this issue! I can reproduce this issue. Below, I've added the full log for Install log
The culprit is this line: Which results in: > bash /tmp/tmp.B02ywAbuYm/miniconda.sh -p '/home/joshua/Desktop/Test Directory/spinalcordtoolbox/python' -b -f
ERROR: did not recognize option 'Directory/spinalcordtoolbox/python', please try -h The environment variable appears to be properly enclosed in double-quotes, but because the value is being used as an argument, I believe we need to add a second set of quotes. > echo "$TEST_DIRECTORY"
/home/joshua/Desktop/Test Directory
> echo ""$TEST_DIRECTORY"" # Note: Nesting double-quotes doesn't work
/home/joshua/Desktop/Test Directory
> echo '"$TEST_DIRECTORY"' # Note: Nesting ' and " this way doesn't substitute the env variable
"$TEST_DIRECTORY"
> echo "'$TEST_DIRECTORY'"
'/home/joshua/Desktop/Test Directory' However, when I try this, I get the following new error: > bash Miniconda3-latest-Linux-x86_64.sh -p "'$TEST_DIRECTORY'" -b -f
ERROR: Cannot install into directories with spaces So, even if we fix the quotes, we won't be able to get around this on Anaconda's end. From the
There is an open issue on Anaconda's end for this here: ContinuumIO/anaconda-issues#716 |
thank you for doing all the digging @joshuacwnewton 🙏 |
I like the idea proposed in #2785. Checking I can open up a PR for this to close both issues. |
Description
Install Fails when Directory name has a space in it
Steps to Reproduce
Created a APFS Volume called 'Spine Data'
cd /Volumes/Spine\ Data/
Cloned the Repo to the main directory.
git clone https://github.com/neuropoly/spinalcordtoolbox
cd into spinalcordtoolbox folder
cd spinalcordtoolbox
Run Install
./install_sct
Install to current directory
Y
I just renamed the Volume to 'Spine' to get it working but adding handling for directory names with spaces might be a good idea
The text was updated successfully, but these errors were encountered: