[aubio-user] Using aubio 0.4.0 from python (windows)
Emilio Molina Martínez
emilio.mol.mar at gmail.com
Wed Jan 1 20:52:45 CET 2014
And here the attached log file I mentioned. :)
2014/1/1 Emilio Molina Martínez <emilio.mol.mar at gmail.com>
> Hi and happy new year!,
>
> Great! now "configure" and "build" finished succesfully also for me
> (except for "test-delnull.exe", which crashes). I also installed the python
> binding with "python setup.py build", and it did it successfully I think.
> However, I wasn't able to configure the path in windows (python scripts
> always reported that libaudio-4.dll was missing), so I directly copied such
> dll to the same folder as the running python script, and it seemed now it
> does not report such error.
>
> Unfortunately, I still have problems at running the python demos and some
> python tests (run_all_tests crashed at some point, so I run them
> independently). Specifically, I have problem with the following python
> tests scripts: "test_specdesc.py", which directly crashes, and
> "test_filter.py", "test_filterbank_mel.py", "test_peakpicker.py" and
> "test_scale.py" that reported some problems (attached .txt file).
>
> Moreover, when running the demos with a a 44100Hz mono 16-bit WAV file of
> 134KB called test.wav, I have this type of problem (I didn't try all demos
> though):
>
> e.g.,
> "(...)\aubio\python\demos>python demo_pitch
> .py test.wav 44100
> AUBIO ERROR: failed creating aubio source with test.wav
> Traceback (most recent call last):
> File "demo_pitch.py", line 19, in <module>
> s = source(filename, samplerate, hop_s)
> StandardError: error creating object"
>
> How could I fix this problem?
>
> Thank you very much!
>
> Greetings,
> Emilio.
>
>
> 2013/12/31 Aymeric Zils - Voxler <aymeric.zils at voxler.fr>
>
>> ok :)
>> "configure" and "build" finished successfully with gcc and this command
>> line:
>>
>> python .\waf configure build -j 1 --check-c-compiler=gcc
>>
>>
>>
>>
>>
>> -------------------------------------------------------------------
>> Aymeric ZILS
>> Research Engineer - Voxler
>> Batiment A - 2ème étage
>> 8, Passage Brûlon - 75 012 Paris - France
>> Standard : 33 9 51 50 00 41
>> Phone : 33 1 47 04 00 41
>> aymeric.zils at voxler.fr
>> www.voxler.fr
>>
>> This email may contain confidential and/or privileged information. If you
>> are not the intended recipient (or have received this email in error)
>> please notify the sender immediately and destroy this email. Any
>> unauthorised copying, disclosure or distribution of the material in this
>> email is strictly forbidden.
>> -------------------------------------------------------------------
>>
>>
>> 2013/12/31 Emilio Molina Martínez <emilio.mol.mar at gmail.com>
>>
>>> Hi,
>>>
>>> I have the same problem as Aymeric, it doesn't compile yet. Yesterday, I
>>> tried again to select mingw as default compiler, but I was not able to do
>>> it... If you get it, Aymeric, please let me know :)
>>>
>>> Thanks,
>>> Emilio.
>>>
>>>
>>> 2013/12/31 Aymeric Zils - Voxler <aymeric.zils at voxler.fr>
>>>
>>>> Hi
>>>> Thanks for the update Paul
>>>>
>>>> I got your last dev version, but it did not build better with msvc -
>>>> even after adding yesterday's improvements (f.i. I still had to remove the
>>>> -Wextra tag in wscript - line 88)
>>>> I did not try with mingw yet.
>>>>
>>>> Now I'm getting to build more and more files by modifying the .c files
>>>> and declaring all local variables at the beginning of code blocks
>>>>
>>>> I keep you informed of any success.
>>>>
>>>> Best
>>>>
>>>>
>>>>
>>>> 2013/12/31 Paul Brossier <piem at piem.org>
>>>>
>>>>>
>>>>> On 12/30/2013 02:57 PM, Emilio Molina Martínez wrote:
>>>>> >
>>>>> > Thanks to you! I downloaded mingw, but now... how can I choose mingw
>>>>> > compiler with waf? It seems that msvc is set by default.
>>>>>
>>>>> mmh. I'm not sure really, you need to setup your environment so that CC
>>>>> point to mingw's gcc.
>>>>>
>>>>> I just pushed quite a few changes to the develop branch, trying to get
>>>>> aubio to build with theses gcc flags:
>>>>>
>>>>> -Wall -Wextra -Wstrict-prototypes -Wold-style-definition
>>>>> -Wmissing-prototypes -Wmissing-declarations
>>>>> -Wdeclaration-after-statement -Werror
>>>>>
>>>>> see http://stackoverflow.com/a/3099874
>>>>>
>>>>> I didn't change the tests to pass with -Wdeclarartion-after-statement
>>>>> yet, nor source_avcodec.c. I'm not sure yet, I find it really impairs
>>>>> the readability of the code, and makes copy-pasting from tests and
>>>>> examples cumbersome.
>>>>>
>>>>> but examples/ and src/ build with the above flags now.
>>>>>
>>>>> please let me know if it works any better with msvc!
>>>>>
>>>>> Best, Paul
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> aubio-user mailing list
>>>>> aubio-user at aubio.org
>>>>> https://lists.aubio.org/listinfo/aubio-user
>>>>>
>>>>
>>>>
>>>
>>> _______________________________________________
>>> aubio-user mailing list
>>> aubio-user at aubio.org
>>> https://lists.aubio.org/listinfo/aubio-user
>>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.aubio.org/pipermail/aubio-user/attachments/20140101/e91a8551/attachment-0001.html>
-------------- next part --------------
C:\Users\emilio\Anaconda\InstaladoresPython\aubio\python\tests>python test_filte
r.py
....AUBIO ERROR: order of C-weighting filter must be 5, not 2
AUBIO ERROR: order of C-weighting filter must be 5, not 8
AUBIO ERROR: sampling rate of C-weighting filter is 4000, should be one of 8000,
11025, 16000, 22050, 24000, 32000, 44100, 48000, 88200, 96000, 192000.
AUBIO ERROR: sampling rate of C-weighting filter is 193000, should be one of 800
0, 11025, 16000, 22050, 24000, 32000, 44100, 48000, 88200, 96000, 192000.
AUBIO ERROR: sampling rate of A-weighting filter is 193000, should be one of 800
0, 11025, 16000, 22050, 24000, 32000, 44100, 48000, 88200, 96000, 192000.
AUBIO ERROR: order of A-weighting filter must be 7, not 5
..
----------------------------------------------------------------------
Ran 6 tests in 0.013s
OK
C:\Users\emilio\Anaconda\InstaladoresPython\aubio\python\tests>
C:\Users\emilio\Anaconda\InstaladoresPython\aubio\python\tests>python test_filte
rbank_mel.py
AUBIO WARNING: Lowest frequency bin (1250.00Hz) is higher than lowest frequency
band (133.33-266.67Hz). Consider increasing the window size from 256 to 4096.
AUBIO WARNING: Lowest frequency bin (625.00Hz) is higher than lowest frequency b
and (133.33-266.67Hz). Consider increasing the window size from 512 to 4096.
AUBIO WARNING: Lowest frequency bin (312.50Hz) is higher than lowest frequency b
and (133.33-266.67Hz). Consider increasing the window size from 1024 to 4096.
AUBIO WARNING: Lowest frequency bin (156.25Hz) is higher than lowest frequency b
and (133.33-266.67Hz). Consider increasing the window size from 2048 to 4096.
..AUBIO WARNING: Lowest frequency bin (46.88Hz) is higher than lowest frequency
band (40.00-200.00Hz). Consider increasing the window size from 1024 to 2048.
.AUBIO WARNING: Lowest frequency bin (46.88Hz) is higher than lowest frequency b
and (40.00-200.00Hz). Consider increasing the window size from 1024 to 2048.
.
----------------------------------------------------------------------
Ran 4 tests in 0.031s
OK
C:\Users\emilio\Anaconda\InstaladoresPython\aubio\python\tests>
C:\Users\emilio\Anaconda\InstaladoresPython\aubio\python\tests>python test_peakp
icker.py
Traceback (most recent call last):
File "test_peakpicker.py", line 4, in <module>
from aubio import peakpicker, fvec
ImportError: cannot import name peakpicker
C:\Users\emilio\Anaconda\InstaladoresPython\aubio\python\tests>
C:\Users\emilio\Anaconda\InstaladoresPython\aubio\python\tests>python test_scale
.py
Traceback (most recent call last):
File "test_scale.py", line 6, in <module>
from aubio import fvec, scale
ImportError: cannot import name scale
C:\Users\emilio\Anaconda\InstaladoresPython\aubio\python\tests>
More information about the aubio-user
mailing list