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

Example from docs for "Installing from VCS" does not work #1509

Open
alvassin opened this issue Feb 25, 2024 · 3 comments
Open

Example from docs for "Installing from VCS" does not work #1509

alvassin opened this issue Feb 25, 2024 · 3 comments
Labels
component: tutorials type: bug A confirmed bug or unintended behavior

Comments

@alvassin
Copy link

Installing from VCS example says, that python3 -m pip install -e SomeProject @ git+https://git.repo/some_pkg.git command should install package in editable mode from VCS.

Tested on Mac Ventura 13.1, on both python versions 3.12 and 3.11:

python3.12 -m venv env12
. env12/bin/activate

python3.12 -m pip install --upgrade pip 
> Requirement already satisfied: pip in ./env12/lib/python3.12/site-packages (24.0)

python3 -m pip install -e aiomisc @ git+https://github.com/aiokitchen/aiomisc.git
> ERROR: Invalid requirement: '@'

What i am doing wrong?

@chrysle
Copy link
Contributor

chrysle commented Feb 25, 2024

You'll need to quote the requirement.

@alvassin
Copy link
Author

alvassin commented Feb 25, 2024

Quoting did not help:

$ pip install -e 'aiomisc @ git+https://github.com/aiokitchen/aiomisc.git'
ERROR: aiomisc @ git+https://github.com/aiokitchen/aiomisc.git is not a valid editable requirement. It should either be a path to a local project or a VCS URL (beginning with bzr+http, bzr+https, bzr+ssh, bzr+sftp, bzr+ftp, bzr+lp, bzr+file, git+http, git+https, git+ssh, git+git, git+file, hg+file, hg+http, hg+https, hg+ssh, hg+static-http, svn+ssh, svn+http, svn+https, svn+svn, svn+file).

But this command worked:

pip install -e git+https://github.com/aiokitchen/aiomisc.git#egg=aiomisc

What do I miss?

@chrysle
Copy link
Contributor

chrysle commented Feb 25, 2024

Ah, it looks like PEP 508 URL-based lookup syntax is not supported for editable requirements right now (see pypa/pip#11951 (comment)). That section is outdated, then.

@chrysle chrysle added type: bug A confirmed bug or unintended behavior component: tutorials labels Feb 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: tutorials type: bug A confirmed bug or unintended behavior
Projects
None yet
Development

No branches or pull requests

2 participants