[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] BUG: File objects do not work in Image: Pygame 1.7.1, WinXP Pro IA32
- To: pygame-users@xxxxxxxx
- Subject: [pygame] BUG: File objects do not work in Image: Pygame 1.7.1, WinXP Pro IA32
- From: "space coyote" <spacecoyote17@xxxxxxxxx>
- Date: Tue, 5 Jun 2007 20:18:16 -0700
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: pygame-users-outgoing@xxxxxxxx
- Delivered-to: pygame-users@xxxxxxxx
- Delivery-date: Tue, 05 Jun 2007 23:18:24 -0400
- Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; b=RKq7kaxkHcBiqtvXmfpqja26LZtwmhuSeesnfzGbsT9F64VRTEtaxVDZxB4e5mIiz8PpR7MF1zD9fds0HyvjD7g+BRnd2KodMJfS59oXSNEVHSzUw2IAyJoSFMCfT8MJ9HX3FaR/R+zdhgVGMKFC0Nd/vbb4PQ05VDpyGlNXHyA=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=aS4gRdIhahgvFSWSyUqVX+GO/guzFCc6KOuu1iY2HxCCWbahg4rgh6V0poWWLtYizmXEk92jFnXzVAqiPJQLDPguLkoMe2+OqbXJ0xfOhvQTxF1sd3FB0AZehTL9V7IlqbWh/eu9AKxUByuf3FoHKi+59JObZsuQ57/aG7z5Ivw=
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
The code:
img = pygame.image.load(file('b.png'))
results in:
Traceback (most recent call last):
File "C:\Python24\a.py", line 48, in ?
img = pygame.image.load(file('b.png'))
error: Error reading the PNG file.
I don't know if this has been fixed in Pygame 1.8. If I can get 1.8 compiled, I will test it.
This
feature is specified in the documents. It is a useful feature, you can
make file-like objects from anything (I wanted to use ZIP files).
Thank you,
Josh
PS: Is there anything I can to help with 1.8?