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

Unpacking to path containing whitespace does not work #311

Open
2 tasks done
chnce opened this issue Feb 20, 2024 · 0 comments
Open
2 tasks done

Unpacking to path containing whitespace does not work #311

chnce opened this issue Feb 20, 2024 · 0 comments
Labels
type::bug describes erroneous operation, use severity::* to classify the type

Comments

@chnce
Copy link

chnce commented Feb 20, 2024

Checklist

  • I added a descriptive title
  • I searched open reports and couldn't find a duplicate

What happened?

Issue observed on Windows with conda-pack 0.7.1

I extracted a packed environment to a folder located in "C:\Program Files". The same issue can be reproduced with any folder containing a whitespace.

Then I executed "conda-unpack" in the Scripts folder.

Afterwards most of the executables in "Scripts" do not run.

C:\Program Files\MORe\env\Scripts>pip
failed to create process.

Manually adding quotes around the path in the shebang of pip-script.py fixes the issue.
#!"C:\Program Files\MORe\env\python.exe"

Adding the following code below line 66 in the conda-unpack-script.py also creates a working environment.
new_prefix = '"' + new_prefix + '"'

Conda Info

No response

Conda Config

No response

Conda list

No response

Additional Context

No response

@chnce chnce added the type::bug describes erroneous operation, use severity::* to classify the type label Feb 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type::bug describes erroneous operation, use severity::* to classify the type
Projects
Status: 🆕 New
Development

No branches or pull requests

1 participant