From d06ca05670cd40d20c3aec330cdefd7a0e2db25e Mon Sep 17 00:00:00 2001 From: kasparovabi <104397842+kasparovabi@users.noreply.github.com> Date: Fri, 23 Oct 2026 15:10:35 +0300 Subject: [PATCH 1/2] Remove unused cgitb import from live imaging example cgitb was removed from the standard library in Python 3.13 (PEP 594), so the example stopped at import with ModuleNotFoundError. The imported name was never used; enable="Off" further down is a keyword argument to Client.scan. --- examples/live_imaging/taking_an_image_every_minute.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/examples/live_imaging/taking_an_image_every_minute.py b/examples/live_imaging/taking_an_image_every_minute.py index 44e6be70..a8f2938f 100644 --- a/examples/live_imaging/taking_an_image_every_minute.py +++ b/examples/live_imaging/taking_an_image_every_minute.py @@ -11,8 +11,6 @@ before saving the final image. """ -from cgitb import enable - import deapi import matplotlib.pyplot as plt import time From 0c7a210d02919f60400a7bd0e390936338e18103 Mon Sep 17 00:00:00 2001 From: kasparovabi <104397842+kasparovabi@users.noreply.github.com> Date: Fri, 23 Oct 2026 15:10:55 +0300 Subject: [PATCH 2/2] Add changelog fragment for #70 --- upcoming_changes/70.doc.rst | 1 + 1 file changed, 1 insertion(+) create mode 100644 upcoming_changes/70.doc.rst diff --git a/upcoming_changes/70.doc.rst b/upcoming_changes/70.doc.rst new file mode 100644 index 00000000..ec5eb5b2 --- /dev/null +++ b/upcoming_changes/70.doc.rst @@ -0,0 +1 @@ +Removed an unused ``cgitb`` import from the live imaging example, which stopped it from running on Python 3.13.