Trouble Installing Pygame on Mac OSX

26,851

I installed this http://www.pygame.org/ftp/pygame-1.9.2pre-py2.7-macosx10.7.mpkg.zip

and this: http://xquartz.macosforge.org/landing/

All started working.

Share:
26,851
Jay Stanley
Author by

Jay Stanley

Updated on July 17, 2022

Comments

  • Jay Stanley
    Jay Stanley almost 2 years

    Here is my error message:

    Python 2.7.2 (default, Jun 20 2012, 16:23:33) 
    [GCC 4.2.1 Compatible Apple Clang 4.0 (tags/Apple/clang-418.0.60)] on darwin
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import pygame
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
    ImportError: No module named pygame
    >>> 
    

    So 2.7 can't find pygame. This is on a new installation of python, and I'm able to get to my other modules (pyo,wx,numpy). I have reinstalled pygame and looked among the respective library folders and I can't find the pygame module anywhere. A reinstallation does not fix this. Any Advice?

    EDIT: In response to questions as to how I installed pygame, I installed from the .dmg located here http://www.pygame.org/download.shtml 'pygame-1.9.1release-python.org-32bit-py2.7-macosx10.3.dmg '

  • andilabs
    andilabs about 10 years
    not ALL. E.g create_tag_image(tags, 'cloud_large.png', size=(900, 600), fontname='Lobster') Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Library/Python/2.7/site-packages/pytagcloud/__init__.py", line 350, in create_tag_image pygame.image.save(image_surface, output) ImportError: dlopen(/Library/Python/2.7/site-packages/pygame/imageext.so, 2): Symbol not found: _IMG_Load Referenced from: /Library/Python/2.7/site-packages/pygame/imageext.so Expected in: flat namespace in /Library/Python/2.7/site-packages/pygame/imageext.so
  • jjpp
    jjpp about 9 years
    it worked for me. I tried to install the package named for macosx10.6 and didint worked. This package you mentioned for macos10.7 worked. thanks
  • Kahin
    Kahin almost 9 years
    If I had a million dollars, I would give you one! Thank you!