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
AttributeError: module 'numpy' has no attribute '_no_nep50_warning' when importing TensorFlow Federated #4367
Comments
Same problem for the same source code. Using the link for Google Colab I got: CODE2: OUTPUT_ERROR: (getting from import tensorflow_federated) I tried to solve it installing the required packages hoping better results, but I kept getting version conflicts from many packages. |
Same issue, how did you fix that, if ever? |
Any updates? I'm facing the same issue. |
Currently I can't get a solution if I get a solution I will let you know
…On Wed, 31 Jan, 2024, 7:26 pm boxer-code, ***@***.***> wrote:
Any updates? I'm facing the same issue.
—
Reply to this email directly, view it on GitHub
<#4367 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIGLYPU5BZSEWY6NG27ZR3TYRJEQVAVCNFSM6AAAAABASQ5FU2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMJZGE2TCMJSHE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Commenting in case a solution is available. Facing the same issue with |
Sorry for coming in late. The problem you are likely seeing is that the runtime you are using in colab has an older version of numpy or an older version of TFF. Some solutions...
|
Description:
While trying to use TensorFlow Federated (TFF), I encountered an AttributeError upon importing the tensorflow_federated module. The error message specifically states:
AttributeError: module 'numpy' has no attribute '_no_nep50_warning'
Environment:
Python version: Python 3.10.12
Steps to reproduce:
Run the following Python code:
Python
import tensorflow_federated as tff
Use code with caution. Learn more
Observe the AttributeError message.
Expected behavior:
Importing tensorflow_federated should not cause any errors.
Actual behavior:
The AttributeError message indicates an unexpected internal issue within NumPy, potentially preventing proper initialization of TensorFlow Federated.
source code https://github.com/tensorflow/federated/blob/v0.66.0/docs/tutorials/federated_learning_for_image_classification.ipynb
The text was updated successfully, but these errors were encountered: