Skip to content

v2023.8.26 URL with auth not used correctly #5880

@Joinyy

Description

@Joinyy

Issue description

Since v2023.8.26 my pipfile won't work anymore, which worked last with v2023.8.23. I have two sources configured, both with https://user:APIkey@... (currently stored in clear-text, as the API key is valid ONLY for read access to our pypi servers). With the new pipenv version I am getting a 403 response, while testing with cURL with the exact URL is no problem.

Expected result

Configured URLs with credentials must continue to work.

Actual result

I get a http 403 response with the same pipfile, same credentials.

Actual output (with verbose):
pipenv install --verbose
Pipfile.lock not found, creating...
Locking [packages] dependencies...
Building requirements...
Resolving dependencies...
INFO:pipenv.patched.pip._internal.network.session:adding trusted host: url.com' (from line 3 of C:\Users\%USER%\AppData\Local\Temp\pipenv-yan26cjj-requirements\pipenv-ygl120ms-constraints.txt)
INFO:pipenv.patched.pip._internal.resolution.resolvelib.reporter:Reporter.starting()
INFO:pipenv.patched.pip._internal.resolution.resolvelib.reporter:Reporter.adding_requirement(SpecifierRequirement('lxml'), None)
INFO:pipenv.patched.pip._internal.operations.prepare:Collecting lxml (from -r C:\Users\%USER%\AppData\Local\Temp\pipenv-yan26cjj-requirements\pipenv-ygl120ms-constraints.txt (line 4))
INFO:pipenv.patched.pip._internal.network.download:Using cached https://url/lxml-4.9.3-cp39-cp39-win_amd64.whl (3.9 MB)
INFO:pipenv.patched.pip._internal.resolution.resolvelib.reporter:Reporter.adding_requirement(SpecifierRequirement('pywin32==300'), None)
INFO:pipenv.patched.pip._internal.operations.prepare:Collecting pywin32==300 (from -r C:\Users\%USER%\AppData\Local\Temp\pipenv-yan26cjj-requirements\pipenv-ygl120ms-constraints.txt (line 6))
INFO:pipenv.patched.pip._internal.network.download:Using cached https://url/pywin32-300-cp39-cp39-win_amd64.whl (9.2 MB)
INFO:pipenv.patched.pip._internal.resolution.resolvelib.reporter:Reporter.adding_requirement(SpecifierRequirement('pyyaml'), None)
INFO:pipenv.patched.pip._internal.operations.prepare:Collecting pyyaml (from -r C:\Users\%USER%\AppData\Local\Temp\pipenv-yan26cjj-requirements\pipenv-ygl120ms-constraints.txt (line 7))
INFO:pipenv.patched.pip._internal.network.download:Using cached https://url/PyYAML-6.0.1-cp39-cp39-win_amd64.whl (152 kB)
INFO:pipenv.patched.pip._internal.resolution.resolvelib.reporter:Reporter.adding_requirement(SpecifierRequirement('psutil'), None)
INFO:pipenv.patched.pip._internal.operations.prepare:Collecting psutil (from -r C:\Users\%USER%\AppData\Local\Temp\pipenv-yan26cjj-requirements\pipenv-ygl120ms-constraints.txt (line 5))
INFO:pipenv.patched.pip._internal.network.download:Using cached https://url/psutil-5.9.5-cp36-abi3-win_amd64.whl (255 kB)
INFO:pipenv.patched.pip._internal.resolution.resolvelib.reporter:Reporter.starting_round(0)
INFO:pipenv.patched.pip._internal.resolution.resolvelib.reporter:Reporter.pinning(LinkCandidate('https://url/pywin32-300-cp39-cp39-win_amd64.whl#sha256=b1609ce9bd5c411b81f941b246d683d6508992093203d4eb7f278f4ed1085c3f (from https://url/simple/pywin32/)'))
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(LinkCandidate('https://url/lxml-4.9.3-cp39-cp39-win_amd64.whl#sha256=4dd9a263e845a72eacb60d12401e37c616438ea2e5442885f65082c276dfb2b2 (from https://url/simple/lxml/) (requires-python:>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, != 3.4.*)'))
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(LinkCandidate('https://url/PyYAML-6.0.1-cp39-cp39-win_amd64.whl#sha256=510c9deebc5c0225e8c96813043e62b680ba2f9c50a08d3724c7f28a747d1486 (from https://url/simple/pyyaml/) (requires-python:>=3.6)'))
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(LinkCandidate('https://url/psutil-5.9.5-cp36-abi3-win_amd64.whl#sha256=b258c0c1c9d145a1d5ceffab1134441c4c5113b2417fafff7315a917a026c3c9 (from https://url/simple/psutil/) (requires-python:>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*)'))
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.ending(State(mapping=OrderedDict([('pywin32',
LinkCandidate('https://url/pywin32-300-cp39-cp39-win_amd64.whl#sha256=b1609ce9bd5c411b81f941b246d683d6508992093203d4eb7f278f4ed1085c3f
(from https://url/simple/pywin32/)')), ('lxml',
LinkCandidate('https://url/lxml-4.9.3-cp39-cp39-win_amd64.whl#sha256=4dd9a263e845a72eacb60d12401e37c616438ea2e5442885f65082c276dfb2b2
(from https://url/simple/lxml/) (requires-python:>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, != 3.4.*)')), ('pyyaml',
LinkCandidate('https://url/PyYAML-6.0.1-cp39-cp39-win_amd64.whl#sha256=510c9deebc5c0225e8c96813043e62b680ba2f9c50a08d3724c7f28a747d1486
(from https://url/simple/pyyaml/) (requires-python:>=3.6)')), ('psutil',
LinkCandidate('https://url/psutil-5.9.5-cp36-abi3-win_amd64.whl#sha256=b258c0c1c9d145a1d5ceffab1134441c4c5113b2417fafff7315a917a026c3c9
(from https://url/simple/psutil/) (requires-python:>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*)'))]), criteria={'lxml': Criterion((SpecifierRequirement('lxml'), via=None)), 'pywin32':
Criterion((SpecifierRequirement('pywin32==300'), via=None)), 'pyyaml': Criterion((SpecifierRequirement('pyyaml'), via=None)), 'psutil': Criterion((SpecifierRequirement('psutil'), via=None))}, backtrack_causes=[]))
[  ==] Locking...
Success!
Locking [dev-packages] dependencies...
Building requirements...
Resolving dependencies...
INFO:pipenv.patched.pip._internal.network.session:adding trusted host: 'url.com' (from line 3 of C:\Users\%USER%\AppData\Local\Temp\pipenv-e8bvgg36-requirements\pipenv-pgh7lsq8-constraints.txt)
INFO:pipenv.patched.pip._internal.resolution.resolvelib.reporter:Reporter.starting()
INFO:pipenv.patched.pip._internal.resolution.resolvelib.reporter:Reporter.adding_requirement(SpecifierRequirement('python-dotenv>=0.21.0'), None)
INFO:pipenv.patched.pip._internal.operations.prepare:Collecting python-dotenv>=0.21.0 (from -r C:\Users\%USER%\AppData\Local\Temp\pipenv-e8bvgg36-requirements\pipenv-pgh7lsq8-constraints.txt (line 14))
INFO:pipenv.patched.pip._internal.network.download:Using cached https://url/python_dotenv-1.0.0-py3-none-any.whl (19 kB)
INFO:pipenv.patched.pip._internal.resolution.resolvelib.reporter:Reporter.adding_requirement(SpecifierRequirement('requests>=2.29.0'), None)
INFO:pipenv.patched.pip._internal.operations.prepare:Collecting requests>=2.29.0 (from -r C:\Users\%USER%\AppData\Local\Temp\pipenv-e8bvgg36-requirements\pipenv-pgh7lsq8-constraints.txt (line 7))
INFO:pipenv.patched.pip._internal.network.download:Using cached https://url/requests-2.31.0-py3-none-any.whl (62 kB)
INFO:pipenv.patched.pip._internal.resolution.resolvelib.reporter:Reporter.adding_requirement(SpecifierRequirement('coverage'), None)
INFO:pipenv.patched.pip._internal.operations.prepare:Collecting coverage (from -r C:\Users\%USER%\AppData\Local\Temp\pipenv-e8bvgg36-requirements\pipenv-pgh7lsq8-constraints.txt (line 16))
INFO:pipenv.patched.pip._internal.network.download:Using cached https://url/coverage-7.3.0-cp39-cp39-win_amd64.whl (204 kB)
INFO:pipenv.patched.pip._internal.resolution.resolvelib.reporter:Reporter.adding_requirement(SpecifierRequirement('flake8'), None)
INFO:pipenv.patched.pip._internal.operations.prepare:Collecting flake8 (from -r C:\Users\%USER%\AppData\Local\Temp\pipenv-e8bvgg36-requirements\pipenv-pgh7lsq8-constraints.txt (line 4))
INFO:pipenv.patched.pip._internal.network.download:Using cached https://url/flake8-6.1.0-py2.py3-none-any.whl (58 kB)
INFO:pipenv.patched.pip._internal.resolution.resolvelib.reporter:Reporter.adding_requirement(SpecifierRequirement('splunk-sdk'), None)
INFO:pipenv.patched.pip._internal.operations.prepare:Collecting splunk-sdk (from -r C:\Users\%USER%\AppData\Local\Temp\pipenv-e8bvgg36-requirements\pipenv-pgh7lsq8-constraints.txt (line 9))
INFO:pipenv.patched.pip._internal.operations.prepare:Using cached splunk_sdk-1.7.4-py3-none-any.whl
INFO:pipenv.patched.pip._internal.resolution.resolvelib.reporter:Reporter.adding_requirement(SpecifierRequirement('pandas'), None)
INFO:pipenv.patched.pip._internal.operations.prepare:Collecting pandas (from -r C:\Users\%USER%\AppData\Local\Temp\pipenv-e8bvgg36-requirements\pipenv-pgh7lsq8-constraints.txt (line 13))
INFO:pipenv.patched.pip._internal.network.download:Using cached https://url/pandas-2.0.3-cp39-cp39-win_amd64.whl (10.8 MB)
INFO:pipenv.patched.pip._internal.resolution.resolvelib.reporter:Reporter.adding_requirement(SpecifierRequirement('openpyxl'), None)
INFO:pipenv.patched.pip._internal.operations.prepare:Collecting openpyxl (from -r C:\Users\%USER%\AppData\Local\Temp\pipenv-e8bvgg36-requirements\pipenv-pgh7lsq8-constraints.txt (line 17))
INFO:pipenv.patched.pip._internal.network.download:Using cached https://url/openpyxl-3.1.2-py2.py3-none-any.whl (249 kB)
INFO:pipenv.patched.pip._internal.resolution.resolvelib.reporter:Reporter.adding_requirement(SpecifierRequirement('json2html'), None)
INFO:pipenv.patched.pip._internal.operations.prepare:Collecting json2html (from -r C:\Users\%USER%\AppData\Local\Temp\pipenv-e8bvgg36-requirements\pipenv-pgh7lsq8-constraints.txt (line 8))
INFO:pipenv.patched.pip._internal.operations.prepare:Using cached json2html-1.3.0-py3-none-any.whl
INFO:pipenv.patched.pip._internal.resolution.resolvelib.reporter:Reporter.adding_requirement(SpecifierRequirement('parameterized'), None)
INFO:pipenv.patched.pip._internal.operations.prepare:Collecting parameterized (from -r C:\Users\%USER%\AppData\Local\Temp\pipenv-e8bvgg36-requirements\pipenv-pgh7lsq8-constraints.txt (line 11))
INFO:pipenv.patched.pip._internal.network.download:Using cached https://url/parameterized-0.9.0-py2.py3-none-any.whl (20 kB)
INFO:pipenv.patched.pip._internal.resolution.resolvelib.reporter:Reporter.adding_requirement(SpecifierRequirement('Sphinx>=6.2.1'), None)
INFO:pipenv.patched.pip._internal.operations.prepare:Collecting Sphinx>=6.2.1 (from -r C:\Users\%USER%\AppData\Local\Temp\pipenv-e8bvgg36-requirements\pipenv-pgh7lsq8-constraints.txt (line 6))
INFO:pipenv.patched.pip._internal.network.download:Using cached https://url/sphinx-7.2.4-py3-none-any.whl (3.2 MB)
INFO:pipenv.patched.pip._internal.resolution.resolvelib.reporter:Reporter.adding_requirement(SpecifierRequirement('furo>=2023.3.27'), None)
INFO:pipenv.patched.pip._internal.operations.prepare:Collecting furo>=2023.3.27 (from -r C:\Users\%USER%\AppData\Local\Temp\pipenv-e8bvgg36-requirements\pipenv-pgh7lsq8-constraints.txt (line 18))
INFO:pipenv.patched.pip._internal.network.download:Using cached https://url/furo-2023.8.19-py3-none-any.whl (323 kB)
INFO:pipenv.patched.pip._internal.resolution.resolvelib.reporter:Reporter.adding_requirement(SpecifierRequirement('unittest-xml-reporting'), None)
INFO:pipenv.patched.pip._internal.operations.prepare:Collecting unittest-xml-reporting (from -r C:\Users\%USER%\AppData\Local\Temp\pipenv-e8bvgg36-requirements\pipenv-pgh7lsq8-constraints.txt (line 12))
INFO:pipenv.patched.pip._internal.network.download:Using cached https://url/unittest_xml_reporting-3.2.0-py2.py3-none-any.whl (20 kB)
INFO:pipenv.patched.pip._internal.resolution.resolvelib.reporter:Reporter.adding_requirement(SpecifierRequirement('as-pymos==1.5a0.dev4'), None)
INFO:pipenv.patched.pip._internal.operations.prepare:Collecting as-pymos==1.5a0.dev4 (from -r C:\Users\%USER%\AppData\Local\Temp\pipenv-e8bvgg36-requirements\pipenv-pgh7lsq8-constraints.txt (line 19))
CRITICAL:pipenv.patched.pip._internal.network.download:HTTP error 403 while getting
https://url/as_pymos-1.5a0.dev4-py3-none-any.whl#sha256=4af38b21851bfd342b9186ecfd1ff2526af0ba8634331c7e2ce476ee466b9c68 (from
https://url/simple/as-pymos/) (requires-python:>=3.7)
Traceback (most recent call last):
  File "C:\Users\%USER%\AppData\Roaming\Python\Python39\site-packages\pipenv\patched\pip\_internal\operations\prepare.py", line 609, in _prepare_linked_requirement
    local_file = unpack_url(
  File "C:\Users\%USER%\AppData\Roaming\Python\Python39\site-packages\pipenv\patched\pip\_internal\operations\prepare.py", line 166, in unpack_url
    file = get_http_url(
  File "C:\Users\%USER%\AppData\Roaming\Python\Python39\site-packages\pipenv\patched\pip\_internal\operations\prepare.py", line 107, in get_http_url
    from_path, content_type = download(link, temp_dir.path)
  File "C:\Users\%USER%\AppData\Roaming\Python\Python39\site-packages\pipenv\patched\pip\_internal\network\download.py", line 134, in __call__
    resp = _http_get_download(self._session, link)
  File "C:\Users\%USER%\AppData\Roaming\Python\Python39\site-packages\pipenv\patched\pip\_internal\network\download.py", line 118, in _http_get_download
    raise_for_status(resp)
  File "C:\Users\%USER%\AppData\Roaming\Python\Python39\site-packages\pipenv\patched\pip\_internal\network\utils.py", line 54, in raise_for_status
    raise NetworkConnectionError(http_error_msg, response=resp)
pipenv.patched.pip._internal.exceptions.NetworkConnectionError: 403 Client Error: Forbidden for url: https://url/as_pymos-1.5a0.dev4-py3-none-any.whl
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "C:\Users\%USER%\AppData\Roaming\Python\Python39\site-packages\pipenv\utils\resolver.py", line 442, in resolve
    results = resolver.resolve(constraints, check_supported_wheels=False)
  File "C:\Users\%USER%\AppData\Roaming\Python\Python39\site-packages\pipenv\patched\pip\_internal\resolution\resolvelib\resolver.py", line 92, in resolve
    result = self._result = resolver.resolve(
  File "C:\Users\%USER%\AppData\Roaming\Python\Python39\site-packages\pipenv\patched\pip\_vendor\resolvelib\resolvers.py", line 546, in resolve
    state = resolution.resolve(requirements, max_rounds=max_rounds)
  File "C:\Users\%USER%\AppData\Roaming\Python\Python39\site-packages\pipenv\patched\pip\_vendor\resolvelib\resolvers.py", line 397, in resolve
    self._add_to_criteria(self.state.criteria, r, parent=None)
  File "C:\Users\%USER%\AppData\Roaming\Python\Python39\site-packages\pipenv\patched\pip\_vendor\resolvelib\resolvers.py", line 173, in _add_to_criteria
    if not criterion.candidates:
  File "C:\Users\%USER%\AppData\Roaming\Python\Python39\site-packages\pipenv\patched\pip\_vendor\resolvelib\structs.py", line 156, in __bool__
    return bool(self._sequence)
  File "C:\Users\%USER%\AppData\Roaming\Python\Python39\site-packages\pipenv\patched\pip\_internal\resolution\resolvelib\found_candidates.py", line 155, in __bool__
    return any(self)
  File "C:\Users\%USER%\AppData\Roaming\Python\Python39\site-packages\pipenv\patched\pip\_internal\resolution\resolvelib\found_candidates.py", line 143, in <genexpr>
    return (c for c in iterator if id(c) not in self._incompatible_ids)
  File "C:\Users\%USER%\AppData\Roaming\Python\Python39\site-packages\pipenv\patched\pip\_internal\resolution\resolvelib\found_candidates.py", line 47, in _iter_built
    candidate = func()
  File "C:\Users\%USER%\AppData\Roaming\Python\Python39\site-packages\pipenv\patched\pip\_internal\resolution\resolvelib\factory.py", line 206, in _make_candidate_from_link
    self._link_candidate_cache = LinkCandidate(
  File "C:\Users\%USER%\AppData\Roaming\Python\Python39\site-packages\pipenv\patched\pip\_internal\resolution\resolvelib\candidates.py", line 297, in __init__
    super().__init__(
  File "C:\Users\%USER%\AppData\Roaming\Python\Python39\site-packages\pipenv\patched\pip\_internal\resolution\resolvelib\candidates.py", line 157, in __init__
    self.dist = self._prepare()
  File "C:\Users\%USER%\AppData\Roaming\Python\Python39\site-packages\pipenv\patched\pip\_internal\resolution\resolvelib\candidates.py", line 226, in _prepare
    dist = self._prepare_distribution()
  File "C:\Users\%USER%\AppData\Roaming\Python\Python39\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\%USER%\AppData\Roaming\Python\Python39\site-packages\pipenv\patched\pip\_internal\operations\prepare.py", line 538, in prepare_linked_requirement
    return self._prepare_linked_requirement(req, parallel_builds)
  File "C:\Users\%USER%\AppData\Roaming\Python\Python39\site-packages\pipenv\patched\pip\_internal\operations\prepare.py", line 618, in _prepare_linked_requirement
    raise InstallationError(
pipenv.patched.pip._internal.exceptions.InstallationError: Could not install requirement as-pymos==1.5a0.dev4 from
https://url/as_pymos-1.5a0.dev4-py3-none-any.whl#sha256=4af38b21851bfd342b9186ecfd1ff2526af0ba8634331c7e2ce476ee466b9c68 (from -r
C:\Users\%USER%\AppData\Local\Temp\pipenv-e8bvgg36-requirements\pipenv-pgh7lsq8-constraints.txt (line 19)) because of HTTP error 403 Client Error: Forbidden for url:
https://url/as_pymos-1.5a0.dev4-py3-none-any.whl for URL
https://url/as_pymos-1.5a0.dev4-py3-none-any.whl#sha256=4af38b21851bfd342b9186ecfd1ff2526af0ba8634331c7e2ce476ee466b9c68 (from
https://url/simple/as-pymos/) (requires-python:>=3.7)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "C:\Users\%USER%\AppData\Roaming\Python\Python39\site-packages\pipenv\resolver.py", line 673, in <module>
    main()
  File "C:\Users\%USER%\AppData\Roaming\Python\Python39\site-packages\pipenv\resolver.py", line 659, in main
    _main(
  File "C:\Users\%USER%\AppData\Roaming\Python\Python39\site-packages\pipenv\resolver.py", line 646, in _main
    resolve_packages(
  File "C:\Users\%USER%\AppData\Roaming\Python\Python39\site-packages\pipenv\resolver.py", line 613, in resolve_packages
    results, resolver = resolve(
  File "C:\Users\%USER%\AppData\Roaming\Python\Python39\site-packages\pipenv\resolver.py", line 593, in resolve
    return resolve_deps(
  File "C:\Users\%USER%\AppData\Roaming\Python\Python39\site-packages\pipenv\utils\resolver.py", line 845, in resolve_deps
    results, hashes, internal_resolver = actually_resolve_deps(
  File "C:\Users\%USER%\AppData\Roaming\Python\Python39\site-packages\pipenv\utils\resolver.py", line 618, in actually_resolve_deps
    resolver.resolve()
  File "C:\Users\%USER%\AppData\Roaming\Python\Python39\site-packages\pipenv\utils\resolver.py", line 444, in resolve
    raise ResolutionFailure(message=str(e))
pipenv.exceptions.ResolutionFailure: [31m[1mERROR[0m: [33mCould not install requirement as-pymos==1.5a0.dev4 from
https://url/as_pymos-1.5a0.dev4-py3-none-any.whl#sha256=4af38b21851bfd342b9186ecfd1ff2526af0ba8634331c7e2ce476ee466b9c68 (from -r
C:\Users\%USER%\AppData\Local\Temp\pipenv-e8bvgg36-requirements\pipenv-pgh7lsq8-constraints.txt (line 19)) because of HTTP error 403 Client Error: Forbidden for url:
https://url/as_pymos-1.5a0.dev4-py3-none-any.whl for URL
https://url/as_pymos-1.5a0.dev4-py3-none-any.whl#sha256=4af38b21851bfd342b9186ecfd1ff2526af0ba8634331c7e2ce476ee466b9c68 (from
https://url/simple/as-pymos/) (requires-python:>=3.7)[0m
Locking Failed!
[   =] Locking...
Traceback (most recent call last):
  File "C:\python\3.9.5.0.0\python-3.9.5.amd64\lib\runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\python\3.9.5.0.0\python-3.9.5.amd64\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "C:\python\3.9.5.0.0\python-3.9.5.amd64\Scripts\pipenv.exe\__main__.py", line 7, in <module>
    # when invoked as python -m pip <command>
  File "C:\Users\%USER%\AppData\Roaming\Python\Python39\site-packages\pipenv\vendor\click\core.py", line 1130, in __call__
    return self.main(*args, **kwargs)
  File "C:\Users\%USER%\AppData\Roaming\Python\Python39\site-packages\pipenv\cli\options.py", line 58, in main
    return super().main(*args, **kwargs, windows_expand_args=False)
  File "C:\Users\%USER%\AppData\Roaming\Python\Python39\site-packages\pipenv\vendor\click\core.py", line 1055, in main
    rv = self.invoke(ctx)
  File "C:\Users\%USER%\AppData\Roaming\Python\Python39\site-packages\pipenv\vendor\click\core.py", line 1657, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "C:\Users\%USER%\AppData\Roaming\Python\Python39\site-packages\pipenv\vendor\click\core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "C:\Users\%USER%\AppData\Roaming\Python\Python39\site-packages\pipenv\vendor\click\core.py", line 760, in invoke
    return __callback(*args, **kwargs)
  File "C:\Users\%USER%\AppData\Roaming\Python\Python39\site-packages\pipenv\vendor\click\decorators.py", line 84, in new_func
    return ctx.invoke(f, obj, *args, **kwargs)
  File "C:\Users\%USER%\AppData\Roaming\Python\Python39\site-packages\pipenv\vendor\click\core.py", line 760, in invoke
    return __callback(*args, **kwargs)
  File "C:\Users\%USER%\AppData\Roaming\Python\Python39\site-packages\pipenv\cli\command.py", line 209, in install
    do_install(
  File "C:\Users\%USER%\AppData\Roaming\Python\Python39\site-packages\pipenv\routines\install.py", line 164, in do_install
    do_init(
  File "C:\Users\%USER%\AppData\Roaming\Python\Python39\site-packages\pipenv\routines\install.py", line 672, in do_init
    do_lock(
  File "C:\Users\%USER%\AppData\Roaming\Python\Python39\site-packages\pipenv\routines\lock.py", line 65, in do_lock
    venv_resolve_deps(
  File "C:\Users\%USER%\AppData\Roaming\Python\Python39\site-packages\pipenv\utils\resolver.py", line 786, in venv_resolve_deps
    c = resolve(cmd, st, project=project)
  File "C:\Users\%USER%\AppData\Roaming\Python\Python39\site-packages\pipenv\utils\resolver.py", line 655, in resolve
    raise RuntimeError("Failed to lock Pipfile.lock!")
RuntimeError: Failed to lock Pipfile.lock!

Steps to replicate

Pipfile see below, the same pipfile succeeds for v2023.8.23.


$ pipenv --support

Pipenv version: '2023.8.26'

Pipenv location: 'C:\\Users\\%user%\\AppData\\Roaming\\Python\\Python39\\site-packages\\pipenv'

Python location: 'c:\\python\\3.9.5.0.0\\python-3.9.5.amd64\\python.exe'

OS Name: 'nt'

User pip version: '23.2.1'

user Python installations found:

PEP 508 Information:

{'implementation_name': 'cpython',
 'implementation_version': '3.9.5',
 'os_name': 'nt',
 'platform_machine': 'AMD64',
 'platform_python_implementation': 'CPython',
 'platform_release': '10',
 'platform_system': 'Windows',
 'platform_version': '10.0.19045',
 'python_full_version': '3.9.5',
 'python_version': '3.9',
 'sys_platform': 'win32'}

System environment variables:

  • AI_LICENSE
  • ALLUSERSPROFILE
  • APPDATA
  • CLINK_DIR
  • COMMONPROGRAMFILES
  • COMMONPROGRAMFILES(X86)
  • COMMONPROGRAMW6432
  • COMPUTERNAME
  • COMSPEC
  • CONDA_PROMPT_MODIFIER
  • DNX_HOME
  • DRIVERDATA
  • FPS_BROWSER_APP_PROFILE_STRING
  • FPS_BROWSER_USER_PROFILE_STRING
  • GPOTESTVAR
  • HOME
  • HOMEDRIVE
  • HOMEPATH
  • HOMESHARE
  • HTTP_PROXY
  • HTTPS_PROXY
  • IBMLDAP_ALTHOME
  • JAVA_HOME
  • LOCALAPPDATA
  • LOCALPKIDATA
  • LOGONSERVER
  • MAGIC_PATH
  • ML_DP_SERVER_NG2
  • MLM_LICENSE_FILE
  • MOZ_LEGACY_PROFILES
  • NUMBER_OF_PROCESSORS
  • ONEDRIVE
  • ONEDRIVECOMMERCIAL
  • OS
  • PATH
  • PATHEXT
  • PICO_DRIVER
  • PKIDATA
  • POLY_METRICS_SERVER1
  • POLY_METRICS_SERVER2
  • POLY_MODULE_SERVER3
  • POLY_MODULE_SERVER4
  • POLY_MODULE_SERVER5
  • POSH_GIT_ENABLED
  • POSH_THEME
  • POSH_THEMES_PATH
  • POWERLINE_COMMAND
  • POWERSHELL_DISTRIBUTION_CHANNEL
  • PROCESSOR_ARCHITECTURE
  • PROCESSOR_IDENTIFIER
  • PROCESSOR_LEVEL
  • PROCESSOR_REVISION
  • PROGRAMDATA
  • PROGRAMFILES
  • PROGRAMFILES(X86)
  • PROGRAMW6432
  • PSMODULEPATH
  • PUBLIC
  • PYTHON_PATH
  • PYTHONDONTWRITEBYTECODE
  • REDHAT_JAVA_HOME
  • REPORTVIEWERDIVAAPIS_INSTALLDIR
  • REPORTVIEWERSELECTOR_INSTALLDIR
  • SAPKM_USER_TEMP
  • SESSIONNAME
  • SNC_LIB
  • SNC_LIB_32
  • SNC_LIB_64
  • SSF_LIBRARY_PATH
  • SSF_LIBRARY_PATH_64
  • SYSTEMDRIVE
  • SYSTEMROOT
  • TB_HOMEDIR
  • TBC_HOME
  • TBC_MODE
  • TBCPROFILE_DIR
  • TEMP
  • TMP
  • UATDATA
  • USERDNSDOMAIN
  • USERDOMAIN
  • USERDOMAIN_ROAMINGPROFILE
  • USERNAME
  • USERPROFILE
  • VIRTUAL_ENV_DISABLE_PROMPT
  • VISUAL
  • VS100COMNTOOLS
  • VS140COMNTOOLS
  • WINDIR
  • WSLENV
  • WT_PROFILE_ID
  • WT_SESSION
  • ZES_ENABLE_SYSMAN
  • PIP_DISABLE_PIP_VERSION_CHECK
  • PYTHONFINDER_IGNORE_UNSUPPORTED

Pipenv�specific environment variables:

Debug�specific environment variables:

  • PATH: C:\Program Files\PowerShell\7;C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_1.13.11431.0_x64__8wekyb3d8bbwe;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\RedHat\java-1.8.0-openjdk\missioncontrol\;C:\Program Files\RedHat\java-1.8.0-openjdk\webstart\;C:\Program Files\RedHat\java-1.8.0-openjdk\bin;C:\Program Files\RedHat\java-1.8.0-openjdk\jre\bin;C:\Program Files\gs\gs9.21\bin;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\;C:\Program Files\Git\cmd;C:\Program Files\dotnet\;C:\Program Files\nodejs\;C:\WINDOWS\system32\config\systemprofile\.dnx\bin;C:\Program Files\Microsoft DNX\Dnvm\;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files\MATLAB\MATLAB Runtime\v97\runtime\win64;C:\Program Files\7-Zip;C:\Program Files\Anaconda3\condabin;C:\Program Files (x86)\Plantronics\Spokes3G\;C:\Program Files (x86)\dotnet\;C:\Program Files\MiKTeX 2.9\miktex\bin\x64\;C:\Program Files (x86)\RedHat\java-1.8.0-openjdk\webstart\;C:\Program Files (x86)\RedHat\java-1.8.0-openjdk\bin;C:\Program Files (x86)\RedHat\java-1.8.0-openjdk\jre\bin;C:\Program Files\PowerShell\7\;C:\Users\RJI1SGM\.dnx\bin;C:\Users\RJI1SGM\AppData\Local\Microsoft\WindowsApps;C:\Users\RJI1SGM\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\RJI1SGM\AppData\Local\Gpg4win\..\GnuPG\bin;C:\Program Files\Anaconda3;C:\Program Files\Anaconda3\Scripts;C:\Users\RJI1SGM\AppData\Roaming\Python\Python38\Scripts;C:\Users\RJI1SGM\AppData\Roaming\npm;C:\app\cygwin64\bin;C:\Program Files\MATLAB\R2017b\bin\win64;C:\Users\RJI1SGM\AppData\Local\Programs\oh-my-posh\bin;C:\Program Files\Anaconda3\Library\bin;C:\Users\%USER%\AppData\Local\Microsoft\WindowsApps;C:\Users\%USER%\AppData\Roaming\Python\Python39\Scripts;C:\app\Graphviz\bin;C:\Users\%USER%\AppData\Local\Pandoc\;C:\Users\%USER%\AppData\Local\Programs\Neovim\bin

Contents of Pipfile ('.\pipfile'):

[[source]]
url = "https://whoosh@url/pypi-mirror/simple"
name = "pypi"
verify_ssl = true

[[source]]
url = "https://other:whoos@url/other-index/simple"
name = "asios"
verify_ssl = true

[dev-packages]
Sphinx = {version = ">=6.2.1"}
furo = {version = ">=2023.3.27"}
python-dotenv = {version = ">=0.21.0"}
requests = {version = ">=2.29.0"}
flake8 = "*"
unittest-xml-reporting = "*"
coverage = "*"
mock = "*"
nose = "*"
openpyxl = "*"
pandas = "*"
parameterized = "*"
json2html = "*"
dominate = "*"
splunk-sdk = "*"
as-pymos = {version="==1.5a0.dev4", index="asios"}

[packages]
psutil = "*"
pywin32 = {version = "== 300", sys_platform = "== 'win32'"}
pyyaml = "*"
lxml = "*"

[requires]
python_version = "3.9.5"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions