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

HTML build fails with jinja2 warning #335

Closed
tbirdso opened this issue Mar 25, 2022 · 3 comments · Fixed by #337
Closed

HTML build fails with jinja2 warning #335

tbirdso opened this issue Mar 25, 2022 · 3 comments · Fixed by #337
Assignees

Comments

@tbirdso
Copy link
Contributor

tbirdso commented Mar 25, 2022

Raw build log from docs CI shows notebook failure:

2022-03-24T21:34:18.3376638Z Notebook error:
2022-03-24T21:34:18.3377527Z AttributeError in src/Core/Transform/MutualInformationAffine/MutualInformationAffine.ipynb:
2022-03-24T21:34:18.3377846Z module 'jinja2.utils' has no attribute 'escape'
2022-03-24T21:34:18.3378212Z ninja: build stopped: subcommand failed.
2022-03-24T21:34:18.3378364Z ninja: build stopped: subcommand failed.
2022-03-24T21:34:18.3378495Z Command exited with the value: 1
2022-03-24T21:34:18.3381362Z Error(s) when building project
2022-03-24T21:34:18.3381875Z MakeCommand:/home/runner/work/_temp/685782585/cmake-3.18.3-Linux-x86_64/bin/cmake --build . --config "Release"
2022-03-24T21:34:18.3381982Z    0 Compiler errors
2022-03-24T21:34:18.3382098Z    1 Compiler warnings
2022-03-24T21:34:18.3382417Z SetCTestConfiguration:BuildDirectory:/home/runner/work/bld/ITKEx-build

CDash reports 1 compiler warning but seems to not report the trace above.

Unclear on the underlying cause as I'm not aware of any recent modifications to the notebook or build system.

@tbirdso tbirdso self-assigned this Mar 25, 2022
@tbirdso
Copy link
Contributor Author

tbirdso commented Mar 25, 2022

Looks like an issue in jinja2 / nbconvert:

jupyter/nbconvert#1736

See that discussion for version workarounds.

@tbirdso tbirdso changed the title HTML build fails with compiler warnings HTML build fails with jinja2 warning Mar 25, 2022
tbirdso added a commit to tbirdso/ITKExamples that referenced this issue Mar 25, 2022
@tbirdso
Copy link
Contributor Author

tbirdso commented Mar 28, 2022

Looks like jinja issue is resolved, seeing what appears to be an issue with the Fleek API key for deployment:

