Skip to content

Render as image #5

@ndvbd

Description

@ndvbd

When trying to render as image (and not as text in console):

env = gym.make('gym_backgammon:backgammon-v0', disable_env_checker=True)
mode = 'rgb_array'

I get:

    arr = np.fromstring(image_data.data, dtype=np.uint8, sep='')
AttributeError: 'ImageData' object has no attribute 'data'

I solved the issue in: https://github.com/ndvbd/gym-backgammon

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