-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Description
diagnose documentation could not be viewed due to a 404.
Issue description
Pipfile.lock lock fails when trying to install libraries from Git (GitHub)
It also fails if you manually add the library to the Pipfile and run pipenv install
.
Expected result
Successfully installed and Pipfile.lock will be successfully locked
Actual result
Installing git+https://github.com/lithum-labs/dispander.git@master#egg=dispander...
Resolving git+https://github.com/lithum-labs/dispander.git@master#egg=dispander...
Installation Succeeded
Pipfile.lock (ad091f) out of date, updating to (846d5d)...
Locking [packages] dependencies...
Building requirements...
Resolving dependencies...
INFO:pipenv.patched.pip._internal.operations.prepare:Collecting dispander@ git+https://github.com/lithum-labs/dispander.git@master (from -r
C:\Users\hm74c\AppData\Local\Temp\pipenv-l9tmqn93-requirements\pipenv-mwmdhm7t-constraints.txt (line 19))
INFO:pipenv.patched.pip._internal.vcs.git:Cloning https://github.com/lithum-labs/dispander.git (to revision master) to
c:\users\hm74c\appdata\local\temp\pip-temp-jzrd7nfr\dispander_932428eee8c247b88122e42195ba0566
INFO:pip.subprocessor:Running command git clone --filter=blob:none --quiet https://github.com/lithum-labs/dispander.git
'C:\Users\hm74c\AppData\Local\Temp\pip-temp-jzrd7nfr\dispander_932428eee8c247b88122e42195ba0566'
INFO:pipenv.patched.pip._internal.vcs.git:Resolved https://github.com/lithum-labs/dispander.git to commit 0f79ee939b176f7166f58529ba47451e8d85c7ab
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 'error'
ERROR:pip.subprocessor:Getting requirements to build wheel exited with 1
Traceback (most recent call last):
File "C:\Users\hm74c\AppData\Local\pipx\pipx\venvs\pipenv\Lib\site-packages\pipenv\utils\resolver.py", line 446, in resolve
results = resolver.resolve(constraints, check_supported_wheels=False)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\hm74c\AppData\Local\pipx\pipx\venvs\pipenv\Lib\site-packages\pipenv\patched\pip\_internal\resolution\resolvelib\resolver.py", line 76, in resolve
collected = self.factory.collect_root_requirements(root_reqs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\hm74c\AppData\Local\pipx\pipx\venvs\pipenv\Lib\site-packages\pipenv\patched\pip\_internal\resolution\resolvelib\factory.py", line 534, in collect_root_requirements
reqs = list(
^^^^^
File "C:\Users\hm74c\AppData\Local\pipx\pipx\venvs\pipenv\Lib\site-packages\pipenv\patched\pip\_internal\resolution\resolvelib\factory.py", line 490, in _make_requirements_from_install_req
cand = self._make_base_candidate_from_link(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\hm74c\AppData\Local\pipx\pipx\venvs\pipenv\Lib\site-packages\pipenv\patched\pip\_internal\resolution\resolvelib\factory.py", line 228, in _make_base_candidate_from_link
self._link_candidate_cache = LinkCandidate(
^^^^^^^^^^^^^^
File "C:\Users\hm74c\AppData\Local\pipx\pipx\venvs\pipenv\Lib\site-packages\pipenv\patched\pip\_internal\resolution\resolvelib\candidates.py", line 297, in __init__
super().__init__(
File "C:\Users\hm74c\AppData\Local\pipx\pipx\venvs\pipenv\Lib\site-packages\pipenv\patched\pip\_internal\resolution\resolvelib\candidates.py", line 157, in __init__
self.dist = self._prepare()
^^^^^^^^^^^^^^^
File "C:\Users\hm74c\AppData\Local\pipx\pipx\venvs\pipenv\Lib\site-packages\pipenv\patched\pip\_internal\resolution\resolvelib\candidates.py", line 226, in _prepare
dist = self._prepare_distribution()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\hm74c\AppData\Local\pipx\pipx\venvs\pipenv\Lib\site-packages\pipenv\patched\pip\_internal\resolution\resolvelib\candidates.py", line 308, in _prepare_distribution
return preparer.prepare_linked_requirement(self._ireq, parallel_builds=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\hm74c\AppData\Local\pipx\pipx\venvs\pipenv\Lib\site-packages\pipenv\patched\pip\_internal\operations\prepare.py", line 525, in prepare_linked_requirement
return self._prepare_linked_requirement(req, parallel_builds)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\hm74c\AppData\Local\pipx\pipx\venvs\pipenv\Lib\site-packages\pipenv\patched\pip\_internal\operations\prepare.py", line 640, in _prepare_linked_requirement
dist = _get_prepared_distribution(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\hm74c\AppData\Local\pipx\pipx\venvs\pipenv\Lib\site-packages\pipenv\patched\pip\_internal\operations\prepare.py", line 71, in _get_prepared_distribution
abstract_dist.prepare_distribution_metadata(
File "C:\Users\hm74c\AppData\Local\pipx\pipx\venvs\pipenv\Lib\site-packages\pipenv\patched\pip\_internal\distributions\sdist.py", line 54, in prepare_distribution_metadata
self._install_build_reqs(finder)
File "C:\Users\hm74c\AppData\Local\pipx\pipx\venvs\pipenv\Lib\site-packages\pipenv\patched\pip\_internal\distributions\sdist.py", line 124, in _install_build_reqs
build_reqs = self._get_build_requires_wheel()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\hm74c\AppData\Local\pipx\pipx\venvs\pipenv\Lib\site-packages\pipenv\patched\pip\_internal\distributions\sdist.py", line 101, in _get_build_requires_wheel
return backend.get_requires_for_build_wheel()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\hm74c\AppData\Local\pipx\pipx\venvs\pipenv\Lib\site-packages\pipenv\patched\pip\_internal\utils\misc.py", line 751, in get_requires_for_build_wheel
return super().get_requires_for_build_wheel(config_settings=cs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\hm74c\AppData\Local\pipx\pipx\venvs\pipenv\Lib\site-packages\pipenv\patched\pip\_vendor\pyproject_hooks\_impl.py", line 166, in get_requires_for_build_wheel
return self._call_hook('get_requires_for_build_wheel', {
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\hm74c\AppData\Local\pipx\pipx\venvs\pipenv\Lib\site-packages\pipenv\patched\pip\_vendor\pyproject_hooks\_impl.py", line 311, in _call_hook
self._subprocess_runner(
File "C:\Users\hm74c\AppData\Local\pipx\pipx\venvs\pipenv\Lib\site-packages\pipenv\patched\pip\_internal\utils\subprocess.py", line 252, in runner
call_subprocess(
File "C:\Users\hm74c\AppData\Local\pipx\pipx\venvs\pipenv\Lib\site-packages\pipenv\patched\pip\_internal\utils\subprocess.py", line 224, in call_subprocess
raise error
pipenv.patched.pip._internal.exceptions.InstallationSubprocessError: Getting requirements to build wheel exited with 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\hm74c\AppData\Local\pipx\pipx\venvs\pipenv\Lib\site-packages\pipenv\resolver.py", line 675, in <module>
main()
File "C:\Users\hm74c\AppData\Local\pipx\pipx\venvs\pipenv\Lib\site-packages\pipenv\resolver.py", line 661, in main
_main(
File "C:\Users\hm74c\AppData\Local\pipx\pipx\venvs\pipenv\Lib\site-packages\pipenv\resolver.py", line 645, in _main
resolve_packages(
File "C:\Users\hm74c\AppData\Local\pipx\pipx\venvs\pipenv\Lib\site-packages\pipenv\resolver.py", line 612, in resolve_packages
results, resolver = resolve(
^^^^^^^^
File "C:\Users\hm74c\AppData\Local\pipx\pipx\venvs\pipenv\Lib\site-packages\pipenv\resolver.py", line 592, in resolve
return resolve_deps(
^^^^^^^^^^^^^
File "C:\Users\hm74c\AppData\Local\pipx\pipx\venvs\pipenv\Lib\site-packages\pipenv\utils\resolver.py", line 918, in resolve_deps
results, hashes, internal_resolver = actually_resolve_deps(
^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\hm74c\AppData\Local\pipx\pipx\venvs\pipenv\Lib\site-packages\pipenv\utils\resolver.py", line 691, in actually_resolve_deps
resolver.resolve()
File "C:\Users\hm74c\AppData\Local\pipx\pipx\venvs\pipenv\Lib\site-packages\pipenv\utils\resolver.py", line 448, in resolve
raise ResolutionFailure(message=str(e))
pipenv.exceptions.ResolutionFailure: [31m[1mERROR[0m: [33mGetting requirements to build wheel exited with 1[0m
Locking Failed!
[ ==] Locking...
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "c:\users\hm74c\.local\bin\pipenv.exe\__main__.py", line 7, in <module>
# when invoked as python -m pip <command>
^^^^^
File "C:\Users\hm74c\AppData\Local\pipx\pipx\venvs\pipenv\Lib\site-packages\pipenv\vendor\click\core.py", line 1157, in __call__
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\hm74c\AppData\Local\pipx\pipx\venvs\pipenv\Lib\site-packages\pipenv\cli\options.py", line 58, in main
return super().main(*args, **kwargs, windows_expand_args=False)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\hm74c\AppData\Local\pipx\pipx\venvs\pipenv\Lib\site-packages\pipenv\vendor\click\core.py", line 1078, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "C:\Users\hm74c\AppData\Local\pipx\pipx\venvs\pipenv\Lib\site-packages\pipenv\vendor\click\core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\hm74c\AppData\Local\pipx\pipx\venvs\pipenv\Lib\site-packages\pipenv\vendor\click\core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\hm74c\AppData\Local\pipx\pipx\venvs\pipenv\Lib\site-packages\pipenv\vendor\click\core.py", line 783, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\hm74c\AppData\Local\pipx\pipx\venvs\pipenv\Lib\site-packages\pipenv\vendor\click\decorators.py", line 92, in new_func
return ctx.invoke(f, obj, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\hm74c\AppData\Local\pipx\pipx\venvs\pipenv\Lib\site-packages\pipenv\vendor\click\core.py", line 783, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\hm74c\AppData\Local\pipx\pipx\venvs\pipenv\Lib\site-packages\pipenv\cli\command.py", line 209, in install
do_install(
File "C:\Users\hm74c\AppData\Local\pipx\pipx\venvs\pipenv\Lib\site-packages\pipenv\routines\install.py", line 297, in do_install
raise e
File "C:\Users\hm74c\AppData\Local\pipx\pipx\venvs\pipenv\Lib\site-packages\pipenv\routines\install.py", line 281, in do_install
do_init(
File "C:\Users\hm74c\AppData\Local\pipx\pipx\venvs\pipenv\Lib\site-packages\pipenv\routines\install.py", line 648, in do_init
do_lock(
File "C:\Users\hm74c\AppData\Local\pipx\pipx\venvs\pipenv\Lib\site-packages\pipenv\routines\lock.py", line 65, in do_lock
venv_resolve_deps(
File "C:\Users\hm74c\AppData\Local\pipx\pipx\venvs\pipenv\Lib\site-packages\pipenv\utils\resolver.py", line 859, in venv_resolve_deps
c = resolve(cmd, st, project=project)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\hm74c\AppData\Local\pipx\pipx\venvs\pipenv\Lib\site-packages\pipenv\utils\resolver.py", line 728, in resolve
raise RuntimeError("Failed to lock Pipfile.lock!")
RuntimeError: Failed to lock Pipfile.lock!
Steps to replicate
commands
pipenv install git+https://github.com/lithum-labs/dispander.git#egg=dispander
Pipfile
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"
[packages]
dispander = {ref = "master", git = "git+https://github.com/lithum-labs/dispander.git"}
[requires]
python_version = "3.12"
[scripts]
start = "python main.py"
(There is only discord.py (available on PyPI) in the dependencies for the library you are trying to install.)
$ pipenv --support
Pipenv version: '2023.12.1'
Pipenv location: 'C:\\Users\\hm74c\\AppData\\Local\\pipx\\pipx\\venvs\\pipenv\\Lib\\site-packages\\pipenv'
Python location: 'C:\\Users\\hm74c\\AppData\\Local\\pipx\\pipx\\venvs\\pipenv\\Scripts\\python.exe'
OS Name: 'nt'
User pip version: '23.3.2'
user Python installations found:
PEP 508 Information:
{'implementation_name': 'cpython',
'implementation_version': '3.12.2',
'os_name': 'nt',
'platform_machine': 'AMD64',
'platform_python_implementation': 'CPython',
'platform_release': '11',
'platform_system': 'Windows',
'platform_version': '10.0.22631',
'python_full_version': '3.12.2',
'python_version': '3.12',
'sys_platform': 'win32'}
System environment variables:
ALLUSERSPROFILE
APPDATA
CHOCOLATEYINSTALL
CHOCOLATEYLASTPATHUPDATE
COMMONPROGRAMFILES
COMMONPROGRAMFILES(X86)
COMMONPROGRAMW6432
COMPUTERNAME
COMSPEC
DRIVERDATA
HOMEDRIVE
HOMEPATH
IGCCSVC_DB
LOCALAPPDATA
LOGONSERVER
NUMBER_OF_PROCESSORS
NVM_HOME
NVM_SYMLINK
OCULUSBASE
ONEDRIVE
ONEDRIVECONSUMER
OS
PATH
PATHEXT
PGDATA
PG_INCLUDE_DIR
PG_LIB_DIR
PNPM_HOME
PROCESSOR_ARCHITECTURE
PROCESSOR_IDENTIFIER
PROCESSOR_LEVEL
PROCESSOR_REVISION
PROGRAMDATA
PROGRAMFILES
PROGRAMFILES(X86)
PROGRAMW6432
PSMODULEPATH
PUBLIC
PYENV
PYENV_HOME
PYENV_ROOT
SESSIONNAME
SYSTEMDRIVE
SYSTEMROOT
TEMP
TMP
USERDOMAIN
USERDOMAIN_ROAMINGPROFILE
USERNAME
USERPROFILE
VBOX_MSI_INSTALL_PATH
WINDIR
WSLENV
WT_PROFILE_ID
WT_SESSION
ZES_ENABLE_SYSMAN
PIP_DISABLE_PIP_VERSION_CHECK
PYTHONDONTWRITEBYTECODE
PYTHONFINDER_IGNORE_UNSUPPORTED