Package: python-pygame Version: 1.7.1release-4.1 Severity: normal The attached code does not work with Python 2.5. It does work with previous Python versions.
$ python pyg2.py Traceback (most recent call last): File "pyg2.py", line 7, in <module> i = pygame.image.frombuffer (s.get_data (), (256, 192), 'RGBA') TypeError: char buffer type not available -- System Information: Debian Release: lenny/sid APT prefers testing APT policy: (530, 'testing'), (520, 'unstable'), (510, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 2.6.25-1-amd64 (SMP w/2 CPU cores) Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages python-pygame depends on: ii libc6 2.7-10 GNU C Library: Shared libraries ii libjpeg62 6b-14 The Independent JPEG Group's JPEG ii libpng12-0 1.2.27-1 PNG library - runtime ii libsdl-image1.2 1.2.6-3 image loading library for Simple D ii libsdl-mixer1.2 1.2.8-3 mixer library for Simple DirectMed ii libsdl-ttf2.0-0 2.0.9-1 ttf library for Simple DirectMedia ii libsdl1.2debian 1.2.13-2 Simple DirectMedia Layer ii libsmpeg0 0.4.5+cvs20030824-2 SDL MPEG Player Library - shared l ii libx11-6 2:1.0.3-7 X11 client-side library ii python 2.5.2-1 An interactive high-level object-o ii python-central 0.6.6 register and build utility for Pyt ii python-numeric 24.2-8.2 Numerical (matrix-oriented) Mathem python-pygame recommends no packages. -- no debconf information
#!/usr/bin/python import cairo import pygame s = cairo.ImageSurface (cairo.FORMAT_ARGB32, 256, 192) i = pygame.image.frombuffer (s.get_data (), (256, 192), 'RGBA')