Skip to content

Commit

Permalink
fix gym instead of gymansium
Browse files Browse the repository at this point in the history
  • Loading branch information
andreaostuni committed Jan 5, 2024
1 parent 14cfc32 commit 3e11996
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion python/gym_gz/utils/scenario.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from typing import List, Tuple, Union

import gym.spaces
import gymnasium as gym
import gym_gz_models
import numpy as np

Expand Down
2 changes: 1 addition & 1 deletion python/gym_gz/utils/typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from typing import Dict, List, NewType, Tuple, Union

import gym.spaces
import gymnasium as gym
import numpy as np

Terminated = NewType("Terminated", bool)
Expand Down
2 changes: 1 addition & 1 deletion scenario/bindings/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ def import_gazebo() -> None:
if os.environ.get("SCENARIO_DISABLE_TENSORFLOW_PRELOAD") != "1":
preload_tensorflow_shared_libraries()

# Import gym before scenario.bindings.gazebo. Similarly to tensorflow, also gym
# import gymnasium before scenario.bindings.gazebo. Similarly to tensorflow, also gym
# includes a module that imports protobuf, producing a similar segfault.
if os.environ.get("SCENARIO_DISABLE_GYM_PREIMPORT") != "1":
pre_import_gym()
Expand Down

0 comments on commit 3e11996

Please sign in to comment.