Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debug push docs on tag workflow #896

Open
shaycrk opened this issue May 20, 2022 · 0 comments
Open

Debug push docs on tag workflow #896

shaycrk opened this issue May 20, 2022 · 0 comments

Comments

@shaycrk
Copy link
Contributor

shaycrk commented May 20, 2022

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant