O'Reilly Forums: Pygame - O'Reilly Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Pygame

#1 User is offline   lindscong 

  • New Member
  • Pip
  • Group: Members
  • Posts: 2
  • Joined: 04-May 12

Posted 04 May 2012 - 05:15 PM

I made it all the way to the end of the pygame installation directions, but I keep getting an error I don't know how to fix. When I attempt to build pygame I get this:

python3 setup.py build
Skipping module _numericsurfarray for Python 3.2.3 (v3.2.3:3d0686d90f55, Apr 10 2012, 11:09:56)
[GCC 4.0.1 (Apple Inc. build 5493)] build.
Skipping module _numericsndarray for Python 3.2.3 (v3.2.3:3d0686d90f55, Apr 10 2012, 11:09:56)
[GCC 4.0.1 (Apple Inc. build 5493)] build.
Skipping module _camera for Python 3.2.3 (v3.2.3:3d0686d90f55, Apr 10 2012, 11:09:56)
[GCC 4.0.1 (Apple Inc. build 5493)] build.
running build
running build_py
running build_ext
building 'pygame.font' extension
Compiling with an SDK that doesn't seem to exist: /Developer/SDKs/MacOSX10.6.sdk
Please check your Xcode installation
/usr/bin/gcc-4.2 -DNDEBUG -g -O3 -isysroot /Developer/SDKs/MacOSX10.6.sdk -arch i386 -Ddarwin -I/Library/Frameworks/SDL.framework/Versions/Current/Headers -I/Library/Frameworks/SDL_ttf.framework/Versions/Current/Headers -I/Library/Frameworks/Python.framework/Versions/3.2/include/python3.2m -c src/font.c -o build/temp.macosx-10.3-fat-3.2/src/font.o
unable to execute /usr/bin/gcc-4.2: No such file or directory
error: command '/usr/bin/gcc-4.2' failed with exit status 1


What is causing the error? It says I need to check Xcode but Xcode is installed and works just fine.
0

#2 User is offline   lindscong 

  • New Member
  • Pip
  • Group: Members
  • Posts: 2
  • Joined: 04-May 12

Posted 05 May 2012 - 05:18 AM

After hours of installing multiple files and versions of pygame and python, I found this website: http://web.mit.edu/6...www/pygame.html

That's all I had to do! I have a mac with Lion and this is what finally worked. I would ignore the headfirst directions for installing pygame until they're updated. (And don't bother with the "help" on pygame.com - their directions for mac Lion aren't even complete!)
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

2 User(s) are reading this topic
0 members, 2 guests, 0 anonymous users