View Single Post

Member Since: Apr 05, 2012
Location: Brazil
Posts: 6
xxViennaxx is on a distinguished road
Mac Specs: MacMini 2007 running OS X Lion || 2GB RAM || 120GB HDD || 2,2GHz

xxViennaxx is offline
OK, i tried something else. I used MacPorts to install Pygame. Clean and swift. Then I opened Terminal and tested, both with the default Python, 2.7, and the updated one, 3.2.
For the 2.7 it went well. Imported with no errors and I actually managed to create a functional GUI.
viennamini:~ Home$ 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.
>>> import pygame
BUT, for the 3.2 version, I got an error:
viennamini:~ Home$ python3
Python 3.2.2 (v3.2.2:137e45f15c0b, Sep  3 2011, 17:28:59) 
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import pygame
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Library/Python/3.2/site-packages/pygame-1.9.1release-py2.7-macosx-10.7-intel.egg/pygame/", line 95, in <module>
    from pygame.base import *
ImportError: dlopen(/Library/Python/3.2/site-packages/pygame-1.9.1release-py2.7-macosx-10.7-intel.egg/pygame/, 2): Symbol not found: _PyCObject_Type
  Referenced from: /Library/Python/3.2/site-packages/pygame-1.9.1release-py2.7-macosx-10.7-intel.egg/pygame/
  Expected in: flat namespace
 in /Library/Python/3.2/site-packages/pygame-1.9.1release-py2.7-macosx-10.7-intel.egg/pygame/
I managed another way to install and got new problems. Any solutions for any of my problems?
QUOTE Thanks