bitter-ability-32190
05/09/2023, 3:01 PMurllib
issue that's come up twice (it doesn't help I am also getting bitten)
https://pantsbuild.slack.com/archives/C046T6T9U/p1683574114661669
https://pantsbuild.slack.com/archives/C046T6T9U/p1683215047758389
are existing discussions in #generalbitter-ability-32190
05/09/2023, 3:04 PMhumbug
is the one pulling in requests
(pulling in urllib3
.
Alternatively we can switch humbug
to be provided in rule-code, and not part of the Pantsbuild environment (similar to pex
, I believe)busy-vase-39202
05/09/2023, 3:10 PMhumbug
. We originally expected it would help us provide better tech support, but it hasn't really panned out for that. If we could substitute in some other telemetry tool, that could be worthwhile. But given that no major value being is being returned to the project and it has unfortunately become a blocker for some users, I think it's time to take humbug out of people's way one way or another.bitter-ability-32190
05/09/2023, 3:35 PMbitter-ability-32190
05/09/2023, 3:53 PMhundreds-father-404
05/09/2023, 3:58 PMbitter-ability-32190
05/09/2023, 4:00 PMbitter-ability-32190
05/09/2023, 4:28 PMbusy-vase-39202
05/09/2023, 5:03 PMenough-analyst-54434
05/09/2023, 5:08 PMjsirois@Gill-Windows:~ $ echo "urllib3<2" > foo.txt
jsirois@Gill-Windows:~ $ rm -r ~/.cache/nce/
jsirois@Gill-Windows:~ $ PIP_CONSTRAINT=foo.txt PANTS_VERSION=2.16.0rc1 pants
Bootstrapping Pants 2.16.0rc1 using cpython 3.9.15
Installing pantsbuild.pants==2.16.0rc1 into a virtual environment at /home/jsirois/.cache/nce/6621291ed4120fa45607b367abf7786ce496f389f27240712a63c31f1c438c21/bindings/venvs/2.16.0rc1
New virtual environment successfully created at /home/jsirois/.cache/nce/6621291ed4120fa45607b367abf7786ce496f389f27240712a63c31f1c438c21/bindings/venvs/2.16.0rc1.
No goals specified.
Use `pants help` to get help.
Use `pants help goals` to list goals.
jsirois@Gill-Windows:~ $ ls -l /home/jsirois/.cache/nce/6621291ed4120fa45607b367abf7786ce496f389f27240712a63c31f1c438c21/bindings/venvs/2.16.0rc1/lib/python3.9/site-packages/ | grep urllib3
drwxr-xr-x 6 jsirois jsirois 4096 May 9 10:08 urllib3
drwxr-xr-x 2 jsirois jsirois 4096 May 9 10:08 urllib3-1.26.15.dist-info
bitter-ability-32190
05/09/2023, 5:10 PMplugins
option?enough-analyst-54434
05/09/2023, 5:11 PMbitter-ability-32190
05/09/2023, 5:13 PMenough-analyst-54434
05/09/2023, 5:14 PMjsirois@Gill-Windows:~ $ rm -r ~/.cache/nce/
jsirois@Gill-Windows:~ $ echo "PIP_CONSTRAINT=foo.txt" > .env
jsirois@Gill-Windows:~ $ PANTS_VERSION=2.16.0rc1 pants
Bootstrapping Pants 2.16.0rc1 using cpython 3.9.15
Installing pantsbuild.pants==2.16.0rc1 into a virtual environment at /home/jsirois/.cache/nce/6621291ed4120fa45607b367abf7786ce496f389f27240712a63c31f1c438c21/bindings/venvs/2.16.0rc1
New virtual environment successfully created at /home/jsirois/.cache/nce/6621291ed4120fa45607b367abf7786ce496f389f27240712a63c31f1c438c21/bindings/venvs/2.16.0rc1.
No goals specified.
Use `pants help` to get help.
Use `pants help goals` to list goals.
jsirois@Gill-Windows:~ $ ls -l /home/jsirois/.cache/nce/6621291ed4120fa45607b367abf7786ce496f389f27240712a63c31f1c438c21/bindings/venvs/2.16.0rc1/lib/python3.9/site-packages/ | grep urllib3
drwxr-xr-x 6 jsirois jsirois 4096 May 9 10:14 urllib3
drwxr-xr-x 2 jsirois jsirois 4096 May 9 10:14 urllib3-1.26.15.dist-info
So, if that's useful - there you go.bitter-ability-32190
05/09/2023, 5:25 PMpants help
as a workaround. Unfortunately PANTS_SOURCE
is afflicted, but I think that's going to be the case even with humbug
gone, so separate issueenough-analyst-54434
05/09/2023, 5:31 PMPANTS_SOURCE
, which just runs the Pants repo ./pants
script, uses pip install; so the PIP_*
env var trick should still work.happy-kitchen-89482
05/09/2023, 5:33 PMbroad-processor-92400
05/09/2023, 6:22 PMurllib3<2
to pants’ requirements work (potentially with BUILD file adjustments to have it come through)? If it does, might that be lower risk/lower impact?enough-analyst-54434
05/09/2023, 6:33 PMPIP_*
trick is a retroactive workaround for install of a pantsbuild.pants
distribution without that.broad-processor-92400
05/09/2023, 7:21 PMenough-analyst-54434
05/09/2023, 8:35 PMbroad-processor-92400
05/09/2023, 9:40 PMbitter-ability-32190
05/09/2023, 9:43 PMbroad-processor-92400
05/10/2023, 9:44 PMbitter-ability-32190
05/10/2023, 9:45 PMbitter-ability-32190
05/10/2023, 9:45 PMbroad-processor-92400
05/11/2023, 1:09 AM