我从github安装了aubio 0.40。安装似乎很好。但是测试失败了。
.aubio-master/python/tests/run_all_test
File ".aubio-master/tests/run_all_tests", line 24, in <module>
unittest.main(defaultTest = 'load_test')
File "/usr/lib/python2.7/unittest/main.py", line 94, in __init__
self.parseArgs(argv)
File "/usr/lib/python2.7/unittest/main.py", line 149, in parseArgs
self.createTests()
File "/usr/lib/python2.7/unittest/main.py", line 158, in createTests
self.module)
File "/usr/lib/python2.7/unittest/loader.py", line 128, in loadTestsFromNames
suites = [self.loadTestsFromName(name, module) for name in names]
File "/usr/lib/python2.7/unittest/loader.py", line 113, in loadTestsFromName
test = obj()
File "./tests/run_all_tests", line 19, in load_test
modules = map (__import__, modnames)
File "/home/ajit/aubio-0.4.0/python/tests/test_note2midi.py", line 4, in <module>
from aubio import note2midi
ImportError: cannot import name note2midi
当我在aubio上做了一个目录时。
>>dir(aubio)
>>['__LICENSE__', '__builtins__', '__doc__', '__file__', '__name__', '__package__', '__path__', 'aubioclass', 'aubiowrapper', 'task']
我没有看到演示和测试中包含的任何功能。
但是,我能够在 ./aubio-master/python.old 中运行脚本
有没有人有类似的问题?