error when import pygame

Issue #108 new
Berkeley Martinez
created an issue


I am trying to run some code that requires pygame module. Im using OSX lion and python 2.7 that comes installed with my Mac. I have followed instructions here and was able to install after a long struggle. I am not the most familiar with terminal. well, on to it.

import pygame gives me this error

ImportError: dlopen(/Library/Python/2.7/site-packages/pygame-1.9.1release-py2.7-macosx-10.7-intel.egg/pygame/, 2): Symbol not found: _SDL_EnableUNICODE Referenced from: /Library/Python/2.7/site-packages/pygame-1.9.1release-py2.7-macosx-10.7-intel.egg/pygame/ Expected in: flat namespace in /Library/Python/2.7/site-packages/pygame-1.9.1release-py2.7-macosx-10.7-intel.egg/pygame/

Ive spent the better part of an afternoon search this error, with no avail.

Any help would be greatly appreciated.

Comments (4)

  1. Berkeley Martinez reporter

    Ok, I have uninstalled xcode 4.2 in exchange for xcode 4.1 that includes gcc-4.2, and installed a separate python 2.7 code. Then I was able to install pygame again, but to my frustration I am still getting the same error when I try to run pygame.

    Please, any help would be greatly appreciated.

  2. Log in to comment