From e42df7c876d50b26b9857348d4b6d9fb94aec066 Mon Sep 17 00:00:00 2001 From: nstelter-slac Date: Tue, 17 Dec 2024 12:54:02 -0800 Subject: [PATCH] MNT: fix error when using numpy 2+ If you specify python 3.10+ in the conda install, numpy will then be installed with the latest version 2.20. Updated numpy has removed np.compat.long, which was for compatibility with python 2's 'long' variable, and we don't support python 2. ('long' is replaced with the just an expanded 'int' in python 3). --- pydm/data_plugins/epics_plugins/pva_codec.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pydm/data_plugins/epics_plugins/pva_codec.py b/pydm/data_plugins/epics_plugins/pva_codec.py index 0859b86bc..dbafcf342 100644 --- a/pydm/data_plugins/epics_plugins/pva_codec.py +++ b/pydm/data_plugins/epics_plugins/pva_codec.py @@ -12,7 +12,7 @@ np.int8, np.int16, np.int32, - np.compat.long, + np.int64, # same as np.long np.uint8, np.uint16, np.uint32,