You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Starting from a clean slate, with a dir containing only a single Pipfile with a single VCS dependency, running pipenv install --skip-lock fails with the error:
[pipenv.exceptions.InstallError]: ERROR: The URL 'git+https://github.com/myname/mypackage.git@#egg=mypackage' has an empty revision (after @) which is not supported. Include a revision after @ or remove @ from the URL.
ERROR: Couldn't install package: {}
This happens even though a proper revision is specified, as in:
Moreover, the exact same Pipfile works without issue when doing a normal pipenv install, without --skip-lock.
Reproduced on Ubuntu 22.04.4 LTS and Amazon Linux 2023, running Python 3.11 with pipenv version 2024.0.1, both with editable = true and editable = false.
This is relevant for deployment to AWS Elastic Beanstalk, because that uses --skip-lock, as explained here, unless we provide a Pipfile.lock or a requirements.txt, which is not an option.
Expected result
I expected the specified version of the package to be installed without issue.
Actual result
command line output (using `editable=true`)
~/Desktop/temp/pipfiletest $ pipenv install --skip-lock --verbose
The flag --skip-lock has been reintroduced (but is not recommended). Without the lock
resolver it is difficult to manage multiple package indexes, and hash checking is not
provided. However it can help manage installs with current deficiencies in locking across
platforms.
Using python: None
Path to python: None
Creating a virtualenv for this project...
Pipfile: /home/me/Desktop/temp/pipfiletest/Pipfile
Using default python from /home/me/.pyenv/versions/3.11.6/bin/python3.11 (3.11.6) to create virtualenv...
⠙ Creating virtual environment...created virtual environment CPython3.11.6.final.0-64 in 98ms
creator CPython3Posix(dest=/home/me/Desktop/temp/pipfiletest/.venv, clear=False, no_vcs_ignore=False, global=False)
seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/home/me/.local/share/virtualenv)
added seed packages: pip==24.1, setuptools==70.1.0, wheel==0.43.0
activators BashActivator,CShellActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator
✔ Successfully created virtual environment!
Virtualenv location: /home/me/Desktop/temp/pipfiletest/.venv
Pipfile.lock not found, creating...
Locking [packages] dependencies...
Building requirements...
Resolving dependencies...
INFO:pipenv.patched.pip._internal.operations.prepare:Collecting requests@
git+https://github.com/psf/[email protected] (from -r
/tmp/pipenv-mxkx7csl-requirements/pipenv-sa1fms03-constraints.txt (line 2))
INFO:pipenv.patched.pip._internal.vcs.git:Cloning https://github.com/psf/requests.git (to
revision v2.32.3) to /tmp/pip-temp-wco5fnm1/requests_bd858a3db95b46068091d420b431aa9a
INFO:pip.subprocessor:Running command git clone --filter=blob:none --quiet
https://github.com/psf/requests.git
/tmp/pip-temp-wco5fnm1/requests_bd858a3db95b46068091d420b431aa9a
INFO:pip.subprocessor:Running command git checkout -q
61e2240f283f15780ac2d0e2cfefb0fd6fdab627
INFO:pipenv.patched.pip._internal.vcs.git:Resolved https://github.com/psf/requests.git to
commit 61e2240f283f15780ac2d0e2cfefb0fd6fdab627
INFO:pipenv.patched.pip._internal.cli.spinners:Installing build dependencies: started
INFO:pipenv.patched.pip._internal.cli.spinners:Installing build dependencies: finished with
status 'done'
INFO:pipenv.patched.pip._internal.cli.spinners:Getting requirements to build wheel: started
INFO:pipenv.patched.pip._internal.cli.spinners:Getting requirements to build wheel: finished
with status 'done'
INFO:pipenv.patched.pip._internal.cli.spinners:Preparing metadata (pyproject.toml): started
INFO:pipenv.patched.pip._internal.cli.spinners:Preparing metadata (pyproject.toml): finished
with status 'done'
INFO:pipenv.patched.pip._internal.resolution.resolvelib.reporter:Reporter.starting()
INFO:pipenv.patched.pip._internal.resolution.resolvelib.reporter:Reporter.adding_requirement(
ExplicitRequirement(LinkCandidate('git+https://github.com/psf/[email protected]')), None)
INFO:pipenv.patched.pip._internal.resolution.resolvelib.reporter:Reporter.starting_round(0)
INFO:pipenv.patched.pip._internal.resolution.resolvelib.reporter:Reporter.adding_requirement(
SpecifierRequirement('charset-normalizer<4,>=2'),
LinkCandidate('git+https://github.com/psf/[email protected]'))
INFO:pipenv.patched.pip._internal.operations.prepare:Collecting charset-normalizer<4,>=2
(from requests@ git+https://github.com/psf/[email protected]>-r
/tmp/pipenv-mxkx7csl-requirements/pipenv-sa1fms03-constraints.txt (line 2))
INFO:pipenv.patched.pip._internal.network.download:Using cached
charset_normalizer-3.3.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata
(33 kB)
INFO:pipenv.patched.pip._internal.resolution.resolvelib.reporter:Reporter.adding_requirement(
SpecifierRequirement('idna<4,>=2.5'),
LinkCandidate('git+https://github.com/psf/[email protected]'))
INFO:pipenv.patched.pip._internal.operations.prepare:Collecting idna<4,>=2.5 (from requests@
git+https://github.com/psf/[email protected]>-r
/tmp/pipenv-mxkx7csl-requirements/pipenv-sa1fms03-constraints.txt (line 2))
INFO:pipenv.patched.pip._internal.network.download:Using cached
idna-3.7-py3-none-any.whl.metadata (9.9 kB)
INFO:pipenv.patched.pip._internal.resolution.resolvelib.reporter:Reporter.adding_requirement(
SpecifierRequirement('urllib3<3,>=1.21.1'),
LinkCandidate('git+https://github.com/psf/[email protected]'))
INFO:pipenv.patched.pip._internal.operations.prepare:Collecting urllib3<3,>=1.21.1 (from
requests@ git+https://github.com/psf/[email protected]>-r
/tmp/pipenv-mxkx7csl-requirements/pipenv-sa1fms03-constraints.txt (line 2))
INFO:pipenv.patched.pip._internal.network.download:Using cached
urllib3-2.2.2-py3-none-any.whl.metadata (6.4 kB)
INFO:pipenv.patched.pip._internal.resolution.resolvelib.reporter:Reporter.adding_requirement(
SpecifierRequirement('certifi>=2017.4.17'),
LinkCandidate('git+https://github.com/psf/[email protected]'))
INFO:pipenv.patched.pip._internal.operations.prepare:Collecting certifi>=2017.4.17 (from
requests@ git+https://github.com/psf/[email protected]>-r
/tmp/pipenv-mxkx7csl-requirements/pipenv-sa1fms03-constraints.txt (line 2))
INFO:pipenv.patched.pip._internal.network.download:Using cached
certifi-2024.7.4-py3-none-any.whl.metadata (2.2 kB)
INFO:pipenv.patched.pip._internal.resolution.resolvelib.reporter:Reporter.pinning(LinkCandida
te('git+https://github.com/psf/[email protected]'))
INFO:pipenv.patched.pip._internal.resolution.resolvelib.reporter:Reporter.ending_round(0,
state)
INFO:pipenv.patched.pip._internal.resolution.resolvelib.reporter:Reporter.starting_round(1)
INFO:pipenv.patched.pip._internal.resolution.resolvelib.reporter:Reporter.pinning(LinkCandida
te('https://files.pythonhosted.org/packages/1c/d5/c84e1a17bf61d4df64ca866a1c9a913874b4e9bdc13
1ec689a0ad013fb36/certifi-2024.7.4-py3-none-any.whl (from https://pypi.org/simple/certifi/)
(requires-python:>=3.6)'))
INFO:pipenv.patched.pip._internal.resolution.resolvelib.reporter:Reporter.ending_round(1,
state)
INFO:pipenv.patched.pip._internal.resolution.resolvelib.reporter:Reporter.starting_round(2)
INFO:pipenv.patched.pip._internal.resolution.resolvelib.reporter:Reporter.pinning(LinkCandida
te('https://files.pythonhosted.org/packages/40/26/f35951c45070edc957ba40a5b1db3cf60a9dbb1b350
c2d5bef03e01e61de/charset_normalizer-3.3.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x8
6_64.whl (from https://pypi.org/simple/charset-normalizer/) (requires-python:>=3.7.0)'))
INFO:pipenv.patched.pip._internal.resolution.resolvelib.reporter:Reporter.ending_round(2,
state)
INFO:pipenv.patched.pip._internal.resolution.resolvelib.reporter:Reporter.starting_round(3)
INFO:pipenv.patched.pip._internal.resolution.resolvelib.reporter:Reporter.pinning(LinkCandida
te('https://files.pythonhosted.org/packages/e5/3e/741d8c82801c347547f8a2a06aa57dbb1992be9e948
df2ea0eda2c8b79e8/idna-3.7-py3-none-any.whl (from https://pypi.org/simple/idna/)
(requires-python:>=3.5)'))
INFO:pipenv.patched.pip._internal.resolution.resolvelib.reporter:Reporter.ending_round(3,
state)
INFO:pipenv.patched.pip._internal.resolution.resolvelib.reporter:Reporter.starting_round(4)
INFO:pipenv.patched.pip._internal.resolution.resolvelib.reporter:Reporter.pinning(LinkCandida
te('https://files.pythonhosted.org/packages/ca/1c/89ffc63a9605b583d5df2be791a27bc1a42b7c32bab
68d3c8f2f73a98cd4/urllib3-2.2.2-py3-none-any.whl (from https://pypi.org/simple/urllib3/)
(requires-python:>=3.8)'))
INFO:pipenv.patched.pip._internal.resolution.resolvelib.reporter:Reporter.ending_round(4,
state)
INFO:pipenv.patched.pip._internal.resolution.resolvelib.reporter:Reporter.starting_round(5)
INFO:pipenv.patched.pip._internal.resolution.resolvelib.reporter:Reporter.ending(State(mappin
g=OrderedDict([('requests',
LinkCandidate('git+https://github.com/psf/[email protected]')), ('certifi',
LinkCandidate('https://files.pythonhosted.org/packages/1c/d5/c84e1a17bf61d4df64ca866a1c9a9138
74b4e9bdc131ec689a0ad013fb36/certifi-2024.7.4-py3-none-any.whl (from
https://pypi.org/simple/certifi/) (requires-python:>=3.6)')), ('charset-normalizer',
LinkCandidate('https://files.pythonhosted.org/packages/40/26/f35951c45070edc957ba40a5b1db3cf6
0a9dbb1b350c2d5bef03e01e61de/charset_normalizer-3.3.2-cp311-cp311-manylinux_2_17_x86_64.manyl
inux2014_x86_64.whl (from https://pypi.org/simple/charset-normalizer/)
(requires-python:>=3.7.0)')), ('idna',
LinkCandidate('https://files.pythonhosted.org/packages/e5/3e/741d8c82801c347547f8a2a06aa57dbb
1992be9e948df2ea0eda2c8b79e8/idna-3.7-py3-none-any.whl (from https://pypi.org/simple/idna/)
(requires-python:>=3.5)')), ('urllib3',
LinkCandidate('https://files.pythonhosted.org/packages/ca/1c/89ffc63a9605b583d5df2be791a27bc1
a42b7c32bab68d3c8f2f73a98cd4/urllib3-2.2.2-py3-none-any.whl (from
https://pypi.org/simple/urllib3/) (requires-python:>=3.8)'))]), criteria={'requests':
Criterion((ExplicitRequirement(LinkCandidate('git+https://github.com/psf/[email protected]
')), via=None)), 'charset-normalizer':
Criterion((SpecifierRequirement('charset-normalizer<4,>=2'),
via=LinkCandidate('git+https://github.com/psf/[email protected]'))), 'idna':
Criterion((SpecifierRequirement('idna<4,>=2.5'),
via=LinkCandidate('git+https://github.com/psf/[email protected]'))), 'urllib3':
Criterion((SpecifierRequirement('urllib3<3,>=1.21.1'),
via=LinkCandidate('git+https://github.com/psf/[email protected]'))), 'certifi':
Criterion((SpecifierRequirement('certifi>=2017.4.17'),
via=LinkCandidate('git+https://github.com/psf/[email protected]')))},
backtrack_causes=[]))
INFO:pipenv.patched.pip._internal.network.download:Using cached
certifi-2024.7.4-py3-none-any.whl (162 kB)
INFO:pipenv.patched.pip._internal.network.download:Using cached
charset_normalizer-3.3.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (140 kB)
INFO:pipenv.patched.pip._internal.network.download:Using cached idna-3.7-py3-none-any.whl (66
kB)
INFO:pipenv.patched.pip._internal.network.download:Using cached
urllib3-2.2.2-py3-none-any.whl (121 kB)
INFO:pipenv.patched.pip._internal.vcs.git:Cloning https://github.com/psf/requests.git (to
revision v2.32.3) to /tmp/tmpe22p3gop
INFO:pip.subprocessor:Running command git clone --filter=blob:none
https://github.com/psf/requests.git /tmp/tmpe22p3gop
INFO:pip.subprocessor:Cloning into '/tmp/tmpe22p3gop'...
INFO:pip.subprocessor:Running command git checkout -q
61e2240f283f15780ac2d0e2cfefb0fd6fdab627
INFO:pipenv.patched.pip._internal.vcs.git:Resolved https://github.com/psf/requests.git to
commit 61e2240f283f15780ac2d0e2cfefb0fd6fdab627
⠼ Locking packages...
✔ Success!
Warning: Error generating hash for requests.
Locking [dev-packages] dependencies...
Updated Pipfile.lock (157e8b246704e22e5cace5d55b8a257062903736fff6f8630b70cc1454d56bac)!
To activate this project's virtualenv, run pipenv shell.
Alternatively, run a command inside the virtualenv with pipenv run.
To activate this project's virtualenv, run pipenv shell.
Alternatively, run a command inside the virtualenv with pipenv run.
Installing dependencies from Pipfile...
Writing supplied requirement line to temporary file: '-e
git+https://github.com/psf/requests.git@#egg=requests'
Install Phase: Editable Requirements
Preparing Installation of '-e git+https://github.com/psf/requests.git@#egg=requests'
$ /home/me/Desktop/temp/pipfiletest/.venv/bin/python
/home/me/.local/lib/python3.11/site-packages/pipenv/patched/pip/__pip-runner__.py install -i
https://pypi.org/simple --no-input --upgrade -r
/tmp/pipenv-145hnd_9-requirements/pipenv-5csjrudk-reqs.txt
Using source directory: '/home/me/Desktop/temp/pipfiletest/.venv/src'
Obtaining requests from git+https://github.com/psf/requests.git@#egg=requests (from -r
/tmp/pipenv-145hnd_9-requirements/pipenv-5csjrudk-reqs.txt (line 1))
ERROR: The URL 'git+https://github.com/psf/requests.git@#egg=requests' has an empty revision
(after @) which is not supported. Include a revision after @ or remove @ from the URL.
[pipenv.exceptions.InstallError]: ERROR: The URL 'git+https://github.com/psf/requests.git@#egg=requests' has an empty revision (after @) which is not supported. Include a revision after @ or remove @ from the URL.
ERROR: Couldn't install package: {}
Package installation failed...
The text was updated successfully, but these errors were encountered:
dennisvang
changed the title
Editable install from VCS with --skip-lock fails with "empty revision" error
Install from VCS with --skip-lock fails with "empty revision" error
Jul 10, 2024
dennisvang
changed the title
Install from VCS with --skip-lock fails with "empty revision" error
VCS install with --skip-lock fails with "empty revision" error
Jul 11, 2024
Issue description
Starting from a clean slate, with a dir containing only a single
Pipfile
with a single VCS dependency, runningpipenv install --skip-lock
fails with the error:This happens even though a proper revision is specified, as in:
Moreover, the exact same
Pipfile
works without issue when doing a normalpipenv install
, without--skip-lock
.Reproduced on Ubuntu 22.04.4 LTS and Amazon Linux 2023, running Python 3.11 with
pipenv
version 2024.0.1, both witheditable = true
andeditable = false
.This is relevant for deployment to AWS Elastic Beanstalk, because that uses
--skip-lock
, as explained here, unless we provide aPipfile.lock
or arequirements.txt
, which is not an option.Expected result
I expected the specified version of the package to be installed without issue.
Actual result
command line output (using `editable=true`)
Steps to replicate
Create an empty dir, add the following
Pipfile
:The
requests
package is just a random example. The same issue arises with other packages.Run
pipenv install --skip-lock
$ pipenv --support
Pipenv version:
'2024.0.1'
Pipenv location:
'/home/me/.local/lib/python3.11/site-packages/pipenv'
Python location:
'/home/me/.pyenv/versions/3.11.6/bin/python3.11'
OS Name:
'posix'
User pip version:
'24.0'
user Python installations found:
PEP 508 Information:
System environment variables:
SHELL
SESSION_MANAGER
QT_ACCESSIBILITY
PIPENV_VENV_IN_PROJECT
COLORTERM
PYENV_SHELL
XDG_CONFIG_DIRS
SSH_AGENT_LAUNCHER
XDG_MENU_PREFIX
GNOME_DESKTOP_SESSION_ID
LANGUAGE
LC_ADDRESS
GNOME_SHELL_SESSION_MODE
LC_NAME
SSH_AUTH_SOCK
GIT_PS1_SHOWDIRTYSTATE
XMODIFIERS
DESKTOP_SESSION
LC_MONETARY
GTK_MODULES
PWD
LOGNAME
XDG_SESSION_DESKTOP
XDG_SESSION_TYPE
SYSTEMD_EXEC_PID
XAUTHORITY
HOME
USERNAME
IM_CONFIG_PHASE
LC_PAPER
LANG
LS_COLORS
XDG_CURRENT_DESKTOP
VTE_VERSION
WAYLAND_DISPLAY
GNOME_TERMINAL_SCREEN
GNOME_SETUP_DISPLAY
LESSCLOSE
XDG_SESSION_CLASS
TERM
LC_IDENTIFICATION
LESSOPEN
USER
GNOME_TERMINAL_SERVICE
DISPLAY
SHLVL
LC_TELEPHONE
QT_IM_MODULE
LC_MEASUREMENT
PAPERSIZE
XDG_RUNTIME_DIR
PYENV_ROOT
LC_TIME
XDG_DATA_DIRS
PATH
GDMSESSION
DBUS_SESSION_BUS_ADDRESS
LC_NUMERIC
OLDPWD
_
PIP_DISABLE_PIP_VERSION_CHECK
PYTHONDONTWRITEBYTECODE
PYTHONFINDER_IGNORE_UNSUPPORTED
Pipenv–specific environment variables:
PIPENV_VENV_IN_PROJECT
:1
Debug–specific environment variables:
PATH
:/home/me/.pyenv/versions/3.9.18/bin:/home/me/.pyenv/versions/3.8.18/bin:/home/me/.pyenv/versions/3.11.6/bin:/home/me/.pyenv/versions/3.8.13/bin:/home/me/.pyenv/shims:/home/me/.npm-global/bin:/home/me/.local/bin:/home/me/.pyenv/bin:/home/me/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin
SHELL
:/bin/bash
LANG
:en_CA.UTF-8
PWD
:/home/me/Desktop/temp/pipfiletest
Contents of
Pipfile
('/home/me/Desktop/temp/pipfiletest/Pipfile'):Contents of
Pipfile.lock
('/home/me/Desktop/temp/pipfiletest/Pipfile.lock'):The text was updated successfully, but these errors were encountered: