#86 Compatability with Python 2.5

open
nobody
None
5
2008-07-04
2008-07-04
Anonymous
No

Python-2.5 makes FretsOnFire fail. 2.5 is default in multiple linux versions. You yourselves mention python-2.5 being in OSX, 10.5, i believe. I downgraded my installation to 2.4 today, and now FOF works. I would beg you to update this excellent program to work with python-2.5.
Thanks!
Here's the output:
FretsOnFire -v
(D) Initializing audio.
(D) Audio configuration: (44100, -16, 1)
(D) Initializing video.
(D) Enabling high priority timer.
(D) 0 joysticks found.
(N) Loading Data.star1 synchronously
(D) Loading SVG file '/usr/share/games/fretsonfire/data/star1.svg'.
(N) Loaded Data.star1 in 0.000 seconds
(W) Frame buffer object support disabled in configuration.
(N) Loading Data.star2 synchronously
(D) Loading SVG file '/usr/share/games/fretsonfire/data/star2.svg'.
(N) Loaded Data.star2 in 0.000 seconds
(N) Loading Data.left synchronously
(D) Loading SVG file '/usr/share/games/fretsonfire/data/left.svg'.
(N) Loaded Data.left in 0.000 seconds
(N) Loading Data.right synchronously
(D) Loading SVG file '/usr/share/games/fretsonfire/data/right.svg'.
(N) Loaded Data.right in 0.000 seconds
(N) Loading Data.ball1 synchronously
(D) Loading SVG file '/usr/share/games/fretsonfire/data/ball1.svg'.
(N) Loaded Data.ball1 in 0.000 seconds
(N) Loading Data.ball2 synchronously
(D) Loading SVG file '/usr/share/games/fretsonfire/data/ball2.svg'.
(N) Loaded Data.ball2 in 0.000 seconds
(N) Loading Data.loadingImage synchronously
(D) Loading SVG file '/usr/share/games/fretsonfire/data/loading.svg'.
(N) Loaded Data.loadingImage in 0.000 seconds
(N) Loading Data.font asynchronously
(N) Loading Data.bigFont asynchronously
(N) Loading Data.screwUpSounds asynchronously
(N) Loading Data.acceptSound asynchronously
(N) Loading Data.cancelSound asynchronously
(N) Loading Data.selectSound1 asynchronously
(N) Loading Data.selectSound2 asynchronously
(N) Loading Data.selectSound3 asynchronously
(N) Loading Data.startSound asynchronously
(D) Ready.
(N) Loading MainMenu.background synchronously
(D) Loading SVG file '/usr/share/games/fretsonfire/data/keyboard.svg'.
(N) Loaded MainMenu.background in 0.000 seconds
(N) Loading MainMenu.guy synchronously
(D) Loading SVG file '/usr/share/games/fretsonfire/data/pose.svg'.
(N) Loaded MainMenu.guy in 0.000 seconds
(N) Loading MainMenu.logo synchronously
(D) Loading SVG file '/usr/share/games/fretsonfire/data/logo.svg'.
(N) Loaded MainMenu.logo in 0.000 seconds
(W) Unable to enable psyco.
(N) Loaded Data.font in 0.000 seconds
(N) Loaded Data.bigFont in 0.000 seconds
(N) Loaded Data.screwUpSounds in 0.078 seconds
(N) Loaded Data.acceptSound in 0.012 seconds
(N) Loaded Data.cancelSound in 0.007 seconds
(N) Loaded Data.selectSound1 in 0.006 seconds
(N) Loaded Data.selectSound2 in 0.008 seconds
(N) Loaded Data.selectSound3 in 0.007 seconds
(N) Loaded Data.startSound in 0.014 seconds
(D) View: Push: MainMenu
(D) View: Push: Menu
(E) <class 'OpenGL.GLU.GLUerror'>: [Errno 100901] invalid value
Traceback (most recent call last):
File "//usr/games/lib64/fretsonfire/GameEngine.py", line 346, in run
return self.mainloop()
File "//usr/games/lib64/fretsonfire/GameEngine.py", line 338, in main
self.view.render()
File "//usr/games/lib64/fretsonfire/View.py", line 183, in render
layer.render(self.visibility[layer], layer == self.layers[-1])
File "//usr/games/lib64/fretsonfire/Menu.py", line 207, in render
font.render(text, (x - v / 4, y))
File "//usr/games/lib64/fretsonfire/Font.py", line 119, in render
g = self.getGlyph(ch)
File "//usr/games/lib64/fretsonfire/Font.py", line 197, in getGlyph
t.loadSurface(s, alphaChannel = True)
File "//usr/games/lib64/fretsonfire/Texture.py", line 264, in loadSurface
self.loadRaw(surface.get_size(), string, GL_RGBA, 4)
File "//usr/games/lib64/fretsonfire/Texture.py", line 281, in loadRaw
gluBuild2DMipmaps(self.glTarget, components, w, h, format, GL_UNSIGNED_BYTE, string)
GLUerror: [Errno 100901] invalid value
(N) [Errno 100901] invalid value
(D) View: Push: MessageScreen

Discussion

  • I'm having the same problem, I thought it was python 2.5 fault. This is my output when trying to play the game:

    Traceback (most recent call last):
    File "src/GameEngine.py", line 350, in run
    File "src/GameEngine.py", line 342, in main
    File "src/View.py", line 183, in render
    File "src/GuitarScene.py", line 352, in render
    File "src/Scene.py", line 158, in render
    File "src/GuitarScene.py", line 224, in render3D
    File "src/Stage.py", line 344, in render
    File "src/GuitarScene.py", line 227, in renderGuitar
    File "src/Guitar.py", line 467, in render
    NameError: global name 'glScale' is not defined