Skip to content

Problem with Gym Version Compatibility #49

@Light7Rain

Description

@Light7Rain

While testing the Webshop environment, I encountered an issue when using Gym version v0.24.0. Executing the following code results in a warning message indicating that the gym.make function improperly calls the reset and step methods before returning the environment object:

sh run_web_agent_text_env.sh

The specific warning message is as follows:

Warning: Gym version v0.24.0 has a number of critical issues with `gym.make` such that the `reset` and `step` functions are called before returning the environment. It is recommended to downgrade to v0.23.1 or upgrade to v0.25.1.

To resolve this issue, I downgraded Gym to version v0.23.1, as upgrading to v0.25.1 introduced additional problems that did not help in solving the original issue. After downgrading to v0.23.1 and retesting, no warnings were observed, and the environment worked as expected.

Given the known issues with Gym v0.24.0, might it be possible to specify the use of Gym v0.23.1 in the project dependencies? This would prevent other users from encountering the same problem.

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions