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

Installation failes on x64 windows 10. There must be only one argument: DEST_DIR (you gave C:\Users\Gaurav Jain\.ebcli-virtual-env) Usage: virtualenv [OPTIONS] DEST_DIR #20

Closed
imgauravj opened this issue May 19, 2019 · 2 comments
Labels
bug Something isn't working

Comments

@imgauravj
Copy link

I have installed from the git. Now when I run .\aws-elastic-beanstalk-cli-setup\scripts\bundled_installer I get this error.--------------->


PS C:\WINDOWS\system32> cd E:\ebcli_demo
PS E:\ebcli_demo> .\aws-elastic-beanstalk-cli-setup\scripts\bundled_installer

==============================================
I. Installing Python
==============================================

**************************************************
1. Looking for existing Python 3.7.3 installation.
**************************************************
Python 3.7.3 is already installed.

************************
2. Installing virtualenv
************************
Collecting virtualenv
  Using cached https://files.pythonhosted.org/packages/ca/ee/8375c01412abe6ff462ec80970e6bb1c4308724d4366d7519627c98691ab/virtualenv-16.6.0-py2.py3-none-any.whl
Installing collected packages: virtualenv
Successfully installed virtualenv-16.6.0
You are using pip version 19.0.3, however version 19.1.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.

==============================================
II. Creating self-contained EBCLI installation
==============================================
Installing the EBCLI in C:\Users\Gaurav Jain\.ebcli-virtual-env

******************************************
1. Creating exclusive virtualenv for EBCLI
******************************************
There must be only one argument: DEST_DIR (you gave C:\Users\Gaurav Jain\.ebcli-virtual-env)
Usage: virtualenv [OPTIONS] DEST_DIR

Options:
  --version             show program's version number and exit
  -h, --help            show this help message and exit
  -v, --verbose         Increase verbosity.
  -q, --quiet           Decrease verbosity.
  -p PYTHON_EXE, --python=PYTHON_EXE
                        The Python interpreter to use, e.g.,
                        --python=python3.5 will use the python3.5 interpreter
                        to create the new environment.  The default is the
                        interpreter that virtualenv was installed with
                        (c:\program files\python37\python.exe)
  --clear               Clear out the non-root install and start from scratch.
  --no-site-packages    DEPRECATED. Retained only for backward compatibility.
                        Not having access to global site-packages is now the


@rahulrajaram
Copy link
Contributor

rahulrajaram commented May 19, 2019

Thanks for reporting your issue @imgauravj .

It is a problem in scripts\ebcli_installer.py. The installer is not handling the space in "C:\Users\Gaurav Jain\.ebcli-virtual-env" causing virtualenv to think two paths are being passed. I'm able to reproduce it.

I'm going to release a fix for it shortly.

In the meantime, the fix is to run:

python .\aws-elastic-beanstalk-cli-setup\scripts\ebcli_installer.py

You will be prompted to add eb to PATH. Ensure you don't skip it.

@rahulrajaram rahulrajaram added bug Something isn't working windows Issue related to the Windows OS and removed windows Issue related to the Windows OS labels May 19, 2019
rahulrajaram added a commit that referenced this issue May 23, 2019
When the value of the --location argument of ebcli_installer.py (or
the path of the HOME directory) contain spaces, the installer passes
multiple values in place of virtualenv's DEST_DIR positional argument.
virtualenv rejects the multi-value input and causes the creation of
the EB CLI's vrtualenv to fail.

This was originally reported in Issue #20 [1].

This commit fixes the problem by enclosing the value for DEST_DIR within
quotes before passing it to the virtualenv executable.

[1] #20
rahulrajaram added a commit that referenced this issue May 23, 2019
This release fixes:

1. Issue involving spaces within virtualenv DEST_DIR path ( Issue #20 )
2. Non-determinism involved in choosing Python executable to create
   virtualenv with when multiple Pythons are available on the computer.
3. zlib-related recommendation for OS X in the README ( Issues #22 / #23 )
4. the continuation of the ebcli_installer.py script beyond its failure
   to install the EB CLI.
@rahulrajaram
Copy link
Contributor

Closing this issue because it has been addressed in release v0.1.2. git pull master to get the latest changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants