freezing-vegetable-92896
11/02/2021, 9:50 PMattrs
in our internal artifactory
. My best guess is that our artifactory is returning an empty list or an error that is then causing pants to fail. Is there a better way I should be handling this? I'm currently adding things with [python-repos].indexes.add
happy-kitchen-89482
11/02/2021, 9:56 PMhappy-kitchen-89482
11/02/2021, 9:56 PMfreezing-vegetable-92896
11/02/2021, 10:01 PM./pants test :: eopt-core/git/pants !
14:47:51.22 [INFO] Initializing scheduler...
14:47:51.91 [INFO] Scheduler initialized.
14:48:12.78 [INFO] Completed: Building pytest.pex from pytest_default_lockfile.txt
<snipped several hopefully unrelated warnings>
14:48:13.99 [ERROR] Exception caught: (pants.engine.internals.scheduler.ExecutionError)
File "/Users/tdimiduk/.cache/pants/setup/bootstrap-Darwin-x86_64/pants.SCHkFQ/install/lib/python3.9/site-packages/pants/bin/local_pants_runner.py", line 236, in _run_inner
return self._perform_run(goals)
File "/Users/tdimiduk/.cache/pants/setup/bootstrap-Darwin-x86_64/pants.SCHkFQ/install/lib/python3.9/site-packages/pants/bin/local_pants_runner.py", line 175, in _perform_run
return self._perform_run_body(goals, poll=False)
File "/Users/tdimiduk/.cache/pants/setup/bootstrap-Darwin-x86_64/pants.SCHkFQ/install/lib/python3.9/site-packages/pants/bin/local_pants_runner.py", line 192, in _perform_run_body
return self.graph_session.run_goal_rules(
File "/Users/tdimiduk/.cache/pants/setup/bootstrap-Darwin-x86_64/pants.SCHkFQ/install/lib/python3.9/site-packages/pants/init/engine_initializer.py", line 135, in run_goal_rules
exit_code = self.scheduler_session.run_goal_rule(
File "/Users/tdimiduk/.cache/pants/setup/bootstrap-Darwin-x86_64/pants.SCHkFQ/install/lib/python3.9/site-packages/pants/engine/internals/scheduler.py", line 538, in run_goal_rule
self._raise_on_error([t for _, t in throws])
File "/Users/tdimiduk/.cache/pants/setup/bootstrap-Darwin-x86_64/pants.SCHkFQ/install/lib/python3.9/site-packages/pants/engine/internals/scheduler.py", line 506, in _raise_on_error
raise ExecutionError(
Exception message: 1 Exception encountered:
ProcessExecutionFailure: Process 'Building pytest.pex from pytest_default_lockfile.txt' failed with exit code 1.
stdout:
stderr:
ERROR: Exception:
Traceback (most recent call last):
File "/Users/tdimiduk/.cache/pants/named_caches/pex_root/venvs/short/02b35deb/lib/python3.8/site-packages/pip/_vendor/resolvelib/resolvers.py", line 171, in _merge_into_criterion
crit = self.state.criteria[name]
KeyError: 'attrs'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/tdimiduk/.cache/pants/named_caches/pex_root/venvs/short/02b35deb/lib/python3.8/site-packages/pip/_internal/cli/base_command.py", line 223, in _main
status = self.run(options, args)
File "/Users/tdimiduk/.cache/pants/named_caches/pex_root/venvs/short/02b35deb/lib/python3.8/site-packages/pip/_internal/cli/req_command.py", line 180, in wrapper
return func(self, options, args)
File "/Users/tdimiduk/.cache/pants/named_caches/pex_root/venvs/short/02b35deb/lib/python3.8/site-packages/pip/_internal/commands/download.py", line 130, in run
requirement_set = resolver.resolve(
File "/Users/tdimiduk/.cache/pants/named_caches/pex_root/venvs/short/02b35deb/lib/python3.8/site-packages/pip/_internal/resolution/resolvelib/resolver.py", line 121, in resolve
self._result = resolver.resolve(
File "/Users/tdimiduk/.cache/pants/named_caches/pex_root/venvs/short/02b35deb/lib/python3.8/site-packages/pip/_vendor/resolvelib/resolvers.py", line 453, in resolve
state = resolution.resolve(requirements, max_rounds=max_rounds)
File "/Users/tdimiduk/.cache/pants/named_caches/pex_root/venvs/short/02b35deb/lib/python3.8/site-packages/pip/_vendor/resolvelib/resolvers.py", line 318, in resolve
name, crit = self._merge_into_criterion(r, parent=None)
File "/Users/tdimiduk/.cache/pants/named_caches/pex_root/venvs/short/02b35deb/lib/python3.8/site-packages/pip/_vendor/resolvelib/resolvers.py", line 173, in _merge_into_criterion
crit = Criterion.from_requirement(self._p, requirement, parent)
File "/Users/tdimiduk/.cache/pants/named_caches/pex_root/venvs/short/02b35deb/lib/python3.8/site-packages/pip/_vendor/resolvelib/resolvers.py", line 82, in from_requirement
if not cands:
File "/Users/tdimiduk/.cache/pants/named_caches/pex_root/venvs/short/02b35deb/lib/python3.8/site-packages/pip/_vendor/resolvelib/structs.py", line 124, in __bool__
return bool(self._sequence)
File "/Users/tdimiduk/.cache/pants/named_caches/pex_root/venvs/short/02b35deb/lib/python3.8/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py", line 99, in __bool__
return any(self)
File "/Users/tdimiduk/.cache/pants/named_caches/pex_root/venvs/short/02b35deb/lib/python3.8/site-packages/pip/_internal/resolution/resolvelib/factory.py", line 220, in iter_index_candidates
result = self._finder.find_best_candidate(
File "/Users/tdimiduk/.cache/pants/named_caches/pex_root/venvs/short/02b35deb/lib/python3.8/site-packages/pip/_internal/index/package_finder.py", line 882, in find_best_candidate
candidates = self.find_all_candidates(project_name)
File "/Users/tdimiduk/.cache/pants/named_caches/pex_root/venvs/short/02b35deb/lib/python3.8/site-packages/pip/_internal/index/package_finder.py", line 825, in find_all_candidates
package_links = self.process_project_url(
File "/Users/tdimiduk/.cache/pants/named_caches/pex_root/venvs/short/02b35deb/lib/python3.8/site-packages/pip/_internal/index/package_finder.py", line 789, in process_project_url
html_page = self._link_collector.fetch_page(project_url)
File "/Users/tdimiduk/.cache/pants/named_caches/pex_root/venvs/short/02b35deb/lib/python3.8/site-packages/pip/_internal/index/collector.py", line 618, in fetch_page
return _get_html_page(location, session=self.session)
File "/Users/tdimiduk/.cache/pants/named_caches/pex_root/venvs/short/02b35deb/lib/python3.8/site-packages/pip/_internal/index/collector.py", line 430, in _get_html_page
resp = _get_html_response(url, session=session)
File "/Users/tdimiduk/.cache/pants/named_caches/pex_root/venvs/short/02b35deb/lib/python3.8/site-packages/pip/_internal/index/collector.py", line 127, in _get_html_response
resp = session.get(
File "/Users/tdimiduk/.cache/pants/named_caches/pex_root/venvs/short/02b35deb/lib/python3.8/site-packages/pip/_vendor/requests/sessions.py", line 555, in get
return self.request('GET', url, **kwargs)
File "/Users/tdimiduk/.cache/pants/named_caches/pex_root/venvs/short/02b35deb/lib/python3.8/site-packages/pip/_internal/network/session.py", line 428, in request
return super(PipSession, self).request(method, url, *args, **kwargs)
File "/Users/tdimiduk/.cache/pants/named_caches/pex_root/venvs/short/02b35deb/lib/python3.8/site-packages/pip/_vendor/requests/sessions.py", line 542, in request
resp = self.send(prep, **send_kwargs)
File "/Users/tdimiduk/.cache/pants/named_caches/pex_root/venvs/short/02b35deb/lib/python3.8/site-packages/pip/_vendor/requests/sessions.py", line 662, in send
r = dispatch_hook('response', hooks, r, **kwargs)
File "/Users/tdimiduk/.cache/pants/named_caches/pex_root/venvs/short/02b35deb/lib/python3.8/site-packages/pip/_vendor/requests/hooks.py", line 31, in dispatch_hook
_hook_data = hook(hook_data, **kwargs)
File "/Users/tdimiduk/.cache/pants/named_caches/pex_root/venvs/short/02b35deb/lib/python3.8/site-packages/pip/_internal/network/auth.py", line 256, in handle_401
username, password, save = self._prompt_for_password(parsed.netloc)
File "/Users/tdimiduk/.cache/pants/named_caches/pex_root/venvs/short/02b35deb/lib/python3.8/site-packages/pip/_internal/network/auth.py", line 226, in _prompt_for_password
username = ask_input("User for {}: ".format(netloc))
File "/Users/tdimiduk/.cache/pants/named_caches/pex_root/venvs/short/02b35deb/lib/python3.8/site-packages/pip/_internal/utils/misc.py", line 262, in ask_input
return input(message)
EOFError: EOF when reading a line
pid 67423 -> /Users/tdimiduk/.cache/pants/named_caches/pex_root/venvs/1d2a3f1b3961efbfba4c4373717c72d09d116d95/0c41b5bd1d055c543f99ad078c876aa51077c621/pex --disable-pip-version-check --no-python-version-warning --exists-action a --isolated -q --cache-dir /Users/tdimiduk/.cache/pants/named_caches/pex_root --log /private/var/folders/t2/cfkkkdyx5ln1lr1w3_5_xvt189jt__/T/process-executionAL8XB4/.tmp/tmpct79fcd6/pip.log download --dest /private/var/folders/t2/cfkkkdyx5ln1lr1w3_5_xvt189jt__/T/process-executionAL8XB4/.tmp/tmpi7qtb_2w/Users.tdimiduk..pyenv.versions.3.8.12.bin.python3.8 --no-deps --requirement pytest_default_lockfile.txt --index-url <https://pypi.org/simple/> --extra-index-url <https://artifactory>.<snipped>/simple --extra-index-url <https://artifactory>.<snipped>/simple --retries 5 --timeout 15 exited with 2 and STDERR:
None
freezing-vegetable-92896
11/02/2021, 10:23 PMhappy-kitchen-89482
11/02/2021, 10:46 PMhappy-kitchen-89482
11/02/2021, 10:46 PMhappy-kitchen-89482
11/02/2021, 10:46 PMhappy-kitchen-89482
11/02/2021, 10:55 PM[python-repos].indexes
as opposed to [python-repos].repos
?happy-kitchen-89482
11/02/2021, 10:56 PMfreezing-vegetable-92896
11/02/2021, 11:02 PMartifactory.<....>/simple
so I'm pretty sure they belong in indexesfreezing-vegetable-92896
11/02/2021, 11:05 PM--extra-index-url
happy-kitchen-89482
11/02/2021, 11:19 PMhappy-kitchen-89482
11/02/2021, 11:19 PMhappy-kitchen-89482
11/02/2021, 11:20 PMfreezing-vegetable-92896
11/02/2021, 11:33 PMfreezing-vegetable-92896
11/02/2021, 11:35 PMhappy-kitchen-89482
11/03/2021, 2:32 AMenough-analyst-54434
11/03/2021, 3:32 PMenough-analyst-54434
11/03/2021, 3:49 PMenough-analyst-54434
11/03/2021, 3:58 PMfreezing-vegetable-92896
11/03/2021, 5:33 PMenough-analyst-54434
11/03/2021, 5:35 PMfreezing-vegetable-92896
11/03/2021, 5:42 PMenough-analyst-54434
11/03/2021, 5:47 PM--index
configuration but coming from your environment or ~/.netrc or pip.conf and its not getting picked up.
Does that ring true?freezing-vegetable-92896
11/03/2021, 5:48 PM~/.netrc
, but that has been finickier than than I'de preferfreezing-vegetable-92896
11/03/2021, 5:50 PMhttps://${ARTIFACTORY_USERNAME}:${ARTIFACTORY_PASSWORD}@artifactory/...
but that didn't seem to work with pants (unless I was running into a different problem)enough-analyst-54434
11/03/2021, 5:54 PMenough-analyst-54434
11/03/2021, 5:55 PMenough-analyst-54434
11/03/2021, 5:56 PM[subprocess-environment]
env_vars.add = [
"ARTIFACTORY_USERNAME",
"ARTIFACTORY_PASSWORD",
]
enough-analyst-54434
11/03/2021, 5:56 PMfreezing-vegetable-92896
11/03/2021, 6:12 PMfreezing-vegetable-92896
11/03/2021, 6:31 PM./pants test :: eopt-core/git/pants
11:26:51.13 [INFO] Initializing scheduler...
11:26:51.51 [INFO] Scheduler initialized.
11:27:10.80 [INFO] Completed: Resolving pytest.pex from pytest_default_lockfile.txt
11:27:10.85 [INFO] Completed: Resolving constraints.txt
11:27:10.88 [ERROR] Exception caught: (pants.engine.internals.scheduler.ExecutionError)
File "/Users/tdimiduk/.cache/pants/setup/bootstrap-Darwin-x86_64/pants.tm5F4q/install/lib/python3.9/site-packages/pants/bin/local_pants_runner.py", line 236, in _run_inner
return self._perform_run(goals)
File "/Users/tdimiduk/.cache/pants/setup/bootstrap-Darwin-x86_64/pants.tm5F4q/install/lib/python3.9/site-packages/pants/bin/local_pants_runner.py", line 175, in _perform_run
return self._perform_run_body(goals, poll=False)
File "/Users/tdimiduk/.cache/pants/setup/bootstrap-Darwin-x86_64/pants.tm5F4q/install/lib/python3.9/site-packages/pants/bin/local_pants_runner.py", line 192, in _perform_run_body
return self.graph_session.run_goal_rules(
File "/Users/tdimiduk/.cache/pants/setup/bootstrap-Darwin-x86_64/pants.tm5F4q/install/lib/python3.9/site-packages/pants/init/engine_initializer.py", line 135, in run_goal_rules
exit_code = self.scheduler_session.run_goal_rule(
File "/Users/tdimiduk/.cache/pants/setup/bootstrap-Darwin-x86_64/pants.tm5F4q/install/lib/python3.9/site-packages/pants/engine/internals/scheduler.py", line 538, in run_goal_rule
self._raise_on_error([t for _, t in throws])
File "/Users/tdimiduk/.cache/pants/setup/bootstrap-Darwin-x86_64/pants.tm5F4q/install/lib/python3.9/site-packages/pants/engine/internals/scheduler.py", line 506, in _raise_on_error
raise ExecutionError(
Exception message: 1 Exception encountered:
ProcessExecutionFailure: Process 'Resolving pytest.pex from pytest_default_lockfile.txt' failed with exit code 1.
stdout:
stderr:
User for <http://artifactory.teslamotors.com|artifactory.teslamotors.com>: ERROR: Exception:
Traceback (most recent call last):
File "/Users/tdimiduk/.cache/pants/named_caches/pex_root/venvs/short/ff5b2036/lib/python3.6/site-packages/pip/_vendor/resolvelib/resolvers.py", line 171, in _merge_into_criterion
crit = self.state.criteria[name]
KeyError: 'attrs'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/tdimiduk/.cache/pants/named_caches/pex_root/venvs/short/ff5b2036/lib/python3.6/site-packages/pip/_internal/cli/base_command.py", line 223, in _main
status = self.run(options, args)
File "/Users/tdimiduk/.cache/pants/named_caches/pex_root/venvs/short/ff5b2036/lib/python3.6/site-packages/pip/_internal/cli/req_command.py", line 180, in wrapper
return func(self, options, args)
File "/Users/tdimiduk/.cache/pants/named_caches/pex_root/venvs/short/ff5b2036/lib/python3.6/site-packages/pip/_internal/commands/download.py", line 131, in run
reqs, check_supported_wheels=True
File "/Users/tdimiduk/.cache/pants/named_caches/pex_root/venvs/short/ff5b2036/lib/python3.6/site-packages/pip/_internal/resolution/resolvelib/resolver.py", line 122, in resolve
requirements, max_rounds=try_to_avoid_resolution_too_deep,
File "/Users/tdimiduk/.cache/pants/named_caches/pex_root/venvs/short/ff5b2036/lib/python3.6/site-packages/pip/_vendor/resolvelib/resolvers.py", line 453, in resolve
state = resolution.resolve(requirements, max_rounds=max_rounds)
File "/Users/tdimiduk/.cache/pants/named_caches/pex_root/venvs/short/ff5b2036/lib/python3.6/site-packages/pip/_vendor/resolvelib/resolvers.py", line 318, in resolve
name, crit = self._merge_into_criterion(r, parent=None)
File "/Users/tdimiduk/.cache/pants/named_caches/pex_root/venvs/short/ff5b2036/lib/python3.6/site-packages/pip/_vendor/resolvelib/resolvers.py", line 173, in _merge_into_criterion
crit = Criterion.from_requirement(self._p, requirement, parent)
File "/Users/tdimiduk/.cache/pants/named_caches/pex_root/venvs/short/ff5b2036/lib/python3.6/site-packages/pip/_vendor/resolvelib/resolvers.py", line 82, in from_requirement
if not cands:
File "/Users/tdimiduk/.cache/pants/named_caches/pex_root/venvs/short/ff5b2036/lib/python3.6/site-packages/pip/_vendor/resolvelib/structs.py", line 124, in __bool__
return bool(self._sequence)
File "/Users/tdimiduk/.cache/pants/named_caches/pex_root/venvs/short/ff5b2036/lib/python3.6/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py", line 99, in __bool__
return any(self)
File "/Users/tdimiduk/.cache/pants/named_caches/pex_root/venvs/short/ff5b2036/lib/python3.6/site-packages/pip/_internal/resolution/resolvelib/factory.py", line 223, in iter_index_candidates
hashes=hashes,
File "/Users/tdimiduk/.cache/pants/named_caches/pex_root/venvs/short/ff5b2036/lib/python3.6/site-packages/pip/_internal/index/package_finder.py", line 882, in find_best_candidate
candidates = self.find_all_candidates(project_name)
File "/Users/tdimiduk/.cache/pants/named_caches/pex_root/venvs/short/ff5b2036/lib/python3.6/site-packages/pip/_internal/index/package_finder.py", line 826, in find_all_candidates
project_url, link_evaluator=link_evaluator,
File "/Users/tdimiduk/.cache/pants/named_caches/pex_root/venvs/short/ff5b2036/lib/python3.6/site-packages/pip/_internal/index/package_finder.py", line 789, in process_project_url
html_page = self._link_collector.fetch_page(project_url)
File "/Users/tdimiduk/.cache/pants/named_caches/pex_root/venvs/short/ff5b2036/lib/python3.6/site-packages/pip/_internal/index/collector.py", line 618, in fetch_page
return _get_html_page(location, session=self.session)
File "/Users/tdimiduk/.cache/pants/named_caches/pex_root/venvs/short/ff5b2036/lib/python3.6/site-packages/pip/_internal/index/collector.py", line 430, in _get_html_page
resp = _get_html_response(url, session=session)
File "/Users/tdimiduk/.cache/pants/named_caches/pex_root/venvs/short/ff5b2036/lib/python3.6/site-packages/pip/_internal/index/collector.py", line 144, in _get_html_response
"Cache-Control": "max-age=0",
File "/Users/tdimiduk/.cache/pants/named_caches/pex_root/venvs/short/ff5b2036/lib/python3.6/site-packages/pip/_vendor/requests/sessions.py", line 555, in get
return self.request('GET', url, **kwargs)
File "/Users/tdimiduk/.cache/pants/named_caches/pex_root/venvs/short/ff5b2036/lib/python3.6/site-packages/pip/_internal/network/session.py", line 428, in request
return super(PipSession, self).request(method, url, *args, **kwargs)
File "/Users/tdimiduk/.cache/pants/named_caches/pex_root/venvs/short/ff5b2036/lib/python3.6/site-packages/pip/_vendor/requests/sessions.py", line 542, in request
resp = self.send(prep, **send_kwargs)
File "/Users/tdimiduk/.cache/pants/named_caches/pex_root/venvs/short/ff5b2036/lib/python3.6/site-packages/pip/_vendor/requests/sessions.py", line 662, in send
r = dispatch_hook('response', hooks, r, **kwargs)
File "/Users/tdimiduk/.cache/pants/named_caches/pex_root/venvs/short/ff5b2036/lib/python3.6/site-packages/pip/_vendor/requests/hooks.py", line 31, in dispatch_hook
_hook_data = hook(hook_data, **kwargs)
File "/Users/tdimiduk/.cache/pants/named_caches/pex_root/venvs/short/ff5b2036/lib/python3.6/site-packages/pip/_internal/network/auth.py", line 256, in handle_401
username, password, save = self._prompt_for_password(parsed.netloc)
File "/Users/tdimiduk/.cache/pants/named_caches/pex_root/venvs/short/ff5b2036/lib/python3.6/site-packages/pip/_internal/network/auth.py", line 226, in _prompt_for_password
username = ask_input("User for {}: ".format(netloc))
File "/Users/tdimiduk/.cache/pants/named_caches/pex_root/venvs/short/ff5b2036/lib/python3.6/site-packages/pip/_internal/utils/misc.py", line 262, in ask_input
return input(message)
EOFError: EOF when reading a line
pid 87579 -> /Users/tdimiduk/.cache/pants/named_caches/pex_root/venvs/784b6347ec6f56ab06909a22fe2c6920eded90f0/e1598f4d48718c5c37e988d295dc18143bab9570/pex --disable-pip-version-check --no-python-version-warning --exists-action a --isolated -q --cache-dir /Users/tdimiduk/.cache/pants/named_caches/pex_root --log /private/var/folders/t2/cfkkkdyx5ln1lr1w3_5_xvt189jt__/T/process-executionycbZAg/.tmp/tmp95otzw8r/pip.log download --dest /private/var/folders/t2/cfkkkdyx5ln1lr1w3_5_xvt189jt__/T/process-executionycbZAg/.tmp/tmpeaf1qk2p/Users.tdimiduk..pyenv.versions.3.6.12.bin.python3.6 --no-deps --requirement pytest_default_lockfile.txt --index-url <https://pypi.org/simple/> --extra-index-url https://${ARTIFACTORY_USERNAME}:${ARTIFACTORY_PASSWORD}@artifactory<snip>/simple --extra-index-url <https://artifactory><snip>/simple --retries 5 --timeout 15 exited with 2 and STDERR:
None
enough-analyst-54434
11/03/2021, 6:33 PMenough-analyst-54434
11/03/2021, 6:35 PMfreezing-vegetable-92896
11/03/2021, 6:46 PMfreezing-vegetable-92896
11/03/2021, 6:46 PMfreezing-vegetable-92896
11/03/2021, 6:51 PMenough-analyst-54434
11/03/2021, 6:52 PMfreezing-vegetable-92896
11/03/2021, 6:52 PMwerkzeug
instead, but again it should be able to find that in public pypienough-analyst-54434
11/03/2021, 6:53 PMfreezing-vegetable-92896
11/03/2021, 6:54 PMfreezing-vegetable-92896
11/03/2021, 6:54 PMfreezing-vegetable-92896
11/03/2021, 6:54 PMenough-analyst-54434
11/03/2021, 7:04 PM--no-process-execution-local-cleanup
which will both print out process execution /tmp/...
dir names and leave them there for you to examine. The last such one should be the right one. Inside that dir will be a __run.sh
script. You can add an echo in that script and run it to check.enough-analyst-54434
11/03/2021, 7:06 PMenough-analyst-54434
11/03/2021, 8:01 PMfreezing-vegetable-92896
11/04/2021, 12:31 AMfreezing-vegetable-92896
11/04/2021, 12:32 AMpants.toml
file things work correctlyfreezing-vegetable-92896
11/04/2021, 12:32 AM__run.py
file with the correct values, but they seem to not be properly expanded for the command callenough-analyst-54434
11/04/2021, 12:42 AM__run.sh
with the sensitive env var values redacted?freezing-vegetable-92896
11/04/2021, 12:46 AM--no-pypi $'--index=<https://pypi.org/simple/>' $'--index=<https://artifactory><snip>/simple'
If I remove the single quotes '
around the url, it no longer prompts me for a password. My bash isn't that strong, but I think single quotes '
prevent variable expansion (I'm not sure what the extra $
does) so I'm suspicious of thatfreezing-vegetable-92896
11/04/2021, 12:47 AM/Users/tdimiduk/.pyenv/versions/3.6.12/bin/python3.6 ./pex --python-path $'/Users/tdimiduk/.pyenv/versions/3.6.12/bin:/Users/tdimiduk/.pyenv/versions/3.6.8/bin:/Users/tdimiduk/.pyenv/versions/3.8.12/bin:/Users/tdimiduk/.pyenv/versions/3.8.3/bin:/Users/tdimiduk/.poetry/bin:/usr/local/Cellar/python/3.8.8_1/bin:/Users/tdimiduk/bin:/Users/tdimiduk/.pyenv/bin:~/bin:/Users/tdimiduk/dev/dataworks/bazel-bin/telemetry-one-off/src/main/scala/com/tesla/data/oneoff/telemetry:/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/share/dotnet:~/.dotnet/tools:/Library/Apple/usr/bin' --tmpdir .tmp --output-file repository.pex --include-tools --no-pypi $'--index=<https://pypi.org/simple/>' --index=https://${ARTIFACTORY_USERNAME}:${ARTIFACTORY_PASSWORD}@artifactory.teslamotors.com/artifactory/api/pypi/stst-pypi-local/simple '--index=https://${ARTIFACTORY_USERNAME}:${ARTIFACTORY_PASSWORD}@artifactory.teslamotors.com/artifactory/api/pypi/fa-dataworks-release-local/simple' --resolver-version pip-2020-resolver --python /Users/tdimiduk/.pyenv/versions/3.6.12/bin/python3.6 --no-emit-warnings --jobs 4 --manylinux manylinux2014 $'--sources-directory=source_files' --constraints constraints.txt $'CVXcanon==0.1.2' $'Cython==0.29.2' $'Flask==1.0.2' $'Jinja2==3.0.2' $'MarkupSafe==2.0.1' $'PyHive==0.6.1' $'PyJWT==1.7.1' $'PyMySQL==0.9.3' $'PyYAML==6.0' $'Pygments==2.10.0' $'SQLAlchemy==1.3.20' $'SecretStorage==3.3.1' $'Werkzeug==2.0.2' $'amqp==5.0.6' $'appdirs==1.4.4' $'attrs==19.3.0' $'autobidder-proto==0.20.0+a9e5a9d.520' $'aws-sam-translator==1.39.0' $'aws-xray-sdk==2.8.0' $'backports.zoneinfo==0.2.1' $'beautifulsoup4==4.5.0' $'bill-estimator==0.3.0+0d87a66.16' $'billiard==3.6.4.0' $'black==20.8b1' $'bleach==4.1.0' $'boto3-stubs==1.12.39.0' $'boto3==1.12.39' $'boto==2.49.0' $'botocore==1.15.49' $'cached-property==1.5.2' $'cachetools==4.2.4' $'cattrs==1.0.0' $'celery==5.1.2' $'certifi==2021.10.8' $'cffi==1.15.0' $'cfn-lint==0.54.4' $'chardet==3.0.4' $'charset-normalizer==2.0.7' $'click-didyoumean==0.3.0' $'click-plugins==1.1.1' $'click-repl==0.2.0' $'click==7.1.2' $'colorama==0.4.4' $'common-proto==0.2.0+30df4bd.474' $'configparser==5.0.2' $'control-api-proto==0.3.0+30df4bd.470' $'coverage==6.1.1' $'cryptography==3.1' $'cvxpy==1.0.11' $'cycler==0.11.0' $'dataclasses==0.8' $'datalake-presto-client==2.1.10.post4609' $'datatank-client==2.1.10.post4609' $'dataworks-bouncer-auth==2.1.10.post4609' $'dataworks-common==2.1.10.post4609' $'decorator==4.4.2' $'deepdiff==5.5.0' $'dill==0.3.4' $'docker==5.0.3' $'docutils==0.15.2' $'ecdsa==0.17.0' $'ecos==2.0.7.post1' $'energy-device-proto==1.2.0+30df4bd.471' $'et-xmlfile==1.1.0' $'execnet==1.9.0' $'fastcache==1.1.0' $'fsspec==2021.10.1' $'future==0.18.2' $'gateway-asset-manifest-proto==0.2.0+30df4bd.472' $'google-auth==2.3.2' $'googleapis-proto==1.7.0+5a0a612.486' $'grpcio==1.27.2' $'html5lib==1.1' $'hypothesis==5.8.0' $'idna==2.7' $'importlib-metadata==4.8.1' $'importlib-resources==3.3.1' $'iniconfig==1.1.1' $'isodate==0.5.4' $'itsdangerous==2.0.1' $'jeepney==0.7.1' $'jmespath==0.10.0' $'joblib==1.1.0' $'jsondiff==1.1.2' $'jsonpatch==1.32' $'jsonpointer==2.1' $'jsonschema==3.2.0' $'junit-xml==1.9' $'jwt==1.2' $'keyring==23.2.1' $'kiwisolver==1.3.1' $'kombu==5.1.0' $'kubernetes==11.0.0' $'lxml==3.6.1' $'marshmallow==3.0.0b16' $'matplotlib==3.1.1' $'mock==2.0.0' $'moto==1.3.14' $'multiprocess==0.70.12.2' $'mypy-boto3-cloudformation==1.12.39.0' $'mypy-boto3-dynamodb==1.12.39.0' $'mypy-boto3-ec2==1.12.39.0' $'mypy-boto3-lambda==1.12.39.0' $'mypy-boto3-rds==1.12.39.0' $'mypy-boto3-s3==1.12.39.0' $'mypy-boto3-secretsmanager==1.12.39.0' $'mypy-boto3-sns==1.12.39.0' $'mypy-boto3-sqs==1.12.39.0' $'mypy-boto3==1.12.39.0' $'mypy-extensions==0.4.3' $'mypy==0.790' $'networkx==2.5.1' $'numpy==1.19.1' $'oauthlib==3.1.1' $'openpyxl==3.0.7' $'ordered-set==4.0.2' $'osqp==0.6.2.post0' $'packaging==21.2' $'pandas==1.1.5' $'pathspec==0.9.0' $'pbr==5.6.0' $'pkginfo==1.7.1' $'pluggy==0.13.1' $'prompt-toolkit==3.0.21' $'protobuf==3.8.0' $'psycopg2-binary==2.9.1' $'py==1.10.0' $'pyarrow==4.0.1' $'pyasn1-modules==0.2.8' $'pyasn1==0.4.8' $'pycparser==2.20' $'pyhocon==0.3.57' $'pyiso==0.3.19' $'pyparsing==2.4.7' $'pyrsistent==0.18.0' $'pytest-cov==2.10.1' $'pytest-forked==1.3.0' $'pytest-xdist==2.1.0' $'pytest==6.1.2' $'python-dateutil==2.8.2' $'python-jose==3.3.0' $'python-json-logger==2.0.1' $'pytz-deprecation-shim==0.1.0.post0' $'pytz==2018.5' $'qdldl==0.1.5.post0' $'readme-renderer==30.0' $'regex==2021.11.1' $'requests-oauthlib==1.3.0' $'requests-toolbelt==0.9.1' $'requests==2.20.1' $'responses==0.10.15' $'rfc3986==1.5.0' $'rsa==4.7.2' $'ruamel.yaml.clib==0.2.6' $'ruamel.yaml==0.16.13' $'s3fs==0.4.2' $'s3transfer==0.3.7' $'scikit-learn==0.23.0' $'scipy==1.5.4' $'scs==2.1.4' $'seaborn==0.10.0' $'sentry-sdk==1.4.3' $'shared-protocol-proto==1.1.0+30df4bd.473' $'six==1.16.0' $'sortedcontainers==2.4.0' $'sqlalchemy-stubs==0.3' $'sshpubkeys==3.3.1' $'tabulate==0.8.9' $'threadpoolctl==3.0.0' $'toml==0.10.2' $'tqdm==4.60.0' $'twine==3.4.2' $'typed-ast==1.4.3' $'typing-extensions==3.7.4.1' $'typing==3.7.4.3' $'tzdata==2021.5' $'tzlocal==4.1' $'urllib3==1.24.3' $'vine==5.0.0' $'wcwidth==0.2.5' $'webencodings==0.5.1' $'websocket-client==1.2.1' $'wrapt==1.13.3' $'xlrd==1.2.0' $'xmltodict==0.12.0' $'xpress==8.10.2' $'zipp==3.6.0'
enough-analyst-54434
11/04/2021, 12:47 AM__run.sh
- its just for debugging. The actual process invokation is ~just like that but directly from Rust code.freezing-vegetable-92896
11/04/2021, 12:48 AMfreezing-vegetable-92896
11/04/2021, 12:49 AMfreezing-vegetable-92896
11/04/2021, 12:51 AM17:49:03.87 [INFO] preserving local process execution dir `"/private/var/folders/t2/cfkkkdyx5ln1lr1w3_5_xvt189jt__/T/process-executionFRby3J"` for "Resolving constraints.txt"
17:49:10.46 [INFO] Completed: Resolving pytest.pex from pytest_default_lockfile.txt
17:49:10.58 [INFO] Completed: Resolving constraints.txt
17:49:10.62 [ERROR] Exception caught: (pants.engine.internals.scheduler.ExecutionError)
17:49:10.62 [ERROR] Exception caught: (pants.engine.internals.scheduler.ExecutionError)
File "/Users/tdimiduk/.cache/pants/setup/bootstrap-Darwin-x86_64/pants.tm5F4q/install/lib/python3.9/site-packages/pants/bin/local_pants_runner.py", line 236, in _run_inner
return self._perform_run(goals)
File "/Users/tdimiduk/.cache/pants/setup/bootstrap-Darwin-x86_64/pants.tm5F4q/install/lib/python3.9/site-packages/pants/bin/local_pants_runner.py", line 175, in _perform_run
return self._perform_run_body(goals, poll=False)
File "/Users/tdimiduk/.cache/pants/setup/bootstrap-Darwin-x86_64/pants.tm5F4q/install/lib/python3.9/site-packages/pants/bin/local_pants_runner.py", line 192, in _perform_run_body
return self.graph_session.run_goal_rules(
File "/Users/tdimiduk/.cache/pants/setup/bootstrap-Darwin-x86_64/pants.tm5F4q/install/lib/python3.9/site-packages/pants/init/engine_initializer.py", line 135, in run_goal_rules
exit_code = self.scheduler_session.run_goal_rule(
File "/Users/tdimiduk/.cache/pants/setup/bootstrap-Darwin-x86_64/pants.tm5F4q/install/lib/python3.9/site-packages/pants/engine/internals/scheduler.py", line 538, in run_goal_rule
self._raise_on_error([t for _, t in throws])
File "/Users/tdimiduk/.cache/pants/setup/bootstrap-Darwin-x86_64/pants.tm5F4q/install/lib/python3.9/site-packages/pants/engine/internals/scheduler.py", line 506, in _raise_on_error
raise ExecutionError(
Exception message: 1 Exception encountered:
ProcessExecutionFailure: Process 'Resolving pytest.pex from pytest_default_lockfile.txt' failed with exit code 1.
stdout:
stderr:
User for <http://artifactory.teslamotors.com|artifactory.teslamotors.com>: ERROR: Exception:
Traceback (most recent call last):
File "/Users/tdimiduk/.cache/pants/named_caches/pex_root/venvs/short/ff5b2036/lib/python3.6/site-packages/pip/_vendor/resolvelib/resolvers.py", line 171, in _merge_into_criterion
crit = self.state.criteria[name]
KeyError: 'attrs'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/tdimiduk/.cache/pants/named_caches/pex_root/venvs/short/ff5b2036/lib/python3.6/site-packages/pip/_internal/cli/base_command.py", line 223, in _main
status = self.run(options, args)
File "/Users/tdimiduk/.cache/pants/named_caches/pex_root/venvs/short/ff5b2036/lib/python3.6/site-packages/pip/_internal/cli/req_command.py", line 180, in wrapper
return func(self, options, args)
File "/Users/tdimiduk/.cache/pants/named_caches/pex_root/venvs/short/ff5b2036/lib/python3.6/site-packages/pip/_internal/commands/download.py", line 131, in run
reqs, check_supported_wheels=True
File "/Users/tdimiduk/.cache/pants/named_caches/pex_root/venvs/short/ff5b2036/lib/python3.6/site-packages/pip/_internal/resolution/resolvelib/resolver.py", line 122, in resolve
requirements, max_rounds=try_to_avoid_resolution_too_deep,
File "/Users/tdimiduk/.cache/pants/named_caches/pex_root/venvs/short/ff5b2036/lib/python3.6/site-packages/pip/_vendor/resolvelib/resolvers.py", line 453, in resolve
state = resolution.resolve(requirements, max_rounds=max_rounds)
File "/Users/tdimiduk/.cache/pants/named_caches/pex_root/venvs/short/ff5b2036/lib/python3.6/site-packages/pip/_vendor/resolvelib/resolvers.py", line 318, in resolve
name, crit = self._merge_into_criterion(r, parent=None)
File "/Users/tdimiduk/.cache/pants/named_caches/pex_root/venvs/short/ff5b2036/lib/python3.6/site-packages/pip/_vendor/resolvelib/resolvers.py", line 173, in _merge_into_criterion
crit = Criterion.from_requirement(self._p, requirement, parent)
File "/Users/tdimiduk/.cache/pants/named_caches/pex_root/venvs/short/ff5b2036/lib/python3.6/site-packages/pip/_vendor/resolvelib/resolvers.py", line 82, in from_requirement
if not cands:
File "/Users/tdimiduk/.cache/pants/named_caches/pex_root/venvs/short/ff5b2036/lib/python3.6/site-packages/pip/_vendor/resolvelib/structs.py", line 124, in __bool__
return bool(self._sequence)
File "/Users/tdimiduk/.cache/pants/named_caches/pex_root/venvs/short/ff5b2036/lib/python3.6/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py", line 99, in __bool__
return any(self)
File "/Users/tdimiduk/.cache/pants/named_caches/pex_root/venvs/short/ff5b2036/lib/python3.6/site-packages/pip/_internal/resolution/resolvelib/factory.py", line 223, in iter_index_candidates
hashes=hashes,
File "/Users/tdimiduk/.cache/pants/named_caches/pex_root/venvs/short/ff5b2036/lib/python3.6/site-packages/pip/_internal/index/package_finder.py", line 882, in find_best_candidate
candidates = self.find_all_candidates(project_name)
File "/Users/tdimiduk/.cache/pants/named_caches/pex_root/venvs/short/ff5b2036/lib/python3.6/site-packages/pip/_internal/index/package_finder.py", line 826, in find_all_candidates
project_url, link_evaluator=link_evaluator,
File "/Users/tdimiduk/.cache/pants/named_caches/pex_root/venvs/short/ff5b2036/lib/python3.6/site-packages/pip/_internal/index/package_finder.py", line 789, in process_project_url
html_page = self._link_collector.fetch_page(project_url)
File "/Users/tdimiduk/.cache/pants/named_caches/pex_root/venvs/short/ff5b2036/lib/python3.6/site-packages/pip/_internal/index/collector.py", line 618, in fetch_page
return _get_html_page(location, session=self.session)
File "/Users/tdimiduk/.cache/pants/named_caches/pex_root/venvs/short/ff5b2036/lib/python3.6/site-packages/pip/_internal/index/collector.py", line 430, in _get_html_page
resp = _get_html_response(url, session=session)
File "/Users/tdimiduk/.cache/pants/named_caches/pex_root/venvs/short/ff5b2036/lib/python3.6/site-packages/pip/_internal/index/collector.py", line 144, in _get_html_response
"Cache-Control": "max-age=0",
File "/Users/tdimiduk/.cache/pants/named_caches/pex_root/venvs/short/ff5b2036/lib/python3.6/site-packages/pip/_vendor/requests/sessions.py", line 555, in get
return self.request('GET', url, **kwargs)
File "/Users/tdimiduk/.cache/pants/named_caches/pex_root/venvs/short/ff5b2036/lib/python3.6/site-packages/pip/_internal/network/session.py", line 428, in request
return super(PipSession, self).request(method, url, *args, **kwargs)
File "/Users/tdimiduk/.cache/pants/named_caches/pex_root/venvs/short/ff5b2036/lib/python3.6/site-packages/pip/_vendor/requests/sessions.py", line 542, in request
resp = self.send(prep, **send_kwargs)
File "/Users/tdimiduk/.cache/pants/named_caches/pex_root/venvs/short/ff5b2036/lib/python3.6/site-packages/pip/_vendor/requests/sessions.py", line 662, in send
r = dispatch_hook('response', hooks, r, **kwargs)
File "/Users/tdimiduk/.cache/pants/named_caches/pex_root/venvs/short/ff5b2036/lib/python3.6/site-packages/pip/_vendor/requests/hooks.py", line 31, in dispatch_hook
_hook_data = hook(hook_data, **kwargs)
File "/Users/tdimiduk/.cache/pants/named_caches/pex_root/venvs/short/ff5b2036/lib/python3.6/site-packages/pip/_internal/network/auth.py", line 256, in handle_401
username, password, save = self._prompt_for_password(parsed.netloc)
File "/Users/tdimiduk/.cache/pants/named_caches/pex_root/venvs/short/ff5b2036/lib/python3.6/site-packages/pip/_internal/network/auth.py", line 226, in _prompt_for_password
username = ask_input("User for {}: ".format(netloc))
File "/Users/tdimiduk/.cache/pants/named_caches/pex_root/venvs/short/ff5b2036/lib/python3.6/site-packages/pip/_internal/utils/misc.py", line 262, in ask_input
return input(message)
EOFError: EOF when reading a line
pid 10683 -> /Users/tdimiduk/.cache/pants/named_caches/pex_root/venvs/784b6347ec6f56ab06909a22fe2c6920eded90f0/e1598f4d48718c5c37e988d295dc18143bab9570/pex --disable-pip-version-check --no-python-version-warning --exists-action a --isolated -q --cache-dir /Users/tdimiduk/.cache/pants/named_caches/pex_root --log /private/var/folders/t2/cfkkkdyx5ln1lr1w3_5_xvt189jt__/T/process-executionHsUbgR/.tmp/tmp_stsdit8/pip.log download --dest /private/var/folders/t2/cfkkkdyx5ln1lr1w3_5_xvt189jt__/T/process-executionHsUbgR/.tmp/tmp7qi3lnn_/Users.tdimiduk..pyenv.versions.3.6.12.bin.python3.6 --no-deps --requirement pytest_default_lockfile.txt --index-url <https://pypi.org/simple/> --extra-index-url https://${ARTIFACTORY_USERNAME}:${ARTIFACTORY_PASSWORD}@artifactory.teslamotors.com/artifactory/api/pypi/stst-pypi-local/simple --extra-index-url https://${ARTIFACTORY_USERNAME}:${ARTIFACTORY_PASSWORD}@artifactory.teslamotors.com/artifactory/api/pypi/fa-dataworks-release-local/simple --retries 5 --timeout 15 exited with 2 and STDERR:
None
freezing-vegetable-92896
11/04/2021, 12:52 AM/private/var/folders/t2/cfkkkdyx5ln1lr1w3_5_xvt189jt__/T/process-executionFRby3J
I see
#!/bin/bash
# This command line should execute the same process as pants did internally.
export ARTIFACTORY_PASSWORD=<correct value> ARTIFACTORY_USERNAME=tdimiduk ...
freezing-vegetable-92896
11/04/2021, 12:53 AMenough-analyst-54434
11/04/2021, 12:53 AMexport PANTS_PYTHON_REPOS_INDEXES="+[\"https://${ARTIFACTORY_USERNAME}:${ARTIFACTORY_PASSWORD}:...\",\"<next one>\"]"
. In other words, an alternate way to set any Pants config is via PANTS_<option scope>_<option name>=
and lists have the special add syntax +[...]
enough-analyst-54434
11/04/2021, 12:53 AMenough-analyst-54434
11/04/2021, 12:55 AMfreezing-vegetable-92896
11/04/2021, 12:56 AMenough-analyst-54434
11/04/2021, 12:57 AMfreezing-vegetable-92896
11/04/2021, 12:58 AMenough-analyst-54434
11/04/2021, 12:59 AM[python-repos] indexes
, but via env var to accomplish this today.enough-analyst-54434
11/04/2021, 1:00 AMfreezing-vegetable-92896
11/04/2021, 1:04 AMfreezing-vegetable-92896
11/04/2021, 1:05 AMfreezing-vegetable-92896
11/04/2021, 1:05 AMenough-analyst-54434
11/04/2021, 1:05 AMenough-analyst-54434
11/04/2021, 1:05 AMfreezing-vegetable-92896
11/04/2021, 1:06 AMfreezing-vegetable-92896
11/04/2021, 1:06 AMfreezing-vegetable-92896
11/04/2021, 1:21 AMPANTS_PYTHON_REPOS_INDEXES
correctly). Thanks for your help @enough-analyst-54434