Skip to content
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

[<Ray component: RLlib] module 'numpy' has no attribute 'product' #46250

Closed
revealAi opened this issue Jun 25, 2024 · 3 comments
Closed

[<Ray component: RLlib] module 'numpy' has no attribute 'product' #46250

revealAi opened this issue Jun 25, 2024 · 3 comments
Assignees
Labels
bug Something that is supposed to be working; but isn't P2 Important issue, but not time-critical rllib RLlib related issues rllib-oldstack-cleanup Issues related to cleaning up classes, utilities on the old API stack

Comments

@revealAi
Copy link

What happened + What you expected to happen

Cannot use Ray RLlib with numpy version 2.0.

Versions / Dependencies

ray[rllib]==2.30.0
numpy==2.0

Reproduction script

pip3 install ray[rllib]==2.30.0 numpy==2.0

Run any examples that use RLlib.

Issue Severity

High: It blocks me from completing my task.

@revealAi revealAi added bug Something that is supposed to be working; but isn't triage Needs triage (eg: priority, bug/not-bug, and owning component) labels Jun 25, 2024
@anyscalesam anyscalesam added the rllib RLlib related issues label Jul 2, 2024
@simonsays1980
Copy link
Collaborator

@revealAi Thanks for raising this issue. The mentioned PR should fix this error. These errors should however only occur in our old stack. Using the new stack should have np.prod in all logic. Maybe you want to give it a try.

@simonsays1980 simonsays1980 added P3 Issue moderate in impact or severity rllib-oldstack-cleanup Issues related to cleaning up classes, utilities on the old API stack and removed triage Needs triage (eg: priority, bug/not-bug, and owning component) labels Jul 9, 2024
@simonsays1980 simonsays1980 self-assigned this Jul 9, 2024
@sven1977
Copy link
Contributor

If you can't move to the latest master (the above PR will be merged any hour now), can you try:

pip install numpy==1.24.3

That fixed it in my case (being on an older RLlib version).

@sven1977 sven1977 added P2 Important issue, but not time-critical and removed P3 Issue moderate in impact or severity labels Jul 11, 2024
@sven1977
Copy link
Contributor

sven1977 commented Aug 7, 2024

Closing this issue.

@sven1977 sven1977 closed this as completed Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something that is supposed to be working; but isn't P2 Important issue, but not time-critical rllib RLlib related issues rllib-oldstack-cleanup Issues related to cleaning up classes, utilities on the old API stack
Projects
None yet
Development

No branches or pull requests

4 participants