-
Notifications
You must be signed in to change notification settings - Fork 728
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
Errors with numpy 1.24.0 #807
Comments
I had the same problem I tried lowering the numpy version and it didn't help |
@sebastianknopf Would you mind sharing your code? |
Sadly I can't share any code. I needed to switch to a manual implementation. Maybe @zsdadisscy can share some code, since facing the same issue? |
Having a similar issue with error AttributeError: module 'numpy' has no attribute 'bool'. Did you mean: 'bool_'? when importing tf_agents.types. In release 0.15.0, in tf-agents.typing.types.py, line 81 has np.bool. This is not there in the master branch of tf-agents, so I suppose we'll need to wait until this gets pushed to pypi. |
nightly should be working. numpy 0.24. removed np.bool. Long story and it doesn't matter. We were preparing for this; but the holiday's slowed us down. I hope to have an RC and maybe a full release done today. 05-JAN. |
I will ping this thread will progress. |
Update: I have not done a root cause but here is the situation and there is nothing I can do until Tensorflow is updated to support Numpy 1.24.0. Keep in mind Numpy 1.24.0 was released at the end of December 2022. The tl;dr; is you need to install numpy 1.23.5: Using numpy 1.24.0 causes an error as illustrated by running The error is:
I did a test with tf-agents-nightly (which then also uses tf-nightly, dm-reverb-nightly, and tfp-nightly). The test worked with numpy 1.23.5 but again failed with numpy 1.24.0 and tf-nightly (tensorflow) throws a warning during the install of numpy 1.24.0 that tensorflow current supports All of that said, tf-agents has been updated in tf-agents nightly to support numpy 0.24.0 by no longer using |
Thanks for the update! |
Thank you too for the update! |
Python 3.11 is now supported in tf-nightly. Tensorflow 2.12 branch was cut so the next stable will have 3.11. Numpy is still a mess and I don't think TF has moved to 1.24 yet so there must be some struggles. I keep checking as it is annoying. |
I tried to use tf-agents, the latest version. However, if I run a simple class which only extends PyEnvironment but nothing else, I receive an with a message like
module 'numpy' does not contain attribute named 'bool'. Did you mean 'bool_'
There are several similar issues with numpy, sometimes re-installing numpy helps. In my case it didn't, I tried the common workflow of uninstalling setuptools and numpy.
I'm using:
Is there anything I've left?
The text was updated successfully, but these errors were encountered: