Submit failed: No module named 'torch'

Warning: Gym version v0.24.1 has a number of critical issues with gym.make such that environment observation and action spaces are incorrectly evaluated, raising incorrect errors and warning . It is recommend to downgrading to v0.23.1 or upgrading to v0.25.1
Traceback (most recent call last):
File “”, line 4, in
from agents.orderenforcingwrapper import OrderEnforcingAgent
File “/home/aicrowd/agents/”, line 2, in
from agents.DQNAgent import UserAgent
File “/home/aicrowd/agents/”, line 11, in
import torch
ModuleNotFoundError: No module named ‘torch’

Can anyone tell me how to solve such kind of problem? Thanks a lot

I don’t know if you’re aware but in order to configure the runtime, you need to submit also the requirements.txt for your agent, in that case, you need to add PyTorch there.

Probably that’s causing you the error.

Thanks a lot ~it works

You have more instructions on how to package your runtime here : AIcrowd / Challenges / CityLearn Challenge 2022 / citylearn-2022-starter-kit · GitLab