Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AssertionError: OpenPlanet stopped sending data since more than 10.0s. #123

Closed
ger3tto opened this issue Feb 2, 2025 · 0 comments
Closed

Comments

@ger3tto
Copy link

ger3tto commented Feb 2, 2025

why does this happen? i'm trying to test out the live screenshot enviroment, and everytime i try to launch it, it just gives me this errror

INFO:root:02/02/25 15:40:59 server IP: 127.0.0.1
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "F:\python\Lib\site-packages\tmrl\__main__.py", line 88, in <module>
    main(arguments)
    ~~~~^^^^^^^^^^^
  File "F:\python\Lib\site-packages\tmrl\__main__.py", line 43, in main
    rw.run_episodes(10000)
    ~~~~~~~~~~~~~~~^^^^^^^
  File "F:\python\Lib\site-packages\tmrl\networking.py", line 674, in run_episodes
    self.run_episode(max_samples_per_episode, train=train)
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "F:\python\Lib\site-packages\tmrl\networking.py", line 693, in run_episode
    obs, info = self.reset(collect_samples=False)
                ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
  File "F:\python\Lib\site-packages\tmrl\networking.py", line 572, in reset
    new_obs, info = self.env.reset()
                    ~~~~~~~~~~~~~~^^
  File "F:\python\Lib\site-packages\gymnasium\core.py", line 328, in reset
    return self.env.reset(seed=seed, options=options)
           ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "F:\python\Lib\site-packages\gymnasium\wrappers\common.py", line 400, in reset
    return super().reset(seed=seed, options=options)
           ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "F:\python\Lib\site-packages\gymnasium\core.py", line 328, in reset
    return self.env.reset(seed=seed, options=options)
           ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "F:\python\Lib\site-packages\rtgym\envs\real_time_env.py", line 514, in reset
    elt, info = self.interface.reset(seed=seed, options=options)
                ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "F:\python\Lib\site-packages\tmrl\custom\custom_gym_interfaces.py", line 148, in reset
    data, img = self.grab_data_and_img()
                ~~~~~~~~~~~~~~~~~~~~~~^^
  File "F:\python\Lib\site-packages\tmrl\custom\custom_gym_interfaces.py", line 125, in grab_data_and_img
    data = self.client.retrieve_data()
  File "F:\python\Lib\site-packages\tmrl\custom\utils\tools.py", line 72, in retrieve_data
    assert t_now - t_start < timeout, f"OpenPlanet stopped sending data since more than {timeout}s."
           ^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: OpenPlanet stopped sending data since more than 10.0s.
@ger3tto ger3tto closed this as completed Feb 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant