quaint-piano-62770
03/13/2025, 7:05 AMpants generate-lockfiles where it works for some members on the team but not for others. When it fails the stack trace looks like this:
Traceback (most recent call last):
File "/Users/plarotta/.cache/pants/named_caches/pex_root/installed_wheels/0/1bcaae0ad8c91ea651d4a15351ebecaafcec98cb4e9aa42a63c19d29c7963188/pex-2.33.2-py2.py3-none-any.whl/pex/result.py", line 105, in catch
return func(*args, **kwargs)
File "/Users/plarotta/.cache/pants/named_caches/pex_root/installed_wheels/0/1bcaae0ad8c91ea651d4a15351ebecaafcec98cb4e9aa42a63c19d29c7963188/pex-2.33.2-py2.py3-none-any.whl/pex/cli/command.py", line 110, in run
return subcommand_func(self)
File "/Users/plarotta/.cache/pants/named_caches/pex_root/installed_wheels/0/1bcaae0ad8c91ea651d4a15351ebecaafcec98cb4e9aa42a63c19d29c7963188/pex-2.33.2-py2.py3-none-any.whl/pex/cli/command.py", line 102, in _check_no_passthrough_args_and_run
return subcommand_func(self)
File "/Users/plarotta/.cache/pants/named_caches/pex_root/installed_wheels/0/1bcaae0ad8c91ea651d4a15351ebecaafcec98cb4e9aa42a63c19d29c7963188/pex-2.33.2-py2.py3-none-any.whl/pex/cli/commands/lock.py", line 1057, in _create
create(
File "/Users/plarotta/.cache/pants/named_caches/pex_root/installed_wheels/0/1bcaae0ad8c91ea651d4a15351ebecaafcec98cb4e9aa42a63c19d29c7963188/pex-2.33.2-py2.py3-none-any.whl/pex/resolve/lockfile/create.py", line 443, in create
create_lock_download_manager = CreateLockDownloadManager.create(
File "/Users/plarotta/.cache/pants/named_caches/pex_root/installed_wheels/0/1bcaae0ad8c91ea651d4a15351ebecaafcec98cb4e9aa42a63c19d29c7963188/pex-2.33.2-py2.py3-none-any.whl/pex/resolve/lockfile/create.py", line 101, in create
artifact_and_project_name = source_artifacts_by_pin[pin]
KeyError: Pin(project_name=ProjectName(raw='dm_allennlp_models', validated=False, normalized='dm-allennlp-models'), version=Version(raw='2.10.3', normalized='2.10.3'))
Pin(project_name=ProjectName(raw='dm_allennlp_models', validated=False, normalized='dm-allennlp-models'), version=Version(raw='2.10.3', normalized='2.10.3'))
More details in the thread.quaint-piano-62770
03/13/2025, 7:09 AMdm-allennlp-models package is a package available in our internal nexus repository. The nexus repo is accessed with credentials. The package can be installed directly if they do pip install .... So its not something with their access or with the connection.
2. We've tried a bunch of different versions of pants (2.22 - 2.24), versions of pex (default and latest 2.33) and pip (v23.x to v25.0.1) but we have the same issue in all cases.happy-kitchen-89482
03/13/2025, 4:15 PMhappy-kitchen-89482
03/13/2025, 4:18 PMquaint-piano-62770
03/13/2025, 4:18 PMquaint-piano-62770
03/13/2025, 4:20 PMhappy-kitchen-89482
03/13/2025, 4:25 PM--keep-sandboxes=on_failure and it’ll spit out the location of the sandbox that ran the failing pex commandhappy-kitchen-89482
03/13/2025, 4:26 PM./__run.sh in that sandboxhappy-kitchen-89482
03/13/2025, 4:27 PM-vvvvvvvv to that pex command to get very verbose outputhappy-kitchen-89482
03/13/2025, 4:27 PMhappy-kitchen-89482
03/13/2025, 4:27 PMhappy-kitchen-89482
03/13/2025, 4:28 PMquaint-piano-62770
03/13/2025, 4:28 PMpants --pex-verbosity=9 --print-stacktrace -ldebug --keep-sandboxes=on_failure generate-lockfiles
is this good^?happy-kitchen-89482
03/13/2025, 4:31 PMquaint-piano-62770
03/13/2025, 4:50 PM__run.sh file. I am guessing further investigation will require them to run commands from this file in isolation to understand the issue?happy-kitchen-89482
03/13/2025, 6:03 PMhappy-kitchen-89482
03/13/2025, 6:08 PMhappy-kitchen-89482
03/13/2025, 6:11 PMdm-allennlp-models distribution on nexus? Who builds those?happy-kitchen-89482
03/13/2025, 6:11 PMquaint-piano-62770
03/13/2025, 6:26 PMdm_allennlp_models-2.10.3-py3-none-any.whl. Because these packages don't change much they are built and published manually from a separate repo by someone on the team.quaint-piano-62770
03/13/2025, 6:27 PMquaint-piano-62770
03/14/2025, 7:38 AM__run.sh yet but will share as soon as my colleagues respond.quaint-piano-62770
03/14/2025, 8:10 AM__run.sh with some env variables removed.happy-kitchen-89482
03/14/2025, 9:15 PMDjango) so if it does it’s a bug. Nonetheless, could you change the filename on the nexus server to the canonical dm-allennlp-models-2.10.3-py3-none-any.whl to see if that changes anything?quaint-piano-62770
03/15/2025, 6:21 AMhappy-kitchen-89482
03/15/2025, 9:16 PM