Issue #86 resolved

Can't import precompiled pygame on Mac OS X 10.7 Lion

jeremywho avatarjeremywho created an issue

I've installed the precompiled mpkg for Lion and when I try to import pygame, I get (with verbosity turned up):

>>> import pygame
# trying pygame.so
# trying pygamemodule.so
# trying pygame.py
# pygame.pyc matches pygame.py
import pygame # precompiled from pygame.pyc
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "pygame.py", line 4, in <module>
    from pygame.locals import *
ImportError: No module named locals

Any ideas?

Comments (5)

  1. illume

    Hi,

    which file did you install?

    What is your python version?

    $ which python
    /usr/bin/python
    $ /usr/bin/python
    Python 2.7.1 (r271:86832, Jun 16 2011, 16:59:05) 
    [GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)] on darwin
    Type "help", "copyright", "credits" or "license" for more information.
    >>> 
    

    cheers,

  2. Log in to comment
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.