-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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 not compatible with MacOS Mojave #555
Comments
Same issue here, running
opens a window, sounds and music can be heard, but black screen surface all the time. |
The SDL discussion and bug report:
Homebrew issue is here: Homebrew/homebrew-core#33016 |
Confirmed, it seems to work with miniconda |
Sorry if this is not the right place to post this, but is there a fix for this other than using miniconda? if not where can I follow to be aware when a fix is in place? I was really interested in picking up pygame but I might just go back to libGDX until this is working on Mojave! |
The bug is reproduced with As a work-around I created a virtualenv for 3.6.5 version |
Can reproduce this using python All Python versions mentioned above were installed via |
I encounter this issue with |
the miniconda suggestion didn't work for me; what i had to do was to download the pkg file from: https://www.python.org/downloads/release/python-370/ verify: then: then all worked. |
Rolling back to python 3.7.0 and reinstalling pygame worked for me, but now the second problem is that display.update() became incredibly slow. The saucers in the aliens game in the examples move several times slower than before. I've timed display.update() and it seems that it takes a constant amount of time to redraw the screen regardless of how many rectangles you pass to it. Even passing a tiny 10x10 rectangle takes more than 200 ms to update. Edit: The solution given below fixed this problem for me. |
As of Python 3.7.2 the issue is unresolved. |
As of macOS Mojave 10.14.2 and Python 3.7.2 the issue is unresolved. |
I followed the advice up above and downloaded the official macOS x64 installer package of Python 3.7.2 from the official python page, and then used:
And now I'm seeing the window contents again. (macOS 10.14.1, going to update to 10.14.2 and verify all else is fine). |
Looking at the Pygame 1.9.5 milestone...it states you are waiting for an SDL fix but it looks like this was fixed back SDL 2.0.8 (Current SDL 2.0.9) - https://bugzilla.libsdl.org/show_bug.cgi?id=4272 Im guessing that you are waiting for the 1.2.x historic version of SDL to be patched though? |
2 is using SDL2, 1.9.5 will use SDL1. |
@illume Just to point out, using python 3.7.2 and pip3 pygame works great...However the Homebrew version of python 3.7.2 results in the blank game window using the same version of pygame |
Thanks @DanielJenkyn I updated the issue. I'm going to upgrade my mac in the coming days, so will be able to look into it then. |
As I understand, due to closed state of homebrew issue, they are not going to fix it, yes? So the solution is to remove homebrew python3.7.2 and use official installer from python website? |
My operating system is macOS Mojave and I am experiencing the same thing. I've configured my development environment using Pyenv When running my code snippet, I get this screen: This error also occurs when running the Pygame example, When can we expect Pygame to be compatible with Mojave? NOTE: I've tried Python |
@ChaseHardin I suspect installing 3.7.2 via official .dmg installer from python.org will do the trick. Did not try it myself, though, yet |
@ChaseHardin Can you try pulling the latest from source/github? While I've been testing the 1.9.4 build has never worked on MacOS (other than Mojave) for me, BUT when I build -- even 1.9.4 from source, I have no issue. This top section of the page -- are updates that I made -- and should work for you. |
@idchlife I'd like to continue using @markph0204 how would I pull the latest from source/github? I installed I'm seeing a lot of reference to |
@ChaseHardin You do not need mercurial -- you need git and it comes installed on MacOS by default. To get the latest from pygame, you can Also you can use Good luck! |
Unfortunately, reproduced on MacOS Mojave I don't want to compiling sources, installing additional pythons which could a bit make mess on my Mac or so, it should be normally available with base python interpreter. Hope to get it fixed and released soon, now need to change computer for my Linux. 🐧 |
@reza-iranmanesh 's instructions worked for me:
Downloading the macOS x64 installer package of Python 3.7.0 from the official python page and then |
you mean 'pip install pygame ==2.00.dev4' |
It worked for me on
|
MacOS Catalina 10.15.2 pygame 2.0.0.dev4 (SDL 2.0.10, python 3.7.3) |
@29217321 Try the latest beta? |
Finally get all sorted out... thank you all! |
macOS Mojava10.14.6+python3.8.1+pygame==2.0.0.dev6 is ok. |
Hi there, I'm trying to get the pygame window to open but I haven't had any luck. I'm running pygame 1.9.6 with python 3.8 and macOS Mojave. |
Dude you're my hero😂 |
this worked for me |
This worked for me: Catalina 10.15.3 |
Why unlink brew’s python? Please don’t use Apple’s |
Just installing |
Installing pygame |
I've created a local Portfile MacPorts-py-game2.zip for MacPorts for pygame 2.0.0.dev6, with the fix to the audio mixer problem for the aliens example. pygame 2.0.0.dev4 did not work due to "sorry, extended image module required" error. This would be easiest for those on macOS Mojave who are using MacPorts version of python. You would need to know how to setup MacPorts to build local ports, etc. This has been tested for Python 3.7, I didn't try to build it for the other python versions. |
Confirming that procedure also works for me on MacOS Catalina 10.15.4 |
Thanks! After a few hors of googling I made it work on Catalina 10.15.4 with the latest pygame 2.0.0.dev6 |
Thanks this work for me as well |
Python 3.8.5 (from Homebrew) Works like a charm 😅 I had issues with pygame 1.9.6 - empty gray screen. Also, |
same versions, but not working :( |
Edit: pygame 2 works nicely with Mac now.
Use
python3 -m pip install pygame
SDL discussion and bug report:
Homebrew issue is here: Homebrew/homebrew-core#33016
As discussed on this stackoverflow post, it seems that pygame is not compatible with MacOS Mojave, the latest version of MacOS.
Information on tests done can be found on the post. It might be a conflict with the graphical overlay managing its new
Dark Mode
.The text was updated successfully, but these errors were encountered: