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

pygame.error: Surface doesn't have a colorkey #153

Open
ragej4x opened this issue Feb 12, 2024 · 1 comment
Open

pygame.error: Surface doesn't have a colorkey #153

ragej4x opened this issue Feb 12, 2024 · 1 comment

Comments

@ragej4x
Copy link

ragej4x commented Feb 12, 2024

pygame mixer init frequency=44100, size=-16, channels=2, buffer=2048
Task exception was never retrieved
future: <Task finished name='main_loop' coro=<main_loop() done, defined at :9> exception=error("Surface doesn't have a colorkey")>
Traceback (most recent call last):
File "", line 360, in main_loop
File "", line 109, in init
pygame.error: Surface doesn't have a colorkey

@pmp-p
Copy link
Member

pmp-p commented Feb 12, 2024

Please share complete project if you cannot explain what you are trying to do, because this is not a proper bug report.

i can only guess you forgot numpy at top of main.py and the PEP block

# /// script
# dependencies = [
#    "numpy",
#    "pygame-ce",
# ]
# ///

import numpy
import asyncio
import pygame

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

No branches or pull requests

2 participants