[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] OS X install problems



That's not the same version of Python. You forgot to include the version string, but I guarantee it's different. Probably the Python 2.3.0 that comes with OS X 10.3.

Python 2.4 should install a pythonw script too, to /usr/local/bin/, but maybe it's not on your PATH. Or perhaps you didn't build Python 2.4 with --enable-framework? If so, you might not be able to use pygame except from bundled applications (via py2app or bundlebuilder) -- a normal build of Python 2.4 will not have the "faked" application bundle used by pythonw.

-bob

On Jan 9, 2005, at 15:22, luke skywalker wrote:

using pythonw I get this error:
[GCC 3.3 20030304 (Apple Computer, Inc. build 1495)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
import pygame
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
ImportError: No module named pygame


Something is weird here..






On Sun, 9 Jan 2005 15:17:24 -0500, Bob Ippolito <bob@xxxxxxxxxx> wrote:

On Jan 9, 2005, at 15:10, luke skywalker wrote:

Hi all,

I have problems running pygame in os x. I have run setup.py without
errors, but when I try to import pygame I get the following error:
Python 2.4 (#1, Dec 21 2004, 00:38:26)
[GCC 3.3 20030304 (Apple Computer, Inc. build 1666)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
import pygame
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "pygame/__init__.py", line 158, in ?
ImportError: Can not access the window manager, use bundlebuilder or
execute with the pythonw script


How do I resolve this issue?

Use pythonw to start Python, like it says.

-bob