ancient-france-42909
08/18/2022, 9:13 PM00:06:19.65 [ERROR] Encountered 2 rule graph errors:
No installed rules return the type BuildFileAddressRequest, and it was not provided by potential callers of @rule(pants.engine.internals.build_files:150:find_build_file(BuildFileAddressRequest) -> BuildFileAddress, gets=[Get(AddressFamily, AddressFamilyDir)]).
If that type should be computed by a rule, ensure that that rule is installed.
If it should be provided by a caller, ensure that it is included in any relevant Query or Get.
No source of dependency Get(AddressFamily, AddressFamilyDir) for @rule(pants.engine.internals.build_files:150:find_build_file(BuildFileAddressRequest) -> BuildFileAddress, gets=[Get(AddressFamily, AddressFamilyDir)]). All potential sources were eliminated: []
Traceback (most recent call last):
File "/Users/user/.cache/pants/setup/bootstrap-Darwin-x86_64/2.13.0rc1_py37/lib/python3.7/site-packages/pants/bin/daemon_pants_runner.py", line 130, in single_daemonized_run
scheduler, options_initializer = self._core.prepare(options_bootstrapper, complete_env)
File "/Users/user/.cache/pants/setup/bootstrap-Darwin-x86_64/2.13.0rc1_py37/lib/python3.7/site-packages/pants/pantsd/pants_daemon_core.py", line 175, in prepare
scheduler_restart_explanation,
File "/Users/user/.cache/pants/setup/bootstrap-Darwin-x86_64/2.13.0rc1_py37/lib/python3.7/site-packages/pants/pantsd/pants_daemon_core.py", line 118, in _initialize
raise e
File "/Users/user/.cache/pants/setup/bootstrap-Darwin-x86_64/2.13.0rc1_py37/lib/python3.7/site-packages/pants/pantsd/pants_daemon_core.py", line 109, in _initialize
bootstrap_options, build_config, dynamic_remote_options, self._executor
File "/Users/user/.cache/pants/setup/bootstrap-Darwin-x86_64/2.13.0rc1_py37/lib/python3.7/site-packages/pants/init/engine_initializer.py", line 199, in setup_graph
watch_filesystem=bootstrap_options.watch_filesystem,
File "/Users/user/.cache/pants/setup/bootstrap-Darwin-x86_64/2.13.0rc1_py37/lib/python3.7/site-packages/pants/init/engine_initializer.py", line 323, in setup_graph_extended
watch_filesystem=watch_filesystem,
File "/Users/user/.cache/pants/setup/bootstrap-Darwin-x86_64/2.13.0rc1_py37/lib/python3.7/site-packages/pants/engine/internals/scheduler.py", line 228, in __init__
exec_stategy_opts,
ValueError: Encountered 2 rule graph errors:
No installed rules return the type BuildFileAddressRequest, and it was not provided by potential callers of @rule(pants.engine.internals.build_files:150:find_build_file(BuildFileAddressRequest) -> BuildFileAddress, gets=[Get(AddressFamily, AddressFamilyDir)]).
If that type should be computed by a rule, ensure that that rule is installed.
If it should be provided by a caller, ensure that it is included in any relevant Query or Get.
No source of dependency Get(AddressFamily, AddressFamilyDir) for @rule(pants.engine.internals.build_files:150:find_build_file(BuildFileAddressRequest) -> BuildFileAddress, gets=[Get(AddressFamily, AddressFamilyDir)]). All potential sources were eliminated: []
hundreds-father-404
08/18/2022, 9:14 PMancient-france-42909
08/18/2022, 9:15 PMhundreds-father-404
08/18/2022, 9:16 PMancient-france-42909
08/18/2022, 9:17 PMancient-france-42909
08/18/2022, 9:20 PMhundreds-father-404
08/18/2022, 9:21 PMhundreds-father-404
08/18/2022, 9:21 PMancient-france-42909
08/18/2022, 9:52 PMhundreds-father-404
08/18/2022, 9:52 PMbitter-ability-32190
08/18/2022, 10:17 PMbitter-ability-32190
08/18/2022, 10:39 PMwitty-crayon-22786
08/18/2022, 11:00 PM@rule
code is actually invoked, so a debugger would probably not help: the “rule graph” is built statically by some hairy Rust code for which i am to blame.witty-crayon-22786
08/18/2022, 11:01 PMancient-france-42909
08/18/2022, 11:24 PMancient-france-42909
08/18/2022, 11:25 PMwitty-crayon-22786
08/18/2022, 11:25 PMancient-france-42909
08/18/2022, 11:25 PMancient-france-42909
08/18/2022, 11:26 PMancient-france-42909
08/18/2022, 11:27 PMancient-france-42909
08/18/2022, 11:27 PMancient-france-42909
08/18/2022, 11:28 PMwitty-crayon-22786
08/18/2022, 11:28 PMlldb
or gdb
to do so. i was just saying that using the python debug support was unlikely to help in this particular case. if you had a “runtime” issue with the python code, on the other hand, it would.
And, that’s not a reason to purposefully make pants hard to debug.that is of course not what i was suggesting 😃 … Josh has done a bunch of work on being able to attach a Python debugger.
witty-crayon-22786
08/18/2022, 11:29 PMoh, you want to print something? no way. no import either, because you might use builtins to printyea, good point. it would probably be worthwhile to expose
print
or some other explicit debug statementancient-france-42909
08/18/2022, 11:33 PMgenerate-lockfiles
takes 10 minutes. why? well, because it’s resolving transitive targets!ancient-france-42909
08/18/2022, 11:34 PMwitty-crayon-22786
08/18/2022, 11:35 PMand there’s on way to know whether it’s in the python or rust (or whatever) codethere are a few ways: but that would probably be a good topic for a new thread.
witty-crayon-22786
08/18/2022, 11:36 PMancient-france-42909
08/18/2022, 11:37 PMsource ~/.cache/pants/pants_dev_deps/<your platform dir>/bin/activate
I don’t have that directory 🙂witty-crayon-22786
08/18/2022, 11:38 PMpantsbuild/pants
. this thread is more relevant outside of it: https://pantsbuild.slack.com/archives/C0D7TNJHL/p1657730280463309witty-crayon-22786
08/18/2022, 11:40 PMgenerate-lockfiles
is taking 10 minutes, it’s almost certainly in a PEX subprocess… so you probably want to be looking at the subprocess instead. and note that the latest Pants 2.13.x
release candidate (2.13.0rc1
) uses more modern PEXancient-france-42909
08/18/2022, 11:41 PMwitty-crayon-22786
08/18/2022, 11:43 PMancient-france-42909
08/18/2022, 11:44 PMancient-france-42909
08/18/2022, 11:44 PMancient-france-42909
08/18/2022, 11:45 PMBUILD
filesancient-france-42909
08/18/2022, 11:46 PMhundreds-father-404
08/18/2022, 11:52 PMand while I’m whiningHey @ancient-france-42909, friendly reminder of our code of conduct: https://www.pantsbuild.org/v2.13/docs/code-of-conduct. I can certainly imagine how frustrating this experience is upgrading, and that you keep hitting several different barriers while trying to fix the earlier issues. You're not alone with finding that frustrating, and we want to help you figure this out. We also appreciate your feedback. At the same time, our community prioritizes expressing that frustration and feedback "in a friendly", "patient", and "respectful" way.
witty-crayon-22786
08/18/2022, 11:53 PMoh, you want to print something? no way. no import either, because you might use builtins to print@ancient-france-42909: filed https://github.com/pantsbuild/pants/issues/16581 for this.
ancient-france-42909
08/18/2022, 11:54 PMancient-france-42909
08/18/2022, 11:56 PM./pants test ::
to start building virtualenvs.bitter-ability-32190
08/19/2022, 3:54 PMancient-france-42909
08/19/2022, 4:06 PM