[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] BUG: PyGame tries to import scrap when you 'import pygame.sprite'
- To: pygame-users@xxxxxxxx
- Subject: [pygame] BUG: PyGame tries to import scrap when you 'import pygame.sprite'
- From: "David Gowers" <00ai99@xxxxxxxxx>
- Date: Mon, 27 Nov 2006 15:22:49 +1030
- Delivered-to: archiver@seul.org
- Delivered-to: pygame-users-outgoing@seul.org
- Delivered-to: pygame-users@seul.org
- Delivery-date: Sun, 26 Nov 2006 23:53:05 -0500
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=m8r/i06wRW3KHjg7RL4eYNAzRsLBRmQ4OhhPqi909+8dWSTQ7tBoFR//f/yi4fX3vE2aspYIEqmM6kJv84Dt0O+W/U4ce+CVYrTRt8Zb3NpTXsyNBV/EEB4UBrGUgakMV+jSRBSV8Vmdxm4YH7tZ14O8N2ycz3ZX8b+QYgsHc3s=
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
(I am using the CVS version of PyGame, and CVS Python (2.5+))
This bug prevents programs using pygame.sprite from running if pygame.scrap is not available.
In the build/lib.linux-i686-2.5/ directory,
__init__.py reads:
try: import pygame.scrap
except (ImportError,IOError), msg:sprite=MissingModule("scrap", msg, 1)
Where it should read:
try: import pygame.scrap
except (ImportError,IOError), msg:scrap=MissingModule("scrap", msg, 1)
making this fix allowed my program to work again.