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

File located Dependencies of Packages (sub-dependency) can't be installed with Pipenv #6119

Open
AlexandreArpin opened this issue Apr 3, 2024 · 1 comment
Labels
triage Type: Possible Bug This issue describes a possible bug in pipenv.

Comments

@AlexandreArpin
Copy link
Contributor

Issue description

When installing a package (A) that's located on disk and that depends on another package (B) installed on disk, the "sub-dependency" (B) is added to the Pipfile.lock without its file location properties.

Manually adding the file location to the Pipfile.lock entry for the package B fixes the issue.

Installing the library with python -m pip install works as well.

Expected result

Sub-dependency located on disk have their file location properly added to the Pipfile.lock

"namespace-library": {
	"editable": true,
	"file": "../namespace-library-file"
},
"namespace-utils": {
        "editable": true,
	"file": "../namespace-utils"
},

Actual result

Pipfile.lock has the following entry:

"namespace-library": {
	"editable": true,
	"file": "../namespace-library-file"
},
"namespace-utils": {},

pipenv lock --verbose

Building requirements...
Resolving dependencies...
INFO:pipenv.patched.pip._internal.operations.prepare:Obtaining file:///C:/Dev/pipenv-repro/namespace-library-file (from
-r C:\Users\Alex\AppData\Local\Temp\pipenv-ul2p7bln-requirements\pipenv-1c4pnx4s-constraints.txt (line 2))
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:Checking if build backend supports build_editable: started
INFO:pipenv.patched.pip._internal.cli.spinners:Checking if build backend supports build_editable: 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:Installing backend dependencies: started
INFO:pipenv.patched.pip._internal.cli.spinners:Installing backend dependencies: 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(Editab
leCandidate('file:///C:/Dev/pipenv-repro/namespace-library-file')), None)
INFO:pipenv.patched.pip._internal.resolution.resolvelib.reporter:Reporter.starting_round(0)
INFO:pipenv.patched.pip._internal.operations.prepare:Processing c:\dev\pipenv-repro\namespace-utils (from 
namespace-library==1.0.0->-r 
C:\Users\Alex\AppData\Local\Temp\pipenv-ul2p7bln-requirements\pipenv-1c4pnx4s-constraints.txt (line 2))
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:Installing backend dependencies: started
INFO:pipenv.patched.pip._internal.cli.spinners:Installing backend dependencies: 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.adding_requirement(SpecifierRequirement('aioh
ttp<4.0.0,>=3.8.3'), EditableCandidate('file:///C:/Dev/pipenv-repro/namespace-library-file'))
INFO:pipenv.patched.pip._internal.operations.prepare:Collecting aiohttp<4.0.0,>=3.8.3 (from 
namespace-library==1.0.0->-r 
C:\Users\Alex\AppData\Local\Temp\pipenv-ul2p7bln-requirements\pipenv-1c4pnx4s-constraints.txt (line 2))
INFO:pipenv.patched.pip._internal.network.download:Using cached aiohttp-3.9.3-cp39-cp39-win_amd64.whl.metadata (7.6 kB)
INFO:pipenv.patched.pip._internal.resolution.resolvelib.reporter:Reporter.adding_requirement(ExplicitRequirement(LinkCa
ndidate('file:///C:/Dev/pipenv-repro/namespace-utils')), 
EditableCandidate('file:///C:/Dev/pipenv-repro/namespace-library-file'))
INFO:pipenv.patched.pip._internal.resolution.resolvelib.reporter:Reporter.pinning(EditableCandidate('file:///C:/Dev/pip
env-repro/namespace-library-file'))
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.adding_requirement(SpecifierRequirement('aios
ignal>=1.1.2'), 
LinkCandidate('https://files.pythonhosted.org/packages/28/03/c81f6d4ea89326b182b2e31e83388734ccae07b18d573e45f7e9216b59
10/aiohttp-3.9.3-cp39-cp39-win_amd64.whl (from https://pypi.org/simple/aiohttp/) (requires-python:>=3.8)'))
INFO:pipenv.patched.pip._internal.operations.prepare:Collecting aiosignal>=1.1.2 (from 
aiohttp<4.0.0,>=3.8.3->namespace-library==1.0.0->-r 
C:\Users\Alex\AppData\Local\Temp\pipenv-ul2p7bln-requirements\pipenv-1c4pnx4s-constraints.txt (line 2))
INFO:pipenv.patched.pip._internal.network.download:Using cached aiosignal-1.3.1-py3-none-any.whl.metadata (4.0 kB)
INFO:pipenv.patched.pip._internal.resolution.resolvelib.reporter:Reporter.adding_requirement(SpecifierRequirement('attr
s>=17.3.0'), 
LinkCandidate('https://files.pythonhosted.org/packages/28/03/c81f6d4ea89326b182b2e31e83388734ccae07b18d573e45f7e9216b59
10/aiohttp-3.9.3-cp39-cp39-win_amd64.whl (from https://pypi.org/simple/aiohttp/) (requires-python:>=3.8)'))
INFO:pipenv.patched.pip._internal.operations.prepare:Collecting attrs>=17.3.0 (from 
aiohttp<4.0.0,>=3.8.3->namespace-library==1.0.0->-r 
C:\Users\Alex\AppData\Local\Temp\pipenv-ul2p7bln-requirements\pipenv-1c4pnx4s-constraints.txt (line 2))
INFO:pipenv.patched.pip._internal.network.download:Using cached attrs-23.2.0-py3-none-any.whl.metadata (9.5 kB)
INFO:pipenv.patched.pip._internal.resolution.resolvelib.reporter:Reporter.adding_requirement(SpecifierRequirement('froz
enlist>=1.1.1'), 
LinkCandidate('https://files.pythonhosted.org/packages/28/03/c81f6d4ea89326b182b2e31e83388734ccae07b18d573e45f7e9216b59
10/aiohttp-3.9.3-cp39-cp39-win_amd64.whl (from https://pypi.org/simple/aiohttp/) (requires-python:>=3.8)'))
INFO:pipenv.patched.pip._internal.operations.prepare:Collecting frozenlist>=1.1.1 (from 
aiohttp<4.0.0,>=3.8.3->namespace-library==1.0.0->-r 
C:\Users\Alex\AppData\Local\Temp\pipenv-ul2p7bln-requirements\pipenv-1c4pnx4s-constraints.txt (line 2))
INFO:pipenv.patched.pip._internal.network.download:Using cached frozenlist-1.4.1-cp39-cp39-win_amd64.whl.metadata (12 
kB)
INFO:pipenv.patched.pip._internal.resolution.resolvelib.reporter:Reporter.adding_requirement(SpecifierRequirement('mult
idict<7.0,>=4.5'), 
LinkCandidate('https://files.pythonhosted.org/packages/28/03/c81f6d4ea89326b182b2e31e83388734ccae07b18d573e45f7e9216b59
10/aiohttp-3.9.3-cp39-cp39-win_amd64.whl (from https://pypi.org/simple/aiohttp/) (requires-python:>=3.8)'))
INFO:pipenv.patched.pip._internal.operations.prepare:Collecting multidict<7.0,>=4.5 (from 
aiohttp<4.0.0,>=3.8.3->namespace-library==1.0.0->-r 
C:\Users\Alex\AppData\Local\Temp\pipenv-ul2p7bln-requirements\pipenv-1c4pnx4s-constraints.txt (line 2))
INFO:pipenv.patched.pip._internal.network.download:Using cached multidict-6.0.5-cp39-cp39-win_amd64.whl.metadata (4.3 
kB)
INFO:pipenv.patched.pip._internal.resolution.resolvelib.reporter:Reporter.adding_requirement(SpecifierRequirement('yarl
<2.0,>=1.0'), 
LinkCandidate('https://files.pythonhosted.org/packages/28/03/c81f6d4ea89326b182b2e31e83388734ccae07b18d573e45f7e9216b59
10/aiohttp-3.9.3-cp39-cp39-win_amd64.whl (from https://pypi.org/simple/aiohttp/) (requires-python:>=3.8)'))
INFO:pipenv.patched.pip._internal.operations.prepare:Collecting yarl<2.0,>=1.0 (from 
aiohttp<4.0.0,>=3.8.3->namespace-library==1.0.0->-r 
C:\Users\Alex\AppData\Local\Temp\pipenv-ul2p7bln-requirements\pipenv-1c4pnx4s-constraints.txt (line 2))
INFO:pipenv.patched.pip._internal.network.download:Using cached yarl-1.9.4-cp39-cp39-win_amd64.whl.metadata (32 kB)
INFO:pipenv.patched.pip._internal.resolution.resolvelib.reporter:Reporter.adding_requirement(SpecifierRequirement('asyn
c-timeout<5.0,>=4.0; python_version < "3.11"'), 
LinkCandidate('https://files.pythonhosted.org/packages/28/03/c81f6d4ea89326b182b2e31e83388734ccae07b18d573e45f7e9216b59
10/aiohttp-3.9.3-cp39-cp39-win_amd64.whl (from https://pypi.org/simple/aiohttp/) (requires-python:>=3.8)'))
INFO:pipenv.patched.pip._internal.operations.prepare:Collecting async-timeout<5.0,>=4.0 (from 
aiohttp<4.0.0,>=3.8.3->namespace-library==1.0.0->-r 
C:\Users\Alex\AppData\Local\Temp\pipenv-ul2p7bln-requirements\pipenv-1c4pnx4s-constraints.txt (line 2))
INFO:pipenv.patched.pip._internal.network.download:Using cached async_timeout-4.0.3-py3-none-any.whl.metadata (4.2 kB)
INFO:pipenv.patched.pip._internal.resolution.resolvelib.reporter:Reporter.pinning(LinkCandidate('https://files.pythonho
sted.org/packages/28/03/c81f6d4ea89326b182b2e31e83388734ccae07b18d573e45f7e9216b5910/aiohttp-3.9.3-cp39-cp39-win_amd64.
whl (from https://pypi.org/simple/aiohttp/) (requires-python:>=3.8)'))
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('file:///C:/Dev/pipenv-
repro/namespace-utils'))
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.adding_requirement(SpecifierRequirement('froz
enlist>=1.1.0'), 
LinkCandidate('https://files.pythonhosted.org/packages/76/ac/a7305707cb852b7e16ff80eaf5692309bde30e2b1100a1fcacdc8f731d
97/aiosignal-1.3.1-py3-none-any.whl (from https://pypi.org/simple/aiosignal/) (requires-python:>=3.7)'))
INFO:pipenv.patched.pip._internal.resolution.resolvelib.reporter:Reporter.pinning(LinkCandidate('https://files.pythonho
sted.org/packages/76/ac/a7305707cb852b7e16ff80eaf5692309bde30e2b1100a1fcacdc8f731d97/aiosignal-1.3.1-py3-none-any.whl 
(from https://pypi.org/simple/aiosignal/) (requires-python:>=3.7)'))
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(LinkCandidate('https://files.pythonho
sted.org/packages/a7/fa/e01228c2938de91d47b307831c62ab9e4001e747789d0b05baf779a6488c/async_timeout-4.0.3-py3-none-any.w
hl (from https://pypi.org/simple/async-timeout/) (requires-python:>=3.7)'))
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.pinning(LinkCandidate('https://files.pythonho
sted.org/packages/e0/44/827b2a91a5816512fcaf3cc4ebc465ccd5d598c45cefa6703fcf4a79018f/attrs-23.2.0-py3-none-any.whl 
(from https://pypi.org/simple/attrs/) (requires-python:>=3.7)'))
INFO:pipenv.patched.pip._internal.resolution.resolvelib.reporter:Reporter.ending_round(5, state)
INFO:pipenv.patched.pip._internal.resolution.resolvelib.reporter:Reporter.starting_round(6)
INFO:pipenv.patched.pip._internal.resolution.resolvelib.reporter:Reporter.pinning(LinkCandidate('https://files.pythonho
sted.org/packages/29/eb/2110c4be2f622e87864e433efd7c4ee6e4f8a59ff2a93c1aa426ee50a8b8/frozenlist-1.4.1-cp39-cp39-win_amd
64.whl (from https://pypi.org/simple/frozenlist/) (requires-python:>=3.8)'))
INFO:pipenv.patched.pip._internal.resolution.resolvelib.reporter:Reporter.ending_round(6, state)
INFO:pipenv.patched.pip._internal.resolution.resolvelib.reporter:Reporter.starting_round(7)
INFO:pipenv.patched.pip._internal.resolution.resolvelib.reporter:Reporter.pinning(LinkCandidate('https://files.pythonho
sted.org/packages/58/a3/4d2c1b4d1859c89d9ce48a4ae410ee019485e324e484b0160afdba8cc42b/multidict-6.0.5-cp39-cp39-win_amd6
4.whl (from https://pypi.org/simple/multidict/) (requires-python:>=3.7)'))
INFO:pipenv.patched.pip._internal.resolution.resolvelib.reporter:Reporter.ending_round(7, state)
INFO:pipenv.patched.pip._internal.resolution.resolvelib.reporter:Reporter.starting_round(8)
INFO:pipenv.patched.pip._internal.resolution.resolvelib.reporter:Reporter.adding_requirement(SpecifierRequirement('idna
>=2.0'), 
LinkCandidate('https://files.pythonhosted.org/packages/a4/e0/5b4376d7361fe09a46dbb206131e8d85b1cb845da03c212a620d5b6b98
d8/yarl-1.9.4-cp39-cp39-win_amd64.whl (from https://pypi.org/simple/yarl/) (requires-python:>=3.7)'))
INFO:pipenv.patched.pip._internal.operations.prepare:Collecting idna>=2.0 (from 
yarl<2.0,>=1.0->aiohttp<4.0.0,>=3.8.3->namespace-library==1.0.0->-r 
C:\Users\Alex\AppData\Local\Temp\pipenv-ul2p7bln-requirements\pipenv-1c4pnx4s-constraints.txt (line 2))
INFO:pipenv.patched.pip._internal.network.download:Using cached idna-3.6-py3-none-any.whl.metadata (9.9 kB)
INFO:pipenv.patched.pip._internal.resolution.resolvelib.reporter:Reporter.adding_requirement(SpecifierRequirement('mult
idict>=4.0'), 
LinkCandidate('https://files.pythonhosted.org/packages/a4/e0/5b4376d7361fe09a46dbb206131e8d85b1cb845da03c212a620d5b6b98
d8/yarl-1.9.4-cp39-cp39-win_amd64.whl (from https://pypi.org/simple/yarl/) (requires-python:>=3.7)'))
INFO:pipenv.patched.pip._internal.resolution.resolvelib.reporter:Reporter.pinning(LinkCandidate('https://files.pythonho
sted.org/packages/a4/e0/5b4376d7361fe09a46dbb206131e8d85b1cb845da03c212a620d5b6b98d8/yarl-1.9.4-cp39-cp39-win_amd64.whl
 (from https://pypi.org/simple/yarl/) (requires-python:>=3.7)'))
INFO:pipenv.patched.pip._internal.resolution.resolvelib.reporter:Reporter.ending_round(8, state)
INFO:pipenv.patched.pip._internal.resolution.resolvelib.reporter:Reporter.starting_round(9)
INFO:pipenv.patched.pip._internal.resolution.resolvelib.reporter:Reporter.pinning(LinkCandidate('https://files.pythonho
sted.org/packages/c2/e7/a82b05cf63a603df6e68d59ae6a68bf5064484a0718ea5033660af4b54a9/idna-3.6-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(9, state)
INFO:pipenv.patched.pip._internal.resolution.resolvelib.reporter:Reporter.starting_round(10)
INFO:pipenv.patched.pip._internal.resolution.resolvelib.reporter:Reporter.ending(State(mapping=OrderedDict([('namespace
-library', EditableCandidate('file:///C:/Dev/pipenv-repro/namespace-library-file')), ('aiohttp', 
LinkCandidate('https://files.pythonhosted.org/packages/28/03/c81f6d4ea89326b182b2e31e83388734ccae07b18d573e45f7e9216b59
10/aiohttp-3.9.3-cp39-cp39-win_amd64.whl (from https://pypi.org/simple/aiohttp/) (requires-python:>=3.8)')), 
('namespace-utils', LinkCandidate('file:///C:/Dev/pipenv-repro/namespace-utils')), ('aiosignal', 
LinkCandidate('https://files.pythonhosted.org/packages/76/ac/a7305707cb852b7e16ff80eaf5692309bde30e2b1100a1fcacdc8f731d
97/aiosignal-1.3.1-py3-none-any.whl (from https://pypi.org/simple/aiosignal/) (requires-python:>=3.7)')), 
('async-timeout', 
LinkCandidate('https://files.pythonhosted.org/packages/a7/fa/e01228c2938de91d47b307831c62ab9e4001e747789d0b05baf779a648
8c/async_timeout-4.0.3-py3-none-any.whl (from https://pypi.org/simple/async-timeout/) (requires-python:>=3.7)')), 
('attrs', 
LinkCandidate('https://files.pythonhosted.org/packages/e0/44/827b2a91a5816512fcaf3cc4ebc465ccd5d598c45cefa6703fcf4a7901
8f/attrs-23.2.0-py3-none-any.whl (from https://pypi.org/simple/attrs/) (requires-python:>=3.7)')), ('frozenlist', 
LinkCandidate('https://files.pythonhosted.org/packages/29/eb/2110c4be2f622e87864e433efd7c4ee6e4f8a59ff2a93c1aa426ee50a8
b8/frozenlist-1.4.1-cp39-cp39-win_amd64.whl (from https://pypi.org/simple/frozenlist/) (requires-python:>=3.8)')), 
('multidict', 
LinkCandidate('https://files.pythonhosted.org/packages/58/a3/4d2c1b4d1859c89d9ce48a4ae410ee019485e324e484b0160afdba8cc4
2b/multidict-6.0.5-cp39-cp39-win_amd64.whl (from https://pypi.org/simple/multidict/) (requires-python:>=3.7)')), 
('yarl', 
LinkCandidate('https://files.pythonhosted.org/packages/a4/e0/5b4376d7361fe09a46dbb206131e8d85b1cb845da03c212a620d5b6b98
d8/yarl-1.9.4-cp39-cp39-win_amd64.whl (from https://pypi.org/simple/yarl/) (requires-python:>=3.7)')), ('idna', 
LinkCandidate('https://files.pythonhosted.org/packages/c2/e7/a82b05cf63a603df6e68d59ae6a68bf5064484a0718ea5033660af4b54
a9/idna-3.6-py3-none-any.whl (from https://pypi.org/simple/idna/) (requires-python:>=3.5)'))]), 
criteria={'namespace-library': 
Criterion((ExplicitRequirement(EditableCandidate('file:///C:/Dev/pipenv-repro/namespace-library-file')), via=None)), 
'aiohttp': Criterion((SpecifierRequirement('aiohttp<4.0.0,>=3.8.3'), 
via=EditableCandidate('file:///C:/Dev/pipenv-repro/namespace-library-file'))), 'namespace-utils': 
Criterion((ExplicitRequirement(LinkCandidate('file:///C:/Dev/pipenv-repro/namespace-utils')), 
via=EditableCandidate('file:///C:/Dev/pipenv-repro/namespace-library-file'))), 'aiosignal': 
Criterion((SpecifierRequirement('aiosignal>=1.1.2'), 
via=LinkCandidate('https://files.pythonhosted.org/packages/28/03/c81f6d4ea89326b182b2e31e83388734ccae07b18d573e45f7e921
6b5910/aiohttp-3.9.3-cp39-cp39-win_amd64.whl (from https://pypi.org/simple/aiohttp/) (requires-python:>=3.8)'))), 
'attrs': Criterion((SpecifierRequirement('attrs>=17.3.0'), 
via=LinkCandidate('https://files.pythonhosted.org/packages/28/03/c81f6d4ea89326b182b2e31e83388734ccae07b18d573e45f7e921
6b5910/aiohttp-3.9.3-cp39-cp39-win_amd64.whl (from https://pypi.org/simple/aiohttp/) (requires-python:>=3.8)'))), 
'frozenlist': Criterion((SpecifierRequirement('frozenlist>=1.1.1'), 
via=LinkCandidate('https://files.pythonhosted.org/packages/28/03/c81f6d4ea89326b182b2e31e83388734ccae07b18d573e45f7e921
6b5910/aiohttp-3.9.3-cp39-cp39-win_amd64.whl (from https://pypi.org/simple/aiohttp/) (requires-python:>=3.8)')), 
(SpecifierRequirement('frozenlist>=1.1.0'), 
via=LinkCandidate('https://files.pythonhosted.org/packages/76/ac/a7305707cb852b7e16ff80eaf5692309bde30e2b1100a1fcacdc8f
731d97/aiosignal-1.3.1-py3-none-any.whl (from https://pypi.org/simple/aiosignal/) (requires-python:>=3.7)'))), 
'multidict': Criterion((SpecifierRequirement('multidict<7.0,>=4.5'), 
via=LinkCandidate('https://files.pythonhosted.org/packages/28/03/c81f6d4ea89326b182b2e31e83388734ccae07b18d573e45f7e921
6b5910/aiohttp-3.9.3-cp39-cp39-win_amd64.whl (from https://pypi.org/simple/aiohttp/) (requires-python:>=3.8)')), 
(SpecifierRequirement('multidict>=4.0'), 
via=LinkCandidate('https://files.pythonhosted.org/packages/a4/e0/5b4376d7361fe09a46dbb206131e8d85b1cb845da03c212a620d5b
6b98d8/yarl-1.9.4-cp39-cp39-win_amd64.whl (from https://pypi.org/simple/yarl/) (requires-python:>=3.7)'))), 'yarl': 
Criterion((SpecifierRequirement('yarl<2.0,>=1.0'), 
via=LinkCandidate('https://files.pythonhosted.org/packages/28/03/c81f6d4ea89326b182b2e31e83388734ccae07b18d573e45f7e921
6b5910/aiohttp-3.9.3-cp39-cp39-win_amd64.whl (from https://pypi.org/simple/aiohttp/) (requires-python:>=3.8)'))), 
'async-timeout': Criterion((SpecifierRequirement('async-timeout<5.0,>=4.0; python_version < "3.11"'), 
via=LinkCandidate('https://files.pythonhosted.org/packages/28/03/c81f6d4ea89326b182b2e31e83388734ccae07b18d573e45f7e921
6b5910/aiohttp-3.9.3-cp39-cp39-win_amd64.whl (from https://pypi.org/simple/aiohttp/) (requires-python:>=3.8)'))), 
'idna': Criterion((SpecifierRequirement('idna>=2.0'), 
via=LinkCandidate('https://files.pythonhosted.org/packages/a4/e0/5b4376d7361fe09a46dbb206131e8d85b1cb845da03c212a620d5b
6b98d8/yarl-1.9.4-cp39-cp39-win_amd64.whl (from https://pypi.org/simple/yarl/) (requires-python:>=3.7)')))}, 
backtrack_causes=[]))
INFO:pipenv.patched.pip._internal.network.download:Using cached aiohttp-3.9.3-cp39-cp39-win_amd64.whl (366 kB)
INFO:pipenv.patched.pip._internal.network.download:Using cached aiosignal-1.3.1-py3-none-any.whl (7.6 kB)
INFO:pipenv.patched.pip._internal.network.download:Using cached async_timeout-4.0.3-py3-none-any.whl (5.7 kB)
INFO:pipenv.patched.pip._internal.network.download:Using cached attrs-23.2.0-py3-none-any.whl (60 kB)
INFO:pipenv.patched.pip._internal.network.download:Using cached frozenlist-1.4.1-cp39-cp39-win_amd64.whl (50 kB)
INFO:pipenv.patched.pip._internal.network.download:Using cached multidict-6.0.5-cp39-cp39-win_amd64.whl (28 kB)
INFO:pipenv.patched.pip._internal.network.download:Using cached yarl-1.9.4-cp39-cp39-win_amd64.whl (76 kB)
INFO:pipenv.patched.pip._internal.network.download:Using cached idna-3.6-py3-none-any.whl (61 kB)
Success!

Steps to replicate

I have created a repository that has a reproduction case.

  1. Clone https://github.com/AlexandreArpin/pipenv-repro
  2. Go to my-app-file-dep subdirectory
  3. Run pipenv lock

Provide the steps to replicate (which usually at least includes the commands and the Pipfile).


Pipenv version: '2023.12.1'

Pipenv location: 'C:\\Users\\Alex\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\pipenv'

Python location: 'C:\\Users\\Alex\\AppData\\Local\\Programs\\Python\\Python310\\python.exe'

OS Name: 'nt'

User pip version: '23.3.2'

user Python installations found:

PEP 508 Information:

{'implementation_name': 'cpython',
 'implementation_version': '3.10.9',
 'os_name': 'nt',
 'platform_machine': 'AMD64',
 'platform_python_implementation': 'CPython',
 'platform_release': '10',
 'platform_system': 'Windows',
 'platform_version': '10.0.22631',
 'python_full_version': '3.10.9',
 'python_version': '3.10',
 'sys_platform': 'win32'}
@AlexandreArpin
Copy link
Contributor Author

I tried playing with some of the options available (pyproject.toml vs setup.py, absolute paths, editable or not, etc...) and no variables seems to change the outcome.

I imagine it's sort of strange to have a file sub-dependency, we're in the midst of breaking a monolith into multiple packages and wanted to use that as an "intermediary" steps.

pip install works very well but we'd like to continue leveraging the pipenv toolchain.

With sufficient pointers/help, I could even try to fix this issue as my first contribution but I'd need to be pointed into the right functions/modules to play around with.

@matteius matteius added Type: Possible Bug This issue describes a possible bug in pipenv. triage labels Apr 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage Type: Possible Bug This issue describes a possible bug in pipenv.
Projects
None yet
Development

No branches or pull requests

2 participants