Skip to content

Commit 33888c1

Browse files
thewtextbirdso
andcommitted
COMP: Fix traitlets version to 5.6.0
To address #407, notebook CI error: ``` TraitError: label_image_weights shape expected to have 1 components, but got () components ``` Co-authored-by: Tom Birdsong <tom.birdsong@kitware.com>
1 parent 20e3444 commit 33888c1

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/workflows/build-test-publish.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,9 @@ jobs:
245245
python -m pip install itk>=5.3.0
246246
python -m pip install matplotlib
247247
python -m pip install itkwidgets
248+
# Issues with 5.7.0
249+
# https://github.com/InsightSoftwareConsortium/ITKSphinxExamples/issues/407
250+
python -m pip install traitlets==5.6.0
248251
249252
- name: Test notebooks
250253
uses: treebeardtech/nbmake-action@v0.2.1

Superbuild/External-Python.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ ExternalProject_Add(ITKPython
1717
DOWNLOAD_COMMAND ""
1818
CONFIGURE_COMMAND ${PYTHON_EXECUTABLE} -m venv "${_itk_venv}"
1919
BUILD_COMMAND ${ITKPYTHON_EXECUTABLE} -m pip install --upgrade pip
20-
INSTALL_COMMAND ${ITKPYTHON_EXECUTABLE} -m pip install --ignore-installed itk>=5.3.0 sphinx==4.4.0 docutils<0.18 six black nbsphinx ipywidgets sphinx-contributors ipykernel matplotlib itkwidgets[lab,notebook]>=1.0a21 pydata-sphinx-theme
20+
INSTALL_COMMAND ${ITKPYTHON_EXECUTABLE} -m pip install --ignore-installed itk>=5.3.0 sphinx==4.4.0 docutils<0.18 traitlets==5.6.0 six black nbsphinx ipywidgets sphinx-contributors ipykernel matplotlib itkwidgets[lab,notebook]>=1.0a21 pydata-sphinx-theme
2121
COMMAND ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/ITKBlackConfig.cmake
2222
)

0 commit comments

Comments
 (0)