Skip to content

gymnasium.vector.AsyncVectorEnv's "cannot pickle '.lock' object"#12

Open
HYAdev wants to merge 2 commits intoORNL:releasefrom
HYAdev:async-fix
Open

gymnasium.vector.AsyncVectorEnv's "cannot pickle '.lock' object"#12
HYAdev wants to merge 2 commits intoORNL:releasefrom
HYAdev:async-fix

Conversation

@HYAdev
Copy link
Copy Markdown

@HYAdev HYAdev commented Jun 27, 2025

  • Had this issue at least on the M1 Pro Macbook
  • Separated the call to AsyncVectorEnv and make_env() into a separate file async_call.py
  • To assign the Trainer object's max_action_space_size, I added the value to _init's function annotations
  • Refer to [Bug Report] AsyncVectorEnv gets TypeError  openai/gym#2883 for original fix proposal

@HYAdev HYAdev changed the title Resolved gymnasium.vector.AsyncVectorEnv's "cannot pickle '.lock' object" issue gymnasium.vector.AsyncVectorEnv's "cannot pickle '.lock' object" Jun 27, 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

Successfully merging this pull request may close these issues.

1 participant