You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
opens a window, sounds and music can be heard, but black screen surface all the time.
Reacted by Vincent Botta, gleatherman, toejough, Yanal-Yves, Igor Grillo Peternella, Pat Myron, ihouse10, Marcin Łesek, Steve Rixon, Harald Kirkerød and 43 more
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!
Can reproduce this using python 3.7.0, 3.6.6 and 3.6.5 with both virtualenv and venv, so downgrading python didn't seem to help.
All Python versions mentioned above were installed via pyenv, the pygame version was always 1.9.4. Interestingly, trying it with Python 3.5.6 failed during installation of pygame with src/scrap.c:27:10: fatal error: 'SDL.h' file not found, though I don't know if that's relevant.
Reacted by Konstantinos Monachopoulos, Marcin Łesek, Pat Myron, Eugen Hotaj, Raphencoder, Max Coplan and Lane Schmidt
I encounter this issue with python 3.6.5 + pygame 1.9.4 and python 3.7.1 + pygame 1.9.4
I do not encounter the issue with python 3.7.0 + pygame 1.9.4.
Framerate increases substantially whether it works or not but running app in low resolution.
I wonder why it would start working by switching up the 3.7.0, but then stop working again switching up to 3.7.1.
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.
Works without a problem, on a fresh Mojave install, with Python 3.7.0 from Miniconda, the version of PyGame reported is 1.9.4 .
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.
and I guess we're both working on the alien pygame project.
Just installing 2.0.0.dev4 version of pygame and using (0, 0) for the window size did the trick for me.
No messing with the system-wide python version needed.
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.
Activity
hevp commentedon Oct 15, 2018
Same issue here, running
python -m pygame.examples.aliensopens a window, sounds and music can be heard, but black screen surface all the time.
illume commentedon Oct 16, 2018
The SDL discussion and bug report:
Homebrew issue is here: Homebrew/homebrew-core#33016
ijean commentedon Oct 21, 2018
Works without a problem, on a fresh Mojave install, with Python 3.7.0 from Miniconda, the version of PyGame reported is 1.9.4 .
adam-hotait commentedon Oct 21, 2018
Confirmed, it seems to work with miniconda
pending: pygame 1.9.4 + macOS majave has failure. The branch shall wa…
dshrops1 commentedon Nov 18, 2018
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!
jctim commentedon Nov 21, 2018
The bug is reproduced with
python 3.7.1+pygame 1.9.4But isn't reproduced with
python 3.6.5+pygame 1.9.4As a work-around I created a virtualenv for 3.6.5 version
MrTrustworthy commentedon Nov 23, 2018
Can reproduce this using python
3.7.0,3.6.6and3.6.5with bothvirtualenvandvenv, so downgrading python didn't seem to help.All Python versions mentioned above were installed via
pyenv, the pygame version was always1.9.4. Interestingly, trying it withPython 3.5.6failed during installation of pygame withsrc/scrap.c:27:10: fatal error: 'SDL.h' file not found, though I don't know if that's relevant.Levilutz commentedon Nov 23, 2018
I encounter this issue with
python 3.6.5+pygame 1.9.4andpython 3.7.1+pygame 1.9.4I do not encounter the issue with
python 3.7.0+pygame 1.9.4.Framerate increases substantially whether it works or not but running app in low resolution.
I wonder why it would start working by switching up the 3.7.0, but then stop working again switching up to 3.7.1.
reza-iranmanesh commentedon Dec 17, 2018
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/
for python 3.7.0
and install
verify:
python3 --version
should be 3.7.0
then:
pip3 install pygame (installed 1.9.4)
then all worked.
ct-chook commentedon Dec 20, 2018
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.
https://stackoverflow.com/questions/31685936/pygame-application-runs-slower-on-mac-than-on-pc
nachoba commentedon Dec 30, 2018
As of Python 3.7.2 the issue is unresolved.
WeMadeCode commentedon Jan 3, 2019
As of macOS Mojave 10.14.2 and Python 3.7.2 the issue is unresolved.
47 remaining items
diegolara078 commentedon Dec 22, 2019
Finally get all sorted out... thank you all!
brew unlink python
Unlinking /usr/local/Cellar/python/3.6.5... 25 symlinks removed
sudo pip3 install pygame==2.0.0.dev4
vikihu commentedon Dec 25, 2019
macOS Mojava10.14.6+python3.8.1+pygame==2.0.0.dev6 is ok.
JonFillip commentedon Jan 1, 2020
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.
and I guess we're both working on the alien pygame project.
JonFillip commentedon Jan 3, 2020
Dude you're my hero😂
luckyguy73 commentedon Jan 28, 2020
this worked for me
sudo pip3 install pygame==2.0.0.dev4
justtomu commentedon Feb 23, 2020
This worked for me:
brew unlink python
sudo pip3 install pygame==2.0.0.dev4
Catalina 10.15.3
vegerot commentedon Feb 23, 2020
Why unlink brew’s python? Please don’t use Apple’s
iuliux commentedon Feb 29, 2020
Just installing
2.0.0.dev4version of pygame and using(0, 0)for the window size did the trick for me.No messing with the system-wide python version needed.
mehularora8 commentedon Apr 1, 2020
Installing pygame
2.0.0.dev6fixed it for me.pip3 install pygame==2.0.0.dev6MacOS Catalina 10.15.2.
tcwan commentedon Apr 2, 2020
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.
Udit8348 commentedon Apr 10, 2020
@mehularora8
Confirming that procedure also works for me on MacOS Catalina 10.15.4
multitudes commentedon Apr 13, 2020
Thanks! After a few hors of googling I made it work on Catalina 10.15.4 with the latest pygame 2.0.0.dev6
dpandhi-git commentedon Jul 25, 2020
Thanks this work for me as well
powelski commentedon Sep 7, 2020
Python 3.8.5 (from Homebrew)
macOS Catalina 10.15.6
pip3 install pygame==2.0.0.dev10
Works like a charm 😅
I had issues with pygame 1.9.6 - empty gray screen. Also,
cmd+qandcmd+wdidn't work at all. Now they do 🥂🍾rishab-rb commentedon Sep 25, 2020
same versions, but not working :(