Bug#807250: fretsonfire-game: Game fail to start: obsolete function called
Samuele Battarra
battarsa at libero.it
Sun Dec 6 18:06:41 UTC 2015
Package: fretsonfire-game
Version: 1.3.110.dfsg2-1
Severity: grave
Justification: renders package unusable
Dear Maintainer,
Game fail to start with this output:
Traceback (most recent call last):
File "./FretsOnFire.py", line 74, in <module>
engine = GameEngine(config)
File "/usr/share/games/fretsonfire/game/GameEngine.py", line 194, in __init__
self.data = Data(self.resource, self.svg)
File "/usr/share/games/fretsonfire/game/Data.py", line 48, in __init__
self.loadSvgDrawing(self, "star1", "star1.svg", textureSize = (128, 128))
File "/usr/share/games/fretsonfire/game/Data.py", line 106, in loadSvgDrawing
drawing = self.resource.load(target, name, lambda: SvgDrawing(self.svg, fileName), synch = True)
File "/usr/share/games/fretsonfire/game/Resource.py", line 157, in load
return l.finish()
File "/usr/share/games/fretsonfire/game/Resource.py", line 68, in load
self.result = self.function()
File "/usr/share/games/fretsonfire/game/Data.py", line 106, in <lambda>
drawing = self.resource.load(target, name, lambda: SvgDrawing(self.svg, fileName), synch = True)
File "/usr/share/games/fretsonfire/game/Svg.py", line 552, in __init__
self.texture = Texture(bitmapFile)
File "/usr/share/games/fretsonfire/game/Texture.py", line 202, in __init__
self.loadFile(name)
File "/usr/share/games/fretsonfire/game/Texture.py", line 206, in loadFile
self.loadImage(Image.open(name))
File "/usr/share/games/fretsonfire/game/Texture.py", line 213, in loadImage
string = image.tostring('raw', 'RGBA', 0, -1)
File "/usr/lib/python2.7/dist-packages/PIL/Image.py", line 686, in tostring
"Please call tobytes() instead.")
Exception: tostring() has been removed. Please call tobytes() instead.
Replacing 'tostring' with 'tobytes' in function loadImage in Texture.py solves the problem.
-- System Information:
Debian Release: stretch/sid
APT prefers testing
APT policy: (900, 'testing'), (500, 'stable-updates'), (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 4.2.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages fretsonfire-game depends on:
ii fonts-mgopen 1.1-9
ii python 2.7.9-1
ii python-imaging 3.0.0-1
ii python-ogg 1.3+repack-7
ii python-opengl 3.0.2-1
ii python-pygame 1.9.1release+dfsg-10+b1
ii python-pyvorbis 1.5-4
ii ttf-dejavu 2.35-1
Versions of packages fretsonfire-game recommends:
pn fretsonfire-songs-muldjord <none>
pn fretsonfire-songs-sectoid <none>
Versions of packages fretsonfire-game suggests:
ii vorbis-tools 1.4.0-7
-- no debconf information
More information about the Pkg-games-devel
mailing list