ambitious-actor-36781
07/05/2022, 10:42 AMExportRequest
union type
and I'm just getting an error about ExportVenvsRequest
which is a bit confusing.
source: https://github.com/xlevus/gymkhana-timer/blob/61c5e4c9d2bb622b85bf71bb3a84ad7480a56dbb/pants-plugins/upants/goals/export_upython_package.py
Exception caught: (builtins.ValueError)
File "/home/xlevus/.cache/pants/setup/bootstrap-Linux-x86_64/2.11.0_py39/bin/pants", line 8, in <module>
sys.exit(main())
File "/home/xlevus/.cache/pants/setup/bootstrap-Linux-x86_64/2.11.0_py39/lib/python3.9/site-packages/pants/bin/pants_loader.py", line 115, in main
PantsLoader.main()
File "/home/xlevus/.cache/pants/setup/bootstrap-Linux-x86_64/2.11.0_py39/lib/python3.9/site-packages/pants/bin/pants_loader.py", line 111, in main
cls.run_default_entrypoint()
File "/home/xlevus/.cache/pants/setup/bootstrap-Linux-x86_64/2.11.0_py39/lib/python3.9/site-packages/pants/bin/pants_loader.py", line 93, in run_default_entrypoint
exit_code = runner.run(start_time)
File "/home/xlevus/.cache/pants/setup/bootstrap-Linux-x86_64/2.11.0_py39/lib/python3.9/site-packages/pants/bin/pants_runner.py", line 99, in run
runner = LocalPantsRunner.create(
File "/home/xlevus/.cache/pants/setup/bootstrap-Linux-x86_64/2.11.0_py39/lib/python3.9/site-packages/pants/bin/local_pants_runner.py", line 148, in create
graph_session = cls._init_graph_session(
File "/home/xlevus/.cache/pants/setup/bootstrap-Linux-x86_64/2.11.0_py39/lib/python3.9/site-packages/pants/bin/local_pants_runner.py", line 78, in _init_graph_session
scheduler = EngineInitializer.setup_graph(
File "/home/xlevus/.cache/pants/setup/bootstrap-Linux-x86_64/2.11.0_py39/lib/python3.9/site-packages/pants/init/engine_initializer.py", line 185, in setup_graph
return EngineInitializer.setup_graph_extended(
File "/home/xlevus/.cache/pants/setup/bootstrap-Linux-x86_64/2.11.0_py39/lib/python3.9/site-packages/pants/init/engine_initializer.py", line 309, in setup_graph_extended
scheduler = Scheduler(
File "/home/xlevus/.cache/pants/setup/bootstrap-Linux-x86_64/2.11.0_py39/lib/python3.9/site-packages/pants/engine/internals/scheduler.py", line 212, in __init__
self._py_scheduler = native_engine.scheduler_create(
Exception message: Encountered 4 rule graph errors:
No installed rules return the type ExportVenvsRequest, and it was not provided by potential callers of @rule(pants.backend.python.goals.export:135:export_virtualenvs(ExportVenvsRequest, PythonSetup, DistDir) -> ExportResults, gets=[Get(ExportResult, _ExportVenvRequest)]).
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 DistDir for @rule(pants.backend.python.goals.export:135:export_virtualenvs(ExportVenvsRequest, PythonSetup, DistDir) -> ExportResults, gets=[Get(ExportResult, _ExportVenvRequest)]). All potential sources were eliminated: []
No source of dependency Get(ExportResult, _ExportVenvRequest) for @rule(pants.backend.python.goals.export:135:export_virtualenvs(ExportVenvsRequest, PythonSetup, DistDir) -> ExportResults, gets=[Get(ExportResult, _ExportVenvRequest)]). All potential sources were eliminated: []
No source of dependency PythonSetup for @rule(pants.backend.python.goals.export:135:export_virtualenvs(ExportVenvsRequest, PythonSetup, DistDir) -> ExportResults, gets=[Get(ExportResult, _ExportVenvRequest)]). All potential sources were eliminated: []
NoneType: None
hundreds-father-404
07/05/2022, 2:43 PMexport
for tools isn't a thing in 2.11. We added it in 2.12 w/ a little plugin hook https://github.com/pantsbuild/pants/blob/c4344950f5a8d8fee930009b86e8d0519f966a71/src/python/pants/backend/python/lint/black/subsystem.py#L119-L133ambitious-actor-36781
07/05/2022, 8:27 PMupip
packages into a folder.