triage icon indicating copy to clipboard operation
triage copied to clipboard

Debug push docs on tag workflow

Open shaycrk opened this issue 2 years ago • 0 comments

Looks like it will need a pip install of triage in addition to checking out the repo to build the API docs:

ERROR    -  mkdocstrings: Importing 'triage.component.audition.__init__' failed, possible causes are:
- an exception happened while importing
- an element in the path does not exist
Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/site-packages/pytkdocs/loader.py", line 264, in get_object_tree
    parent_module = importlib.import_module(parent_module_path)
  File "/opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 973, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'triage'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/site-packages/pytkdocs/cli.py", line [20](https://github.com/dssg/triage/runs/6532480507?check_suite_focus=true#step:6:21)5, in main
    output = json.dumps(process_json(line))
  File "/opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/site-packages/pytkdocs/cli.py", line 114, in process_json
    return process_config(json.loads(json_input))
  File "/opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/site-packages/pytkdocs/cli.py", line 91, in process_config
    obj = loader.get_object_documentation(path, members)
  File "/opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/site-packages/pytkdocs/loader.py", line 355, in get_object_documentation
    leaf = get_object_tree(dotted_path, self.new_path_syntax)
  File "/opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/site-packages/pytkdocs/loader.py", line 267, in get_object_tree
    raise ImportError(
ImportError: Importing 'triage.component.audition.__init__' failed, possible causes are:
- an exception happened while importing
- an element in the path does not exist

ERROR    -  Error reading page 'api/audition/auditioner.md':
ERROR    -  Could not collect 'triage.component.audition.__init__'

Aborted with a BuildError!
Error: Process completed with exit code 1.

shaycrk avatar May 20 '22 22:05 shaycrk