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

Program crashes when using Python 3.8 or greater #1

Open
JonathanB05 opened this issue Dec 27, 2020 · 0 comments · May be fixed by #2
Open

Program crashes when using Python 3.8 or greater #1

JonathanB05 opened this issue Dec 27, 2020 · 0 comments · May be fixed by #2

Comments

@JonathanB05
Copy link

When I run the program using Python 3.7.4, the program runs.
However, when I try to run the program using Python 3.8.5, I get the following error:

Traceback (most recent call last):
  File "__main__.py", line 10, in <module>
    menu_quit, debug = game.main_menu(i, win)
  File "game.py", line 29, in main_menu
    update_keyboard_menu(menu_spot, last_toggle, debug_state, frame)
  File "lib.py", line 34, in update_keyboard_menu
    if (pressed[pygame.K_UP] or pressed[pygame.K_w]) and (pressed[pygame.K_DOWN] or pressed[pygame.K_s]):
IndexError: list index out of range

The same occurs if I run the program use Python 3.9.1.

I noticed that on my computer, Python 3.7 is using Pygame 1.9.6 and Python 3.8 is using Pygame 2.0.0, so this might have something to do with the issue.

@JonathanB05 JonathanB05 linked a pull request Dec 27, 2020 that will close this issue
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 a pull request may close this issue.

1 participant