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

[BUG] --install-options are suppressed by pip 20.2.3 #2640

Open
alikhtag opened this issue Oct 14, 2020 · 3 comments
Open

[BUG] --install-options are suppressed by pip 20.2.3 #2640

alikhtag opened this issue Oct 14, 2020 · 3 comments
Assignees

Comments

@alikhtag
Copy link
Contributor

May not be a bug but I would like to just to inform that documentation may not be up to date. And maybe you may want to do some changes (in code or docs) so that latest version of pip 20.2.3 can aligned.

Describe the bug
When using latest version of pip 20.2.3. --install-options containing paths are no longer supported.
See also pypa/pip#7309

To Reproduce
When running as decribed in DOCS one will see an error:

pip install --upgrade pip==20.2.3 
pip install graphite-web==1.1.7 --install-option="--prefix=/srv/graphite" --install-option="--install-lib=/srv/graphite/webapp"
ERROR: Location-changing options found in --install-option: ['--install-lib', '--prefix'] from command line. This is unsupported, use pip-level options like --user, --prefix, --root, and --target instead.

Environment (please complete the following information):

  • OS flavor: Ubuntu 18.04 using Docker
  • Graphite-web version: 1.1.7
  • Django/Python version: 3.7
  • Setup type: pip 20.2.3
@alikhtag alikhtag added the bug label Oct 14, 2020
@earthgecko
Copy link
Contributor

@alikhtag there is a workaround described in #2566

For now a simple workaround is to use virtualenv 16.7.10 if you can.

If you know what you are doing and you have virtualenv 20.0x installed with the system pip, then you can install 16.7.10

pip uninstall virtualenv
pip install virtualenv==16.7.10

# or
pip3 uninstall virtualenv
pip3 install virtualenv==16.7.10

Install the graphite virtualenv with 16.7.10 and install graphite and your installation will now work as per the docs.

You can then update virtualenv again, however please assess how appropriate this method is for you first.

@deniszh
Copy link
Member

deniszh commented Oct 16, 2020

virtualenv downgrade will work, but we need to adopt new way, I think.

@deniszh deniszh added the pinned label Oct 16, 2020
@alikhtag
Copy link
Contributor Author

alikhtag commented Oct 16, 2020

I was using docker image, where I can just do pip install pip==20.1, I think this may work around will work for most python virtual environments as well even when downgrading.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants