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

Using pygame with python3 on Mac #359

99 opened this issue Sep 26, 2017 · 3 comments


Copy link

commented Sep 26, 2017

Hi ,

I'm trying to make a simple program to run
But it's failing with the below warning.

WARNING:  140: This application, or a library it uses, is using the deprecated Carbon Component Manager for hosting Audio Units. Support for this will be removed in a future release. Also, this makes the host incompatible with version 3 audio units. Please transition to the API's in AudioComponent.h.

Can you please help to fix it ?
Thank you

Below is the simple script to help to reproduce it

import pygame
import time

screen = pygame.display.set_mode([800, 600])
image = pygame.image.load("python.png")

screen.blit(image, [0, 0])


This comment has been minimized.

Copy link

commented Sep 26, 2017

Yeah I've had this same problem too. It doesn't stop the script from running, it just puts that message in the Python terminal-looking window. It doesn't seem like it would affect the sound quality either, it's just saying that the software that pygame uses is out of date. And you can easily hide it by just executing it with pythonw.


This comment has been minimized.

Copy link

commented Dec 15, 2017

@OrionDark7 is right, just use pythonw (ending with w) ! Thank you!


It really depends on how your python3 is installed. The problem is that it should not be a virtual environment, but a framework (i.e. coming from a package) and, most importantly, it should link to the macOS CoreFoundation Framework. See the last part of this comment on Anaconda

@illume illume added OS X 2.0 labels Feb 17, 2018

@illume illume added this to the 2.0 milestone Feb 17, 2018


This comment has been minimized.

Copy link

commented Feb 17, 2018

Thanks for all the debugging everyone. I added Anaconda instructions about pythonw to the page.

The console message will disappear with pygame 2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
4 participants
You can’t perform that action at this time.