From da50a9d51345f1e8668113192faefaa86a7e587d Mon Sep 17 00:00:00 2001 From: Thomas A Caswell Date: Mon, 25 Nov 2024 13:36:26 -0500 Subject: [PATCH] MNT: try to avoid segfaults --- ophyd/_pyepics_shim.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ophyd/_pyepics_shim.py b/ophyd/_pyepics_shim.py index 118ee20d8..289abd128 100644 --- a/ophyd/_pyepics_shim.py +++ b/ophyd/_pyepics_shim.py @@ -7,6 +7,10 @@ from ._dispatch import EventDispatcher, _CallbackThread, wrap_callback +# suspect attempt to monkey-patch printf is causing segfaults +if hasattr(ca, 'WITH_CA_MESSAGES'): + ca.WITH_CA_MESSAGES = True + _min_pyepics = "3.4.2" if parse(epics.__version__) < parse(_min_pyepics):