calm-ambulance-65371
06/01/2022, 4:18 PMpackaging~=20.9
, which conflicts with pants own dependency on packaging
(or that's what looks like is happening). Is there a way to override the version of a 3rd-party package in the python_requirements
target? I basically want to tell Pants/Pex/Pip to ignore the transitive dependency of one of my packages so it will accept packaging>=20.9
(possible it will break, but I'm skeptical)calm-ambulance-65371
06/01/2022, 4:19 PMrequirements
and specifying the packaging
version constraint that I need, but I'm not sure if it'll workenough-analyst-54434
06/01/2022, 4:24 PMcalm-ambulance-65371
06/01/2022, 4:24 PMcalm-ambulance-65371
06/01/2022, 4:25 PMenough-analyst-54434
06/01/2022, 4:26 PMcalm-ambulance-65371
06/01/2022, 4:26 PMenough-analyst-54434
06/01/2022, 4:26 PMcalm-ambulance-65371
06/01/2022, 4:27 PMinterpreter_constraints = [">=3.8.*,<3.11"]
enough-analyst-54434
06/01/2022, 4:27 PMenough-analyst-54434
06/01/2022, 4:28 PMcalm-ambulance-65371
06/01/2022, 4:28 PMcalm-ambulance-65371
06/01/2022, 4:28 PMcalm-ambulance-65371
06/01/2022, 4:29 PMenough-analyst-54434
06/01/2022, 4:29 PM==3.8.*
now, and ==3.10.*
when you upgrade.enough-analyst-54434
06/01/2022, 4:29 PMcalm-ambulance-65371
06/01/2022, 4:29 PMenough-analyst-54434
06/01/2022, 4:30 PMcalm-ambulance-65371
06/01/2022, 4:30 PMcalm-ambulance-65371
06/01/2022, 4:30 PMenough-analyst-54434
06/01/2022, 4:31 PMenough-analyst-54434
06/01/2022, 4:32 PMthat's what it seems, the lack of debug logs from pex is... frustratingIf you can pitch in, I'm always happy for help hacking on Pex!
witty-crayon-22786
06/01/2022, 4:39 PMwitty-crayon-22786
06/01/2022, 4:41 PMcalm-ambulance-65371
06/01/2022, 4:41 PMcalm-ambulance-65371
06/01/2022, 4:41 PMwitty-crayon-22786
06/01/2022, 4:41 PMcalm-ambulance-65371
06/01/2022, 4:43 PMsqlalchemy-oso
to the requirements.txt and re-generate the lockfile, it sits and spins for... idk how long yet. I've encountered similar situations before where it spins for 2-3 hours (with no output) and then spits out 3000 lines of "attempted downloading package==version, but could not resolve constraints"calm-ambulance-65371
06/01/2022, 4:44 PMpackaging
when I reference my requirements.lock, and it's in `pantsbuild.pants`:
"project_name": "pantsbuild-pants",
"requires_dists": [
"PyYAML<7.0,>=6.0",
"ansicolors==1.1.8",
"fasteners==0.16.3",
"humbug==0.2.7",
"ijson==3.1.4",
"packaging==21.3",
"pex==2.1.84",
"psutil==5.9.0",
"python-lsp-jsonrpc==1.0.0",
"setproctitle==1.2.2",
"setuptools<58.0,>=56.0.0",
"toml==0.10.2",
"types-PyYAML==6.0.3",
"types-setuptools==57.4.7",
"types-toml==0.10.3",
"typing-extensions==4.0.1"
],
"requires_python": null,
"version": "2.11.1rc0"
},
witty-crayon-22786
06/01/2022, 4:44 PMcalm-ambulance-65371
06/01/2022, 4:45 PMcalm-ambulance-65371
06/01/2022, 4:45 PMwitty-crayon-22786
06/01/2022, 4:46 PMlockfile_generator = pex
?calm-ambulance-65371
06/01/2022, 4:47 PMwitty-crayon-22786
06/01/2022, 4:49 PM./pants -ldebug …
, and then look for the last/long-running line matching:
spawned local process as
…which will include the full arguments to PEXcalm-ambulance-65371
06/01/2022, 5:11 PM./pants -ldebug generate-lockfiles
. The output is identical whether you specify -ldebug
or notwitty-crayon-22786
06/01/2022, 5:11 PMspawned local process as
lines? if not, try ./pants --no-pantsd -ldebug
calm-ambulance-65371
06/01/2022, 5:12 PM—no-pantsd
when I get back to my deskwitty-crayon-22786
06/01/2022, 5:13 PM-ldebug
flag is taking effect (if not, it would be a bug)calm-ambulance-65371
06/01/2022, 6:06 PMcalm-ambulance-65371
06/01/2022, 6:09 PMwitty-crayon-22786
06/01/2022, 6:12 PM--no-pantsd
…?calm-ambulance-65371
06/01/2022, 6:12 PM2022-06-01T09:29:45,657 The conflict is caused by:
2022-06-01T09:29:45,657 sqlalchemy-oso 0.26.0 depends on packaging~=20.9
2022-06-01T09:29:45,657 pantsbuild-pants 2.11.1rc2 depends on packaging==21.3
2022-06-01T09:29:45,657 sqlalchemy-oso 0.26.0 depends on packaging~=20.9
2022-06-01T09:29:45,657 pantsbuild-pants 2.11.1rc1 depends on packaging==21.3
2022-06-01T09:29:45,657 sqlalchemy-oso 0.26.0 depends on packaging~=20.9
2022-06-01T09:29:45,657 pantsbuild-pants 2.11.1rc0 depends on packaging==21.3
2022-06-01T09:29:45,657 sqlalchemy-oso 0.26.0 depends on packaging~=20.9
2022-06-01T09:29:45,657 pantsbuild-pants 2.11.0 depends on packaging==21.3
2022-06-01T09:29:45,657 sqlalchemy-oso 0.26.0 depends on packaging~=20.9
2022-06-01T09:29:45,657 pantsbuild-pants 2.11.0rc6 depends on packaging==21.3
2022-06-01T09:29:45,657 sqlalchemy-oso 0.26.0 depends on packaging~=20.9
2022-06-01T09:29:45,657 pantsbuild-pants 2.11.0rc5 depends on packaging==21.3
2022-06-01T09:29:45,657 sqlalchemy-oso 0.26.0 depends on packaging~=20.9
2022-06-01T09:29:45,657 pantsbuild-pants 2.11.0rc4 depends on packaging==21.3
2022-06-01T09:29:45,657 sqlalchemy-oso 0.26.0 depends on packaging~=20.9
2022-06-01T09:29:45,657 pantsbuild-pants 2.11.0rc3 depends on packaging==21.3
2022-06-01T09:29:45,657 sqlalchemy-oso 0.26.0 depends on packaging~=20.9
2022-06-01T09:29:45,657 pantsbuild-pants 2.11.0rc2 depends on packaging==21.3
2022-06-01T09:29:45,657 sqlalchemy-oso 0.26.0 depends on packaging~=20.9
2022-06-01T09:29:45,657 pantsbuild-pants 2.11.0rc1 depends on packaging==21.3
2022-06-01T09:29:45,657 sqlalchemy-oso 0.26.0 depends on packaging~=20.9
2022-06-01T09:29:45,657 pantsbuild-pants 2.11.0rc0 depends on packaging==21.3
2022-06-01T09:29:45,657
2022-06-01T09:29:45,657 To fix this you could try to:
2022-06-01T09:29:45,657 1. loosen the range of package versions you've specified
2022-06-01T09:29:45,657 2. remove package versions to allow pip attempt to solve the dependency conflict
2022-06-01T09:29:45,657 ERROR: ResolutionImpossible: for help visit <https://pip.pypa.io/en/latest/user_guide/#fixing-conflicting-dependencies>
2022-06-01T09:29:45,658 Exception information:
2022-06-01T09:29:45,658 Traceback (most recent call last):
2022-06-01T09:29:45,658 File "/home/noah/.cache/pants/named_caches/pex_root/venvs/s/93b232a7/venv/lib/python3.8/site-packages/pip/_internal/resolution/resolvelib/resolver.py", line 121, in>
2022-06-01T09:29:45,658 self._result = resolver.resolve(
2022-06-01T09:29:45,658 File "/home/noah/.cache/pants/named_caches/pex_root/venvs/s/93b232a7/venv/lib/python3.8/site-packages/pip/_vendor/resolvelib/resolvers.py", line 453, in resolve
2022-06-01T09:29:45,658 state = resolution.resolve(requirements, max_rounds=max_rounds)
2022-06-01T09:29:45,658 File "/home/noah/.cache/pants/named_caches/pex_root/venvs/s/93b232a7/venv/lib/python3.8/site-packages/pip/_vendor/resolvelib/resolvers.py", line 357, in resolve
2022-06-01T09:29:45,658 raise ResolutionImpossible(causes)
2022-06-01T09:29:45,658 pip._vendor.resolvelib.resolvers.ResolutionImpossible: [RequirementInformation(requirement=SpecifierRequirement('packaging~=20.9'), parent=LinkCandidate('<https://file>>
2022-06-01T09:29:45,658
2022-06-01T09:29:45,658 The above exception was the direct cause of the following exception:
witty-crayon-22786
06/01/2022, 6:14 PMspawned local process as
line: https://pantsbuild.slack.com/archives/C01CQHVDMMW/p1654107127517079?thread_ts=1654100310.384129&cid=C01CQHVDMMWcalm-ambulance-65371
06/01/2022, 6:15 PMwitty-crayon-22786
06/01/2022, 6:16 PMcalm-ambulance-65371
06/01/2022, 6:16 PMwitty-crayon-22786
06/01/2022, 6:17 PM-ldebug --no-dynamic-ui --no-pantsd
?calm-ambulance-65371
06/01/2022, 6:17 PMwitty-crayon-22786
06/01/2022, 6:18 PMcalm-ambulance-65371
06/01/2022, 6:18 PMcalm-ambulance-65371
06/01/2022, 6:18 PMwitty-crayon-22786
06/01/2022, 6:18 PMpants
script somehow?calm-ambulance-65371
06/01/2022, 6:19 PMwitty-crayon-22786
06/01/2022, 6:19 PMpantsd
processes and try again?witty-crayon-22786
06/01/2022, 6:20 PMpantsd
processes?”calm-ambulance-65371
06/01/2022, 6:21 PMcurl -L -O <https://static.pantsbuild.org/setup/pants> && chmod +x ./pants
and retried and that seemed to fix it. It may have been from the 2.2 version?calm-ambulance-65371
06/01/2022, 6:21 PMcalm-ambulance-65371
06/01/2022, 6:25 PMgenerate-lockfiles
and I found the pip.log
and am tailing itwitty-crayon-22786
06/01/2022, 6:32 PMwitty-crayon-22786
06/01/2022, 6:32 PMspawned local process as
line from the hanging process as you’re able to share on a PEX ticketcalm-ambulance-65371
06/01/2022, 6:36 PMcalm-ambulance-65371
06/01/2022, 6:37 PMcalm-ambulance-65371
06/01/2022, 6:38 PMpantsbuild.pants
, though I'll have exact log messages soonwitty-crayon-22786
06/01/2022, 6:45 PMwitty-crayon-22786
06/01/2022, 6:46 PMwitty-crayon-22786
06/01/2022, 6:46 PMcalm-ambulance-65371
06/01/2022, 6:47 PMsqlalchemy-oso
and pantsbuild.pants
common dep on differing versions of packaging
witty-crayon-22786
06/01/2022, 6:49 PMcalm-ambulance-65371
06/01/2022, 6:56 PMsqlalchemy-oso
, so I really just need a way to override/ignore that packages dependenciescalm-ambulance-65371
06/01/2022, 6:59 PMwitty-crayon-22786
06/01/2022, 6:59 PMcalm-ambulance-65371
06/01/2022, 7:00 PMcalm-ambulance-65371
06/01/2022, 7:00 PMcalm-ambulance-65371
06/01/2022, 7:00 PMwitty-crayon-22786
06/01/2022, 7:01 PMwitty-crayon-22786
06/01/2022, 7:01 PMcalm-ambulance-65371
06/01/2022, 7:02 PMcalm-ambulance-65371
06/01/2022, 7:05 PMpants_requirements()
is in the module for our plugins, I'm guessing that's where the dep on pantsbuild.pants
is coming fromwitty-crayon-22786
06/01/2022, 7:09 PMwitty-crayon-22786
06/01/2022, 7:10 PMcalm-ambulance-65371
06/01/2022, 7:13 PMwitty-crayon-22786
06/01/2022, 7:17 PMwitty-crayon-22786
06/01/2022, 7:17 PMwitty-crayon-22786
06/01/2022, 10:55 PM