Giter Site home page Giter Site logo

Comments (4)

 avatar commented on August 23, 2024

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.

Arashiailing avatar Arashiailing commented on August 23, 2024

from autopentest-drl.

Arashiailing avatar Arashiailing commented on August 23, 2024

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.

 avatar commented on August 23, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.