[fofix-gcode-issuetracker] Issue 1274 in fofix: Tracks other than 'song' cannot be loaded
fofix at googlecode.com
fofix at googlecode.com
Fri Mar 30 01:55:11 UTC 2012
Comment #2 on issue 1274 by shigaw... at gmail.com: Tracks other than 'song'
cannot be loaded
http://code.google.com/p/fofix/issues/detail?id=1274
Okay, so the problem seems to be that Debian is no longer packaging
Numeric, and when import Numeric fails in Audio.py, the game crashes.
This is actually patched in Debian (debian/patches/no_numeric_module in sid
at least), with the patch below. A better way to fix it though would be to
put the "import Numeric" in a try/except block, and then fall back to using
numpy if that doesn't work. e.g. (untested):
{{{
...
if tuple(int(i) for i in pygame.__version__[:5].split('.')) < (1, 9, 0):
# Must use Numeric instead of numpy, since PyGame 1.7.1 is
# not compatible with the latter, and 1.8.x isn't either (though it
claims to be).
try:
import Numeric
def zeros(size):
return Numeric.zeros(size, typecode='s') #myfingershurt: typecode s
= short = int16
except:
import numpy
def zeros(size):
return numpy.zeros(size, dtype='h')
else:
...
}}}
Attached is the debian patch for reference (basically just commenting out
some lines)
Now back to playing :D
Attachments:
debian-fofix-nonumeric.patch 1.1 KB
More information about the fofix-gcode-issuetracker
mailing list