-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ValueError: numpy.ndarray size changed, may indicate binary incompatibility #3
Comments
Suggests an issue with numpy version |
It looks like installing TensorFlow federated installs
|
pip freeze shows
|
Try installing and upgrading numpy and I get the following
However
|
Looks like the versions get set here My guess is its pinning numpy which is incompatible with the default version of pandas but not pinning a version of pandas compatible with that numpy |
pandas 1.1.5 is quite old |
It looks like TensorFlow privacy is pinning 1.1.4 |
Same problem error if I try to pin pandas and numpy as below
I suspect as the stackoverflow answer says this may be due to using a different version for building and install. https://stackoverflow.com/a/66743692/3670531 It looks like its building pandas but using a prebuilt version of numpy so its possible the version of numpy pandas is building against is different from the one installed. |
Lets try forcing pandas to install from a binary
Looks like there is no longer a prebuilt version of pandas available which is why its compiling from source. |
What if we try forcing numpy to be built from source.
Does this cause it to be built from source in a compatible way. |
Note this doesn't appear to be directly related to TensorFlow.
Didn't fix the problem. |
Looks like we can just upgrade pandas after installing it to work around the issue. Filed: tensorflow/privacy#295 |
…eeds * Upgrade to Python 3.10 * Install a bunch of missing git packages * Ran into #3 which can be fixed by upgrading pandas * set_image.sh is a helper script to update the base image in vscode.
The workaround for now is just to upgrade pandas after installing TensorFlow federated. |
After installing TensorFlow federated in a python3.10 image I got the following error on import.
This was in a docker container where I had been manually messing with things. So I'm hoping maybe in a clean build this error doesn't occur.
The text was updated successfully, but these errors were encountered: