Qi-Pang / MDPFuzz

Official implementation of ISSTA 2022 paper: MDPFuzz: Testing Models Solving Markov Decision Processes.
MIT License
20 stars 3 forks source link

Errors in replicating BipedalWalker: TypeError: reset() takes 1 positional argument but 2 were given #1

Closed dennis9707 closed 1 year ago

dennis9707 commented 1 year ago

When replicating the code for the BipedalWalker game, I encountered the following error:

Traceback (most recent call last):
  File "enjoy.py", line 311, in <module>
    main()
  File "enjoy.py", line 151, in main
    obs = env.reset(states)
TypeError: reset() takes 1 positional argument but 2 were given

I follow the instructions given to set up the environment and use the command python enjoy.py --alg tqc --env BipedalWalkerHardcore-v3 --folder rl-trained-agents/ --em to start fuzz testing

I notice that in the original implementation of gym, the reset function only takes 1 positional argument. The code is available here. May I ask how could I solve this problem. Did you change the original implementation of BipedalWalker when running your experiments? Thank you very much

Qi-Pang commented 1 year ago

Hi, thanks a lot for the question and the reminder. Yes, we have modified the gym library to do the environment mutation. The current code is not cleaned and we will try to update the code to make it functional asap (within this month). Please keep tuned.

dennis9707 commented 1 year ago

Thank you very much for the response, I am looking forward to your update!

Hi, thanks a lot for the question and the reminder. Yes, we have modified the gym library to do the environment mutation. The current code is not cleaned and we will try to update the code to make it functional asap (within this month). Please keep tuned.

Qi-Pang commented 1 year ago

Hi, I have updated the missing libraries. Hopefully, it's functional now. Let me know if it's still not working on your end.

dennis9707 commented 1 year ago

Hi Qi-Pang, Thank you very much for the update!