Trying to implement an `ExportRequest` union type ...
# plugins
a
Trying to implement an
ExportRequest
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
Copy code
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
h
a
I'm not even exporting tools. I'm wanting to dump the output of my
upip
packages into a folder.