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

Errors with post-link script if a space is in the conda path #8

Closed
ryanvolz opened this issue Jun 1, 2020 · 3 comments · Fixed by #9
Closed

Errors with post-link script if a space is in the conda path #8

ryanvolz opened this issue Jun 1, 2020 · 3 comments · Fixed by #9

Comments

@ryanvolz
Copy link
Contributor

ryanvolz commented Jun 1, 2020

Issue:
If a user has a space in their conda path, the post-link script will fail with ".... is not recognized as an internal or external command" because it tries to run the partial path before the space as a program.

The fix should be to quote the command path in the post-link script.


Environment (conda list):

$ conda list


Details about conda and system ( conda info ):
$ conda info

@stuarteberg
Copy link

I thought miniconda/anaconda generally refused to install into paths that contain spaces. Am I misremembering?

@ryanvolz
Copy link
Contributor Author

ryanvolz commented Jun 1, 2020

I did think that was true, but I got a report from a user on Windows 10:

Executing transaction: \ b"'C:\\Users\\FIRST' is not recognized as an internal or external command,\noperable program or batch file.\n"
done
ERROR conda.core.link:_execute(700): An error occurred while installing package 'conda-forge::gdk-pixbuf-2.38.2-h67ea0bb_3'.
Rolling back transaction: doneLinkError: post-link script failed for package conda-forge::gdk-pixbuf-2.38.2-h67ea0bb_3
location of failed script: C:\Users\FIRST LAST\.conda\envs\openradar2020\Scripts\.gdk-pixbuf-post-link.bat
==> script messages <==
'C:\Users\FIRST' is not recognized as an internal or external command,
operable program or batch file.

So it looks like it allowed him to create the environment in a user directory with a space in the name, and that caused an issue (with the gdk-pixbuf post-link script, but the problem is the same here). I'm not sure if the pull request I did fixes this, but I think it should.

@stuarteberg
Copy link

Makes sense. Looks like other post-link.bat scripts attempt to support spaces in the same manner. Here's a long thread of complaints and discussion:

ContinuumIO/anaconda-issues#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

Successfully merging a pull request may close this issue.

2 participants