Skip to content

Unable to run examples #724

@cmhernandezdel

Description

@cmhernandezdel

I was trying to create a RL agent and train it, so I went into the examples and they are obsolete for versions >= 0.8.4 since Gen8EnvSinglePlayer and similar classes no longer exist. However, I downgraded to 0.8.3 and tried to run the example again, and got this:

  File "/home/cmhernandezdel/Source/pokemon-showdown-rl/examples/rl_with_open_ai_gym_wrapper.py", line 10, in <module>
    from poke_env.player import Gen8EnvSinglePlayer, RandomPlayer
ImportError: cannot import name 'Gen8EnvSinglePlayer' from 'poke_env.player'

VSCode can detect the reference so I don't think there is a problem with the exporting (maybe a circular reference?).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions