On Wed, Aug 16, 2017 at 11:33 AM, Quantz Jeremy <jcquan...@gmail.com> wrote: > I’m not sure if I should be asking here about this, but on my Mac computer, > Pygame keeps crashing on me. I have Python 2.7.13 (I can’t use Python 3 > because I’m learning from and online course and he’s using Python 2.7.13. > Unless you can give me a list or something for all the differences, I am > completely new to Python, and a beginner programer.) Mac OS X 32-bit i386/PPC > installer. I got my version of Pygame from Pygame.org <http://pygame.org/>, I > downloaded the pygame-1.9.1release-python.org-32bit-py2.7-macosx10.3.dmg > <http://pygame.org/ftp/pygame-1.9.1release-python.org-32bit-py2.7-macosx10.3.dmg>. > It’s working until I actually try to draw anything on my screen. For > example, I can run the following code and it works just fine.
[snip] > But when I run the following code, the Pygame window opens for a split > second, then closes and I get a message from my Mac saying Python (My pygame > window, not Python IDLE) quit unexpectedly. I’ve looked to see where it > crashes and it’s when it reaches where it’s suppose to draw the rectangle. I > can’t even see the rectangle for the split second while it’s open. (which if > it crashes at that part, it makes sense.) > [snip] > I’ll try and give you as much info about my Mac as I can, as I think it’s the > computer itself that’s the problem. But if you can’t help me, I do have a > windows 10 laptop that I’ve tried putting Pygame on that we could see if you > could help me put Pygame on that. I can’t seem to get the right one. I’d > rather it on the Mac. I have tried many tutorials as well and nothing is > working. I have a 2010 iMac (Old I know) with a 3.06 GHz Intel Core i3 > Processor. Graphics are ATI Radeon HD 4670 256 MB. My OS Is X El Capitan > Version 10.11.6. I don’t know what of that info you need, or if you need > more, but that’s about it. If you could please help me with my problem, it > would be much appreciated. I already tried stack overflow, and that didn’t > work. I also think it is the computer because someone on there ran my code > and it worked just fine. Thanks. I did a quick search and a couple of things came up that *might* be related to your issue (I am *not* an expert in programming!). One thing that came up is that if you are running IDLE, which relies on Tkinter, and pygame at the same time, they both try to run their own event loops and this can cause conflicts. Are you starting your pygame program from within IDLE? If yes, you may want to instead start your program from within the terminal window. The other is are you sure that your program is running with the version of Python you think it is? If you installed a later version of Python 2 yourself you may in fact be running an older version of Python 2 with your program, the one supplied originally with your Mac which is the system default. But I am just guessing here! -- boB _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor