Skip to content

Commit

Permalink
Update the version of numpy to 1.23.2.
Browse files Browse the repository at this point in the history
* 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 "<stdin>", line 1, in <module>
  File "/tmp/venv/lib/python3.10/site-packages/pandas/__init__.py", line 30, in <module>
    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 <module>
    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 scikit-learn-contrib/hdbscan#457 (comment)

PiperOrigin-RevId: 467785781
  • Loading branch information
michaelreneer authored and tensorflower-gardener committed Aug 16, 2022
1 parent 40d73ed commit 9db7dfb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
'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',
Expand Down
2 changes: 1 addition & 1 deletion tensorflow_privacy/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# limitations under the License.
"""TensorFlow Privacy version."""

__version__ = '0.8.4'
__version__ = '0.8.5'

0 comments on commit 9db7dfb

Please sign in to comment.