helpful-rocket-63313
10/23/2023, 9:28 PMkeyrings
and keyrings.google-artifactregistry-auth
I see there is an issue on adding support for keyring https://github.com/pantsbuild/pants/issues/14928 but no recent activity.curved-television-6568
10/23/2023, 9:40 PMhelpful-rocket-63313
10/23/2023, 11:27 PMwhich keyring
/opt/homebrew/Caskroom/miniforge/base/bin/keyring
2. Adding that path in pants.toml
[subprocess-environment]
env_vars.add = [
"PATH=$PATH:/opt/homebrew/Caskroom/miniforge/base/bin"
]
3.
(base) aditya@Adityas-MacBook-Pro-2 zippin_tech % pants generate-lockfiles --resolve=temp
19:23:54.30 [INFO] Initializing scheduler...
19:24:00.38 [INFO] Scheduler initialized.
19:24:00.44 [WARN] DEPRECATED: option 'extra_type_stubs' in scope 'mypy' is scheduled to be removed in version 2.18.0dev0.
Extra type stubs are now installed from a named resolve, as described at <https://www.pantsbuild.org/v2.16/docs/python-lockfiles>.
19:24:00.55 [ERROR] 1 Exception encountered:
Engine traceback:
in `generate-lockfiles` goal
TypeError: dict() got multiple values for keyword argument 'PATH'
So it seems like I am doing something wrong here. Any suggestion ?helpful-rocket-63313
10/23/2023, 11:28 PMkeyring
should be explicitly installed on the host(before any pants
command like generate-lockfiles
), is that right ?curved-television-6568
10/23/2023, 11:50 PMkeyring
would need to be managed out of band.
Also, ouch: https://github.com/pantsbuild/pants/issues/19157curved-television-6568
10/23/2023, 11:53 PMPATH
is "leaked" in this case.. so if you try and set PATH outside of pants, does that work?happy-kitchen-89482
10/24/2023, 3:09 AMhelpful-rocket-63313
10/24/2023, 3:22 PMhelpful-rocket-63313
10/24/2023, 3:22 PMpATH
explicitly, i made a local patch and it works, i am able to set PATH
, will submit a PR. However turns out PATH
is leaked, and keyring
is already in path, still it cannot find the private packages.
which keyring
/opt/homebrew/Caskroom/miniforge/base/bin/keyring
If i install manually, it works
(base) aditya@Adityas-MacBook-Pro-2 zipzap_tech % pip install --index-url <https://us-central1-python.pkg.dev/zipzapdeveloper/zipzap-pypi/simple/> zipzaptools-edge-media-client
Looking in indexes: <https://us-central1-python.pkg.dev/zipzapdeveloper/zipzap-pypi/simple/>
Collecting zipzaptools-edge-media-client
Downloading <https://us-central1-python.pkg.dev/zipzapdeveloper/zipzap-pypi/zipzaptools-edge-media-client/zipzaptools_edge_media_client-1.1.6-py2.py3-none-any.whl> (26 kB)
Requirement already satisfied: pydantic<2.0.0,>=1.9.0 in /opt/homebrew/Caskroom/miniforge/base/lib/python3.9/site-packages (from zipzaptools-edge-media-client) (1.9.0)
Downloading <https://us-central1-python.pkg.dev/zipzapdeveloper/zipzap-pypi/zipzaptools-edge-media-client/zipzaptools_edge_media_client-1.1.5-py2.py3-none-any.whl> (26 kB)
however with pants generate-lockfiles
it isn't working , see that keyring
path is already. a part of path set by pants
"--python-path", "/Users/aditya/.pyenv/shims:/Users/aditya/.pyenv/bin:/opt/homebrew/Caskroom/miniforge/base/bin:
helpful-rocket-63313
10/24/2023, 4:42 PMhelpful-rocket-63313
10/24/2023, 8:52 PMPATH
is leaked. how do you think i can debug this ?curved-television-6568
10/24/2023, 9:17 PMhelpful-rocket-63313
10/25/2023, 8:50 PMkeyring
was anyways accessible, so the problem is somewhere else.curved-television-6568
10/25/2023, 8:58 PM