Package: python2.3-pygame
Version: 1.7.1release-1
Severity: important

This python script:

import pygame
print pygame.font.ge

Produces this output:

Traceback (most recent call last):
  File "font.py", line 2, in ?
    print pygame.font.get_fonts()
  File "/usr/lib/python2.3/site-packages/pygame/sysfont.py", line 296, in 
get_fonts
    initsysfonts()
  File "/usr/lib/python2.3/site-packages/pygame/sysfont.py", line 224, in 
initsysfonts
    fonts = initsysfonts_unix()
  File "/usr/lib/python2.3/site-packages/pygame/sysfont.py", line 182, in 
initsysfonts_unix
    os.path.walk(p, _fontwalk, fonts)
  File "/usr/lib/python2.3/posixpath.py", line 290, in walk
    walk(name, func, arg)
  File "/usr/lib/python2.3/posixpath.py", line 282, in walk
    func(arg, top, names)
  File "/usr/lib/python2.3/site-packages/pygame/sysfont.py", line 169, in 
_fontwalk
    read_unix_fontsdir(path, 'fonts.scale', fonts)
  File "/usr/lib/python2.3/site-packages/pygame/sysfont.py", line 152, in 
read_unix_fontsdir
    numfonts = int(file.readline())
ValueError: invalid literal for int():

Expected behavior: Either list the available fonts, or an empty list, according
to documentation.

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12-2005-08-27
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages python2.3-pygame depends on:
ii  libc6         2.3.5-6                    GNU C Library: Shared libraries an
ii  libsdl-image1 1.2.4-1                    image loading library for Simple D
ii  libsdl-mixer1 1.2.6-1.1                  mixer library for Simple DirectMed
ii  libsdl-ttf2.0 2.0.6-5                    ttf library for Simple DirectMedia
hi  libsdl1.2debi 1.2.7+1.2.8cvs20041007-5.3 Simple DirectMedia Layer
ii  libsmpeg0c2   0.4.5+cvs20030824-1.3      SDL MPEG Player Library - shared l
ii  python2.3     2.3.5-8                    An interactive high-level object-o
ii  python2.3-num 23.8-4                     Numerical (matrix-oriented) Mathem
ii  python2.3-num 23.8-4                     Extension modules for Numeric Pyth

python2.3-pygame recommends no packages.

-- debconf-show failed


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to