From 052f9a31284ffd0fd1ac5ae928be017d1ae14c59 Mon Sep 17 00:00:00 2001 From: Michael Reneer Date: Tue, 16 Aug 2022 10:01:38 -0700 Subject: [PATCH] Update the version of `numpy` to `1.23.2`. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Updated the numpy version. * Synced the pandas version. In Python 3.10, if you invoke `pip install pandas~=1.1.4 numpy~=1.21.4` and then `import pandas` you get the following error: ``` >>> import pandas Traceback (most recent call last):   File "", line 1, in   File "/tmp/venv/lib/python3.10/site-packages/pandas/__init__.py", line 30, in     from pandas._libs import hashtable as _hashtable, lib as _lib, tslib as _tslib   File "/tmp/venv/lib/python3.10/site-packages/pandas/_libs/__init__.py", line 13, in     from pandas._libs.interval import Interval   File "pandas/_libs/interval.pyx", line 1, in init pandas._libs.interval ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject ``` I believe that this is the cause of the issue https://github.com/scikit-learn-contrib/hdbscan/issues/457#issuecomment-773671043 PiperOrigin-RevId: 467952859 --- requirements.txt | 2 +- setup.py | 4 ++-- tensorflow_privacy/version.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/requirements.txt b/requirements.txt index 64ef53c..59aeb8f 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,7 +4,7 @@ dm-tree~=0.1.7 dp-accounting~=0.1.2 matplotlib~=3.3.4 mpmath~=1.2.1 -numpy~=1.21.4 +numpy~=1.23.2 pandas~=1.4.3 scikit-learn~=1.0.2 scipy~=1.7.1 diff --git a/setup.py b/setup.py index 3a4ae36..464f01e 100644 --- a/setup.py +++ b/setup.py @@ -32,8 +32,8 @@ setup( 'dm-tree~=0.1.7', 'dp-accounting~=0.1.2', 'matplotlib~=3.3.4', - 'numpy~=1.21.4', - 'pandas~=1.1.4', + 'numpy~=1.23.2', + 'pandas~=1.4.3', 'scikit-learn~=1.0.2', 'scipy~=1.7.1', 'tensorflow-datasets~=4.5.2', diff --git a/tensorflow_privacy/version.py b/tensorflow_privacy/version.py index 83e7fc0..3c50f98 100644 --- a/tensorflow_privacy/version.py +++ b/tensorflow_privacy/version.py @@ -13,4 +13,4 @@ # limitations under the License. """TensorFlow Privacy version.""" -__version__ = '0.8.4' +__version__ = '0.8.5'