Skip to content
New issue

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

[Bug Rerport] program get's killed when render_mode="human" in Ubuntu #1266

Open
1 task done
VachanVY opened this issue Feb 22, 2025 · 0 comments
Open
1 task done
Labels
bug Something isn't working

Comments

@VachanVY
Copy link

VachanVY commented Feb 22, 2025

Describe the bug

Image
I get the above, when I run any env in render_mode="human"

code to reproduce error

%pip install 'pettingzoo[classic]'

from pettingzoo.classic import tictactoe_v3

# Initialize the environment
env = tictactoe_v3.env(render_mode="human")
env.reset()

# Game loop
for agent in env.agent_iter():
    env.render()  # Render the board
    
    observation, reward, termination, truncation, info = env.last()
    
    if termination or truncation:
        action = None  # No action if the game is over
    else:
        action = int(input(f"Agent {agent}, enter your move (0-8): "))  # Human input

    env.step(action)  # Apply the action

Image
(Not a VS code problem, (happens when I run it in terminal also)

btw I've noticed this problem also in the gymnasium library

Code example

System info

pip installed
pettingzoo.__version__ = '1.24.3'
OS: Ubuntu

Additional context

No response

Checklist

  • I have checked that there is no similar issue in the repo
@VachanVY VachanVY added the bug Something isn't working label Feb 22, 2025
@VachanVY VachanVY changed the title [Bug Rerport] program get's killed when render_mode="human" [Bug Rerport] program get's killed when render_mode="human" in Ubuntu Feb 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant