openai / gym

A toolkit for developing and comparing reinforcement learning algorithms.
https://www.gymlibrary.dev
Other
34.58k stars 8.59k forks source link

Env.reset () is error #3261

Open P3ngh4ncur opened 6 months ago

P3ngh4ncur commented 6 months ago

ValueError Traceback (most recent call last) /tmp/ipykernel_6692/801256707.py in ----> 1 ob = env.reset(); # Reset the env (create the EnergyPlus subprocess)

~/virt_env/lib/python3.10/site-packages/gym/wrappers/order_enforcing.py in reset(self, kwargs) 40 """Resets the environment with kwargs.""" 41 self._has_reset = True ---> 42 return self.env.reset(kwargs) 43 44 def render(self, *args, **kwargs):

~/virt_env/lib/python3.10/site-packages/gym/wrappers/env_checker.py in reset(self, kwargs) 43 if self.checked_reset is False: 44 self.checked_reset = True ---> 45 return env_reset_passive_checker(self.env, kwargs) 46 else: 47 return self.env.reset(**kwargs)

~/virt_env/lib/python3.10/site-packages/gym/utils/passive_env_checker.py in env_reset_passive_checker(env, kwargs) 190 191 # Checks the result of env.reset with kwargs --> 192 result = env.reset(kwargs) 193 194 if not isinstance(result, tuple):

~/Gym-Eplus/eplus_env/envs/eplus9_5.py in reset(self) 169 self.logger_main.debug('Got the first message successfully: ' + rcv_1st); 170 version, flag, nDb, nIn, nBl, curSimTim, Dblist \ --> 171 = self._disassembleMsg(rcv_1st); 172 ret.append(curSimTim); 173 ret.append(Dblist);

~/Gym-Eplus/eplus_env/envs/eplus9_5.py in _disassembleMsg(self, rcv) 444 def _disassembleMsg(self, rcv): 445 rcv = rcv.split(' '); --> 446 version = int(rcv[0]); 447 flag = int(rcv[1]); 448 nDb = int(rcv[2]);

ValueError: invalid literal for int() with base 10: 'ÆLº\x9fÖU2'

anybody can help me to solved this error?

pseudo-rnd-thoughts commented 6 months ago

What version of EnergyPlus are you using? https://github.com/mpipatta/EnergyPlus-Gym specifies that EnergyPlus v8.7 or v8.6 is required

P3ngh4ncur commented 6 months ago

EnergyPlus v9.5 but, i trying in v9.6 is working. maybe the Ubuntu version making this problem?