We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
To reproduce (with gym 0.26+ and highway env 1.7.0):
import highway_env env = gym.make("parking-v0", render_mode="human")
File ~/miniconda3/envs/py31/lib/python3.11/site-packages/gym/envs/registration.py:640, in make(id, max_episode_steps, autoreset, apply_api_compatibility, disable_env_checker, **kwargs) 637 render_mode = None 639 try: --> 640 env = env_creator(**_kwargs) 641 except TypeError as e: 642 if ( 643 str(e).find("got an unexpected keyword argument 'render_mode'") >= 0 644 and apply_human_rendering 645 ): TypeError: ParkingEnv.__init__() got an unexpected keyword argument 'render_mode'
Note that it works for the other envs. Oh, and you need to upgrade as "racetrack-v0" breaks with numpy 1.24:
File ~/miniconda3/envs/py31/lib/python3.11/site-packages/highway_env/envs/common/observation.py:270, in OccupancyGridObservation.__init__(self, env, features, grid_size, grid_step, features_range, absolute, align_to_vehicle_axes, clip, as_image, **kwargs) 268 self.grid_size = np.array(grid_size) if grid_size is not None else np.array(self.GRID_SIZE) 269 self.grid_step = np.array(grid_step) if grid_step is not None else np.array(self.GRID_STEP) --> 270 grid_shape = np.asarray(np.floor((self.grid_size[:, 1] - self.grid_size[:, 0]) / self.grid_step), dtype=np.int) 271 self.grid = np.zeros((len(self.features), *grid_shape)) 272 self.features_range = features_range File ~/miniconda3/envs/py31/lib/python3.11/site-packages/numpy/__init__.py:284, in __getattr__(attr) 281 from .testing import Tester 282 return Tester --> 284 raise AttributeError("module {!r} has no attribute " 285 "{!r}".format(__name__, attr)) AttributeError: module 'numpy' has no attribute 'int'
The text was updated successfully, but these errors were encountered:
f2ed06f
Thanks a lot for the detailed bug report! This is now fixed at head
Edit: released v1.7.1
Sorry, something went wrong.
merci =)
No branches or pull requests
To reproduce (with gym 0.26+ and highway env 1.7.0):
Note that it works for the other envs.
Oh, and you need to upgrade as "racetrack-v0" breaks with numpy 1.24:
The text was updated successfully, but these errors were encountered: