[SciPy-user] audiolab Problem

Stéfan van der Walt stefan@sun.ac...
Wed Feb 4 14:42:10 CST 2009


Hi George

2009/2/4 Georg Holzmann <grh@mur.at>:
> I have a problem with using the scikits.audiolab package (from svn) on
> latest ubuntu (python 2.5.2, numpy 1.1.1).
>
> When I want to import the module I get the following error:
>     import scikits.audiolab
>   File "/usr/lib/python2.5/site-packages/scikits/audiolab/__init__.py",
> line 37, in <module>
>     from numpy.testing import Tester
> ImportError: cannot import name Tester
>
> At least in my numpy version there is no Tester class in numpy.testing.
> Ok, so I just removed this line in the __init__ file ...

"Tester" has been added after 1.1.  Your workaround is OK.

> However, I wanted to run the tests, because you wrote on the audiolab
> website, that there can be a nasty bug with integers which corrupts the
> audio ...
> But when I try to run the tests I get the next errors:
> Traceback (most recent call last):
>   File "test_matapi.py", line 22, in <module>
>     class test_audiolab(TestCase):
> NameError: name 'TestCase' is not defined
>
> And there are a few more ...

Just replace TestCase with unittest.TestCase (you'll have to import
unittest, too).

You should then be able to run the tests with:

nosetests scikits.audiolab

Cheers
Stéfan


More information about the SciPy-user mailing list