Skip to content

Solved: 2 tests for gradio app launch failed on windows + investigation of pytest warnings

ofhkr requested to merge solve_warnings into main

The tests:
qim3d/tests/gui/test_annotation_tool.py::test_app_launch
qim3d/tests/gui/test_iso3d.py::test_app_launch
Failed on the windows system, therefore they have been modified to use 'localhost' instead of '0.0.0.0'.

Regarding the warnings seen during the pytest runs, there were 15 warnings on the linux system with python 3.9.11 and 148 warnings on the Windows system with python 3.11.7.

The shared 15 warnings were:

  • 12 warnings from MONAI (deprecations such as site-packages/monai/utils/module.py:402 DeprecationWarning: Please use label from the scipy.ndimage namespace, the scipy.ndimage.measurements namespace is deprecated.)
  • 3 warnings from test/viz/.. (deprecation warning for matplotlib.cmap.get_cmap, changed to matplotlib.colormaps.get_cmap.

The remaining 133 in Windows:

  • 129 warnings related to deprecations and slated for removal in Pythton 3.12 (importlib._bootstrap_external, related to Python version. Not a warning for Python 3.9.11)
  • 4 warnings related to deprecations: (..venv\Lib\site-packages\pkg_resources__init__.py:2871: DeprecationWarning: Deprecated call to pkg_resources.declare_namespace('sphinxcontrib').)

All warnings that could be resolved, have been resolved. The remaining are related to Python versions or other packages.

Merge request reports

Loading