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

[pygame] I have Python 2.3 and 2.4; can't use pygame



New subscriber.

Windows XP.

I just installed pygame in C:\Python23\Lib\site-packages. During the installation I tried to install it in C:\Python23\Lib\site-packages, but the installation process wouldn't let me. I have a simple script, playMP3.py in both Python23 and Python 24:

import pygame, time
Lmove=pygame.movie.Movie('C:/python23/02-25-Buffet_Investor_Lunch.mp3')
Lmove.play()
time.sleep(10)
Lmove.stop()

When run in Python23 or in Python24, I get:

Traceback (most recent call last):
  File "C:\Python23\playMP3.py", line 4, in -toplevel-
    import pygame, time
ImportError: No module named pygame

So I copied the pygame folder into C:\Python24\Lib\site-packages.

Now, whether I run the script in Python23 or Python24 I get

Traceback (most recent call last):
File "C:\Python23\playMP3.py", line 1, in -toplevel-
import pygame, time
File "C:\Python24\lib\site-packages\pygame\__init__.py", line 64, in -toplevel-
from pygame.base import *
ImportError: Module use of python23.dll conflicts with this version of Python.


Is uninstalling Python24 the only way to get the script to run? I don't really want to do that. Or wait until pygame-1.6.win32-py2.4.exe is released?

Advice, please.

Thanks,

Dick Moores
rdm@xxxxxxxxxx