Comments (4)
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
from autopentest-drl.
from autopentest-drl.
I change the version and add to the requirements.txt and the problem is sloved.There is my version
gym==0.13.0
torch==1.10.2
matplotlib==3.3.4
graphviz==0.19.1
jinja2==3.0.3
msgpack==1.0.4
requests==2.18.4
from autopentest-drl.
Hi,
Thank you for investigating the issue and posting the requirements.txt file. I shall test it on my side as well in the following weeks, and if everything goes well I'll update the file in the repository. I'll keep this issue open for now though, until I get to update the repository.
Best wishes,
Razvan
from autopentest-drl.
Related Issues (19)
- AutoPentest-DRL code HOT 5
- mulval topology template HOT 7
- target '../../bin/adapter' is not a directory HOT 2
- OSError: ../processdata/newmap.txt not found. HOT 2
- jinja2.exceptions.TemplateNotFound:
- FileNotFoundError: top_info_1.json HOT 2
- How to get data?
- FileNotFoundError: ../processdata/newmap.txt not found. HOT 2
- Common Issues and Fixes
- Hello. I am getting the following errors while executing the project. How can I fix this? I have set up everything according tp the readme file except etc configuration. I am using macos and pycharm. HOT 2
- autopentest-drl.py HOT 1
- mulval HOT 1
- target drone HOT 1
- about article HOT 1
- FileNotFound error HOT 3
- Evaluating the model HOT 5
- can`t install dependencies MulVAL HOT 1
- AssertionError: The environment must specify an observation space HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from autopentest-drl.