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 Zero non-functional on Mac OS X Mojave #145

Closed
chriswoollard opened this issue Dec 18, 2018 · 12 comments
Closed

Pygame Zero non-functional on Mac OS X Mojave #145

chriswoollard opened this issue Dec 18, 2018 · 12 comments

Comments

@chriswoollard
Copy link

I have been trying to get Pygame Zero to work on a Mac. Everything seems to be okay, but when a window is displayed it is just empty.

I have tried lots of different examples, including the flappy bird's example, but nothing works. It just brings up a blank grey window with no contents.

I am Running Apple OS X Mojave with Python 3.7.1 from Homebrew.

Is there any reason that this is not working?

Chris

@chriswoollard
Copy link
Author

I have noticed that the following appears in my system.log when running examples. It may be important.

Dec 18 09:50:31 Python[4468]: DEPRECATED USE in libdispatch client: dispatch source activated with no event handler set; set a breakpoint on _dispatch_bug_deprecated to debug
Dec 18 09:51:09 Python[4475]: DEPRECATED USE in libdispatch client: dispatch source activated with no event handler set; set a breakpoint on _dispatch_bug_deprecated to debug

@lordmauve
Copy link
Owner

What version of Pygame are you using?

@chriswoollard
Copy link
Author

pygame 1.9.4
pgzero 1.2

@lordmauve
Copy link
Owner

Could you try with Pygame 1.9.3? Also, are you using a virtualenv/venv etc?

@chriswoollard
Copy link
Author

I have tried, but previous versions 1.9.3 and 1.9.2 won't install. THey generate errors. I will see if i can work out why.

@da4089
Copy link

da4089 commented Mar 26, 2019

I have a similar problem:

macOS Mojave 10.14
Python 3.6.7 (from MacPorts)
pgzero 1.2
pygame 1.9.4

I am using a virtualenv (from MacPorts)

I don't get the libdispatch error in system.log, fwiw.

I do get just a blank window (I tried just a screen.fill in my draw method). Putting a print in the draw method shows that it is being called, but there's nothing shows in the window.

@da4089
Copy link

da4089 commented Mar 26, 2019

I do get just a blank window (I tried just a screen.fill in my draw method). Putting a print in the draw method shows that it is being called, but there's nothing shows in the window.

I have now also attempted a very basic PyGame application, with the same result. So ... I am assuming this is an issue with PyGame, not PyGame Zero.

@da4089
Copy link

da4089 commented Mar 26, 2019

I have now also attempted a very basic PyGame application, with the same result. So ... I am assuming this is an issue with PyGame, not PyGame Zero.

See this PyGame issue for discussion of possible fixes. There doesn't seem to be a clear pattern, with some folks finding 3.6.x broken, others reporting it fixing their problem.

pygame/pygame#555

@lordmauve
Copy link
Owner

Pygame 2.0dev* seems to fix this issue.

It can be installed with pip install --upgrade --pre 'pygame>2'

@adespoton
Copy link

adespoton commented Jul 1, 2020

Pygame 2.0dev* seems to fix this issue.

It can be installed with pip install --upgrade --pre 'pygame>2'

I've got Pygame 2.0dev10 installed, but when using pgzrun, it still reports using 1.9.6? Is pgz pulling its pygame libs from somewhere other than the default python3 library tree, or is something else going on?

[edit] probably worth noting: Catalina, Python 3.7, PyGame Zero 1.2, PyGame 2.0.0.dev10, but reporting as pygame 1.9.6 inside pgzrun and via pip3 show pygame. And image.load is successful, but nothing is actually drawn to the window, as with 1.9.6 and Mojave.

@DrNebin
Copy link

DrNebin commented Feb 12, 2021

I have this same issue. Is there a resolution? I am on Big Sur.

@lordmauve
Copy link
Owner

Pygame Zero now uses PyGame 2.x so I think this issue will no longer occur.

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

5 participants