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

Anaconda install process not robust to spaces in path #144

Closed
asmeurer opened this issue Jul 15, 2014 · 4 comments
Closed

Anaconda install process not robust to spaces in path #144

asmeurer opened this issue Jul 15, 2014 · 4 comments

Comments

@asmeurer
Copy link
Contributor

Issue by mattwescott from Friday Jul 11, 2014 at 15:25 GMT
Originally opened as conda/conda#809


The install scripts were in "/home/matt/usr/Anaconda Jul_2014"

It appears to be looking in Anaconda folder, and then attempts to open itself in the Jul_2014 folder.

Error:

PREFIX=/home/matt/usr/anaconda
tail: cannot open /home/matt/usr/Anaconda' for reading: No such file or directory tail: cannot openJul_2014/Anaconda-2.0.1-Linux-x86_64.sh' for reading: No such file or directory
WARNING: md5sum mismatch of tar archive
expected: 0d987605e23d4c7140b31e490852dbf1
got: d41d8cd98f00b204e9800998ecf8427e -
tail: cannot open /home/matt/usr/Anaconda' for reading: No such file or directory tail: cannot openJul_2014/Anaconda-2.0.1-Linux-x86_64.sh' for reading: No such file or directory
tar: This does not look like a tar archive
tar: Exiting with failure status due to previous errors
ERROR: could not extract tar starting at line 452

@asmeurer
Copy link
Contributor Author

Comment by mrocklin from Sunday Jul 13, 2014 at 15:46 GMT


BTW, I ran into this with @mattwestcott , Anaconda installation fails when people rename the installation file to something like "Anaconda July 2014.sh".

If you think that this is a silly thing to do then you should probably tell that to Corinna, who gave me such a file :)

@asmeurer
Copy link
Contributor Author

Comment by asmeurer from Tuesday Jul 15, 2014 at 15:59 GMT


We probably could fix the file. We just need to be more careful about quoting in the shell script. In general, though, Anaconda doesn't support spaces in paths on Unix (for instance, it's impossible to have a path with a space in it in a shebang line).

@bjamesvERT
Copy link

Was this issue ever addressed? I just encountered a similar issue with Miniconda3-3.18.9-Linux-x86_64.sh when installing from a directory called "/var/lib/jenkins/workspace/warehouse-server dependency check" (i.e.: path includes 2x spaces)

../build/Miniconda3-3.18.9-Linux-x86_64.sh -b -p ../build/miniconda3
PREFIX=/var/lib/jenkins/workspace/warehouse-server dependency check/warehouse/build/miniconda3
installing: _cache-0.0-py35_x0 ...
tar (child): /var/lib/jenkins/workspace/warehouse-server: Cannot read: Is a directory
tar (child): At beginning of tape, quitting now
tar (child): Error is not recoverable: exiting now

bzip2: Compressed file ends unexpectedly;
    perhaps it is corrupted?  *Possible* reason follows.
bzip2: Invalid argument
    Input file = (stdin), output file = (stdout)

It is possible that the compressed file(s) have become corrupted.
You can use the -tvv option to test integrity of such files.

You can use the `bzip2recover' program to attempt to recover
data from undamaged sections of corrupted files.

tar: Child returned status 2
tar: Error is not recoverable: exiting now

It seems like tests may never have been put in place when #575 changes were made

@goanpeca
Copy link

Closing in favor of #716

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

No branches or pull requests

3 participants