-
Notifications
You must be signed in to change notification settings - Fork 86
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
IndexError: index 6 is out of bounds for axis 0 with size 1 #11
Comments
Hi, Thanks for reporting. I was able to confirm your issue, which is caused by a recent change in the numpy library. See the link below for more details: To fix this you simply need to replace "np.float" with "float" in the files DQN/learn/generateMap.py and DQN/confirm_path.py. The problem is then solved, but I encountered some new issues related to changes in the gym library. The error was the following: I tried some quick fixes, but it didn't work, so I was not able to solve the issue, and the student who developed this system left our university a couple of years ago. I may find the time to fix this in the future, but for now you can try to fix the issue by yourself if you can find a way. Best wishes, |
Thanks for your reply. Actually I meet a lot of problems. I would try to find them out.
…---Original---
From: "Cyber Range Organization and Design ***@***.***>
Date: Fri, Feb 24, 2023 12:04 PM
To: ***@***.***>;
Cc: ***@***.******@***.***>;
Subject: Re: [crond-jaist/AutoPentest-DRL] IndexError: index 6 is out ofbounds for axis 0 with size 1 (Issue #11)
Hi,
Thanks for reporting. I was able to confirm your issue, which is caused by a recent change in the numpy library. See the link below for more details:
https://levelup.gitconnected.com/fix-attributeerror-module-numpy-has-no-attribute-float-d7d68c5a4971
To fix this you simply need to replace "np.float" with "float" in the files DQN/learn/generateMap.py and DQN/confirm_path.py.
The problem is then solved, but I encountered some new issues related to changes in the gym library. The error was the following:
AssertionError: The environment must specify an observation space. https://www.gymlibrary.dev/content/environment_creation/
I tried some quick fixes, but it didn't work, so I was not able to solve the issue, and the student who developed this system left our university a couple of years ago. I may find the time to fix this in the future, but for now you can try to fix the issue by yourself if you can find a way.
Best wishes,
Razvan
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
I change the version and add to the requirements.txt and the problem is sloved.There is my version |
Hi, |
Hi,I'm trying to run the code,but found multiple errors,such as
1.module 'numpy' has no attribute 'float'
2.IndexError: index 6 is out of bounds for axis 0 with size 1
May I ask you about numpy's version?
The text was updated successfully, but these errors were encountered: