Limmen / gym-optimal-intrusion-response

A Simulated Optimal Intrusion Response Game
Creative Commons Attribution Share Alike 4.0 International
19 stars 5 forks source link

gym-optimal-intrusion-response cannot gym.make #1

Closed wangzepeng111 closed 2 years ago

wangzepeng111 commented 2 years ago

After I installed gym-optimal-intrusion-response

# git clone and install from source git clone https://github.com/Limmen/gym-optimal-intrusion-response cd gym-optimal-intrusion-response pip3 install -e .

I use it by

import gym from gym_idsgame.envs import IdsGameEnv env_name = "optimal-intrusion-response-v1" env = gym.make(env_name)

but I had a problem

gym.error.UnregisteredEnv: No registered env with id: optimal-intrusion-response-v1

Limmen commented 2 years ago

Hi, you need to import from gym_optimal_intrusion_response.envs.optimal_intrusion_response_env import OptimalIntrusionResponseEnv. You have imported the wrong environment from gym_idsgame.envs import IdsGameEnv

wangzepeng111 commented 2 years ago

Thank you for your response .When I try to import from gym_optimal_intrusion_response.envs.optimal_intrusion_response_env import OptimalIntrusionResponseEnv ,No module named 'gym_pycr_ctf'.I feel sorry that i cannot to resolve it by myself

Limmen commented 2 years ago

Hi, I recommend using this environment for now: https://github.com/Limmen/gym-idsgame

I will release and update to this environment in the future to make it more stable, I will let you know then.

Best- Kim

wangzepeng111 commented 2 years ago

Thank you