#405339 Solarwolf font error

Package:
solarwolf
Source:
solarwolf
Submitter:
Russell Sears
Date:
2023-08-15 07:03:06 UTC
Severity:
normal
Tags:
#405339#5
Date:
2007-01-02 18:43:57 UTC
From:
To:
Solarwolf fails to start with the following error on my system:

Fatal Error Loading Resources
exceptions.IOError in module gamesetup
unable to read font filename
Press Any Key to Quit

This is displayed on the opening screen; the "Loading Resources..."
graph is at about 5%, and the text is rendered in a sans-serif font that
looks all right, so some sort of font support is working.  The stars are
moving, and it manages to play the startup sound.

I have:
python-pygame 1.7.1-release-4.1
python-support 0.5.6

Python version is:
Python 2.4.4 (#2, Oct 20 2006, 00:23:25)
[GCC 4.1.2 20061015 (prerelease) (Debian 4.1.1-16.1)] on linux2

#405339#10
Date:
2007-05-24 17:35:19 UTC
From:
To:
Le mardi 02 janvier 2007 à 10:43 -0800, Russell Sears a écrit :

Hi,

is this bug still happening?
Do you have some font packages (ttf-bitstream-vera, ttf-dejavu)
installed?

Thanks,

#405339#15
Date:
2007-05-25 05:24:53 UTC
From:
To:
I'm still getting the error, with exactly the same symptoms.

I'm running solarwolf 1.5-2 and have ttf-bitstream-vera 1.10-7 and
ttf-dejavu 2.15-1.

I haven't noticed any other font problems on this system since I filed
the bug.  I wonder why it says it can't read the "font filename", and
not the "font".

#405339#20
Date:
2007-06-09 20:15:52 UTC
From:
To:
Le jeudi 24 mai 2007 à 22:24 -0700, Russell Sears a écrit :

Is the following file correctly available on your system?
/usr/lib/python2.4/site-packages/pygame/freesansbold.ttf

Also, maybe by any chance you have another pygame instance somewhere.
What happens if you run python, then type:
   import pygame
   print pygame.ver

Thanks,

#405339#25
Date:
2007-06-11 17:26:39 UTC
From:
To:
Josselin Mouette wrote:

It is a symlink to:

/usr/share/pycentral/python-pygame/site-packages/pygame/freesansbold.ttf

My normal user account can open it with gnome-font-viewer.  It looks
like the font that solarwolf is using to display its error messages.

$ python
Python 2.4.4 (#2, Apr  5 2007, 20:11:18)
[GCC 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
 >>> import pygame
 >>> print pygame.ver
1.7.1release
 >>>

# find / -name *pygame
/usr/share/doc/python-pygame
/usr/share/pycentral/python-pygame
/usr/share/pycentral/python-pygame/site-packages/pygame
/usr/lib/python2.4/site-packages/pygame
/usr/include/python2.4/pygame

#405339#30
Date:
2023-08-15 07:00:06 UTC
From:
To:
tags #405339 + unreproducible
thanks

Hi,

since this bug was reported over 16 years ago, pygame has made
lots of changes, among others to its font handling code.

Eg the mentioned error message "unable to read font filename"

has been replaced in 2010 with "unable to read font file '%.1024s'" -
https://github.com/pygame/pygame/commit/4772a872b3e72a59e507ecb3f4ed55b44fd375cb
and been removed in 2022 -
https://github.com/pygame/pygame/commit/e5659f146d83702ccb4db16af6e3b73d1d2845f1

Also at the current point in time cannot reproduce this bug
(or a similar one with different error messages), so I'm tagging it accordingly
and plan to close it in a few weeks.

Thanks for reporting it and if it still or again :) occurs,
feel free to reply or reopen, if it's already closed at that time.

#405339#35
Date:
2023-08-15 07:00:06 UTC
From:
To:
tags #405339 + unreproducible
thanks

Hi,

since this bug was reported over 16 years ago, pygame has made
lots of changes, among others to its font handling code.

Eg the mentioned error message "unable to read font filename"

has been replaced in 2010 with "unable to read font file '%.1024s'" -
https://github.com/pygame/pygame/commit/4772a872b3e72a59e507ecb3f4ed55b44fd375cb
and been removed in 2022 -
https://github.com/pygame/pygame/commit/e5659f146d83702ccb4db16af6e3b73d1d2845f1

Also at the current point in time cannot reproduce this bug
(or a similar one with different error messages), so I'm tagging it accordingly
and plan to close it in a few weeks.

Thanks for reporting it and if it still or again :) occurs,
feel free to reply or reopen, if it's already closed at that time.