[pyddr-discuss] Problems with folders

Joe Wreschnig piman at debian.org
Mon Jul 14 13:33:48 EDT 2003


On Mon, 2003-07-14 at 06:47, David Bellows wrote:
> I downloaded pydance7.2 and it appeared to install without any problems.  
> Everything seems to work fine if I have the folders option turned off.  
> However, when it's on and I have the sort set to "mix" I get the following 
> error when I try to go to the screen that has all the sim-files listed:
> 
> Traceback (most recent call last):
>   File "/usr/local/games/pydance", line 1252, in ?
>     if __name__ == '__main__': main()
>   File "/usr/local/games/pydance", line 904, in main
>     menudriver.do(screen, (songs, screen, playSequence))
>   File "/usr/local/games/../share/games/pydance/menudriver.py", line 171, in 
> do
>     me.display()
>   File "/usr/local/games/../share/games/pydance/menus.py", line 178, in 
> display
>     ev = self.items[curitem].activate(ev)
>   File "/usr/local/games/../share/games/pydance/menus.py", line 118, in 
> activate
>     self.display()
>   File "/usr/local/games/../share/games/pydance/menus.py", line 178, in 
> display
>     ev = self.items[curitem].activate(ev)
>   File "/usr/local/games/../share/games/pydance/menus.py", line 56, in 
> activate
>     text, subtext = self.callbacks[ev](*self.args)
>   File "/usr/local/games/../share/games/pydance/menudriver.py", line 107, in 
> wrap_ctr
>     Obj(*args)
>   File "/usr/local/games/../share/games/pydance/songselect.py", line 261, in 
> __init__
>     self.render(True, True)
>   File "/usr/local/games/../share/games/pydance/songselect.py", line 563, in 
> render
>     self.songs[idx].render()
>   File "/usr/local/games/../share/games/pydance/songselect.py", line 186, in 
> render
>     songtext = FONTS[36].render(self.name, 1, colors.WHITE)
> pygame.error: SDL_ttf render failed

You probably have a song with a mix tag of "", which Pygame 1.5.5 can't
render properly. This bug was fixed in Pygame 1.5.6 (which unfortunately
hasn't propogated to most distributions yet). It's also possible that
the mix name contains Unicode or some other encoding that SDL_ttf can't
render.

Since you used the word "sim-files", I'm guessing you have DWIs? Then
the mix name is decided entirely by the directory. What does your
directory layout look like? (If you know it's not an encoding problem.)
-- 
Joe Wreschnig <piman at debian.org>




More information about the pyddr-discuss mailing list