diff options
author | Morgan Collett <morgan.collett@gmail.com> | 2008-08-21 10:30:28 (GMT) |
---|---|---|
committer | Morgan Collett <morgan.collett@gmail.com> | 2008-08-21 10:30:28 (GMT) |
commit | 5a7141344c60c99d819baa771552cc8061d3295a (patch) | |
tree | e6a8519c147341f2afb37d49f5a60b12d61458b9 /Speak.activity/fft_mouth.py | |
parent | 48a6e2dff631c35081e592fdc8b3b36de0363281 (diff) |
#7852: Fix crash on launch by using numpy
Diffstat (limited to 'Speak.activity/fft_mouth.py')
-rw-r--r-- | Speak.activity/fft_mouth.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Speak.activity/fft_mouth.py b/Speak.activity/fft_mouth.py index 230b673..08564d8 100644 --- a/Speak.activity/fft_mouth.py +++ b/Speak.activity/fft_mouth.py @@ -25,8 +25,13 @@ from mouth import * -from Numeric import ceil -from FFT import * +# Newer OLPC builds (and Fedora) have numpy instead of numeric: +try: + from numpy.oldnumeric import ceil + from numpy.fft import * +except: + from Numeric import ceil + from FFT import * class FFTMouth(Mouth): def __init__(self, audioSource): |