Run fleekhq/action-deploy@v1
  with:
  env:
    pythonLocation: /opt/hostedtoolcache/Python/3.8.1[2](https://github.com/InsightSoftwareConsortium/ITKSphinxExamples/runs/5692386578?check_suite_focus=true#step:13:2)/x64
/usr/bin/docker run --name a9e9c769e4e4d2d4f578f7827[3](https://github.com/InsightSoftwareConsortium/ITKSphinxExamples/runs/5692386578?check_suite_focus=true#step:13:3)1dd6[4](https://github.com/InsightSoftwareConsortium/ITKSphinxExamples/runs/5692386578?check_suite_focus=true#step:13:4)3a49_3c[5](https://github.com/InsightSoftwareConsortium/ITKSphinxExamples/runs/5692386578?check_suite_focus=true#step:13:5)4bd --label 372a9e --workdir /github/workspace --rm -e pythonLocation -e INPUT_APIKEY -e INPUT_WORKDIR -e INPUT_COMMITHASH -e HOME -e GITHUB_JOB -e GITHUB_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_REPOSITORY_OWNER -e GITHUB_RUN_ID -e GITHUB_RUN_NUMBER -e GITHUB_RETENTION_DAYS -e GITHUB_RUN_ATTEMPT -e GITHUB_ACTOR -e GITHUB_WORKFLOW -e GITHUB_HEAD_REF -e GITHUB_BASE_REF -e GITHUB_EVENT_NAME -e GITHUB_SERVER_URL -e GITHUB_API_URL -e GITHUB_GRAPHQL_URL -e GITHUB_REF_NAME -e GITHUB_REF_PROTECTED -e GITHUB_REF_TYPE -e GITHUB_WORKSPACE -e GITHUB_ACTION -e GITHUB_EVENT_PATH -e GITHUB_ACTION_REPOSITORY -e GITHUB_ACTION_REF -e GITHUB_PATH -e GITHUB_ENV -e GITHUB_STEP_SUMMARY -e RUNNER_OS -e RUNNER_ARCH -e RUNNER_NAME -e RUNNER_TOOL_CACHE -e RUNNER_TEMP -e RUNNER_WORKSPACE -e ACTIONS_RUNTIME_URL -e ACTIONS_RUNTIME_TOKEN -e ACTIONS_CACHE_URL -e GITHUB_ACTIONS=true -e CI=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/_temp/_runner_file_commands":"/github/file_commands" -v "/home/runner/work/ITKSphinxExamples/ITKSphinxExamples":"/github/workspace" 372a9e:9c7[6](https://github.com/InsightSoftwareConsortium/ITKSphinxExamples/runs/5692386578?check_suite_focus=true#step:13:6)9e4e4d2d4f578f782731dd643a49
apiKey is required

@tbirdso
Copy link
Contributor Author

tbirdso commented Mar 28, 2022

I stand corrected, the deploy issue in the main branch is here:

4s
Run fleekhq/action-deploy@v[1](https://github.com/InsightSoftwareConsortium/ITKSphinxExamples/runs/5720968997?check_suite_focus=true#step:13:1)
  with:
    apiKey: ***
  env:
    pythonLocation: /opt/hostedtoolcache/Python/3.8.1[2](https://github.com/InsightSoftwareConsortium/ITKSphinxExamples/runs/5720968997?check_suite_focus=true#step:13:2)/x64
/usr/bin/docker run --name a9e[3](https://github.com/InsightSoftwareConsortium/ITKSphinxExamples/runs/5720968997?check_suite_focus=true#step:13:3)11291[4](https://github.com/InsightSoftwareConsortium/ITKSphinxExamples/runs/5720968997?check_suite_focus=true#step:13:4)1bd734c4498779620dd[5](https://github.com/InsightSoftwareConsortium/ITKSphinxExamples/runs/5720968997?check_suite_focus=true#step:13:5)53b28_[6](https://github.com/InsightSoftwareConsortium/ITKSphinxExamples/runs/5720968997?check_suite_focus=true#step:13:6)6adf5 --label 3[7](https://github.com/InsightSoftwareConsortium/ITKSphinxExamples/runs/5720968997?check_suite_focus=true#step:13:7)2a9e --workdir /github/workspace --rm -e pythonLocation -e INPUT_APIKEY -e INPUT_WORKDIR -e INPUT_COMMITHASH -e HOME -e GITHUB_JOB -e GITHUB_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_REPOSITORY_OWNER -e GITHUB_RUN_ID -e GITHUB_RUN_NUMBER -e GITHUB_RETENTION_DAYS -e GITHUB_RUN_ATTEMPT -e GITHUB_ACTOR -e GITHUB_WORKFLOW -e GITHUB_HEAD_REF -e GITHUB_BASE_REF -e GITHUB_EVENT_NAME -e GITHUB_SERVER_URL -e GITHUB_API_URL -e GITHUB_GRAPHQL_URL -e GITHUB_REF_NAME -e GITHUB_REF_PROTECTED -e GITHUB_REF_TYPE -e GITHUB_WORKSPACE -e GITHUB_ACTION -e GITHUB_EVENT_PATH -e GITHUB_ACTION_REPOSITORY -e GITHUB_ACTION_REF -e GITHUB_PATH -e GITHUB_ENV -e GITHUB_STEP_SUMMARY -e RUNNER_OS -e RUNNER_ARCH -e RUNNER_NAME -e RUNNER_TOOL_CACHE -e RUNNER_TEMP -e RUNNER_WORKSPACE -e ACTIONS_RUNTIME_URL -e ACTIONS_RUNTIME_TOKEN -e ACTIONS_CACHE_URL -e GITHUB_ACTIONS=true -e CI=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/_temp/_runner_file_commands":"/github/file_commands" -v "/home/runner/work/ITKSphinxExamples/ITKSphinxExamples":"/github/workspace" 372a9e:31129141bd734c449[8](https://github.com/InsightSoftwareConsortium/ITKSphinxExamples/runs/5720968997?check_suite_focus=true#step:13:8)77[9](https://github.com/InsightSoftwareConsortium/ITKSphinxExamples/runs/5720968997?check_suite_focus=true#step:13:9)620dd553b28
Executing sites deploy
.fleek.json must exist [ [ [] ] ]
    Error: .fleek.json must exist
Site deployment failed

The fleek Github Actions repo contains an example of .fleek.json.

tbirdso added a commit that referenced this issue Mar 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant