[aubio-user] Using aubio 0.4.0 from python (windows)
Aymeric Voxler
aymeric.voxler at gmail.com
Wed Jan 8 18:38:26 CET 2014
Hi Paul
It seems that Gauthier
Boaglio<http://stackoverflow.com/users/1715716/gauthier-boaglio>'s
answer
here
http://stackoverflow.com/questions/16737260/how-to-tell-distutils-to-use-gccallows
to use gcc for "python
setup.py build"
However then the tests cannot find "aubio" module, so I'm not sure it built
correctly, or which aubio file I should use...
My "python/build/lib.win32-2.7" folder contains 3 files: __init__.py ,
_aubio.pyd , and midiconv.py
Is that correct ?
Thanks
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Aymeric ZILS - Audio Research
Phone: (+33)1-75-430-451
VOXLER
8 passage Brûlon, bât A, 3ème étage
75012 Paris
http://www.voxler.fr
Phone: (+33)1-4704-0041
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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.
2014/1/8 Aymeric Voxler <aymeric.voxler at gmail.com>
> Hi
> I still don't know how to force "python setup.py build" to use gcc
> I'll keep you informed if I find a solution
>
>
>
> --
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Aymeric ZILS - Audio Research
> Phone: (+33)1-75-430-451
>
> VOXLER
> 8 passage Brûlon, bât A, 3ème étage
> 75012 Paris
> http://www.voxler.fr
> Phone: (+33)1-4704-0041
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> 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.
>
>
> 2014/1/4 Emilio Molina Martínez <emilio.mol.mar at gmail.com>
>
>> Hi!
>>
>> I tried to install libsndfile and libav, and I recompiled it successfully
>> but it still has the same problems (I am not able to run demo_pitch.py with
>> test.wav). Just in case it was a matter of path settings, I tried to copy
>> all .DLL to the aubio folder, but it didn't improve.
>>
>> Regarding my python version, it is the last Anaconda distribution (
>> https://store.continuum.io/cshop/anaconda/), which includes python 2.7,
>> and I didn't configure anything, just typed "python setup.py build" in
>> ./python folder... Could it be something related to the mingw python
>> package included in Anaconda?
>>
>>
>> Finally, I compiled successfully the last update of aubio in the develop
>> branch (the one including RIFF wav files compatibility), but when running
>> "python setup.py build" I got this errors:
>>
>>
>> "C:\Users\emilio\Anaconda\InstaladoresPython\aubio-develop\aubio-develop\python>p
>> ython setup.py build
>> Traceback (most recent call last):
>> File "setup.py", line 32, in <module>
>> generated_object_files = generate_object_files(output_path)
>> File
>> "C:\Users\emilio\Anaconda\InstaladoresPython\aubio-develop\aubio-develop\
>> python\lib\generator.py", line 149, in generate_object_files
>> s += gen_do(do_methods[0], short_name)
>> File
>> "C:\Users\emilio\Anaconda\InstaladoresPython\aubio-develop\aubio-develop\
>> python\lib\gen_pyobject.py", line 374, in gen_do
>> outputvecs, outputcreate, returnval =
>> gen_do_output_params(outputparams, nam
>> e)
>> File
>> "C:\Users\emilio\Anaconda\InstaladoresPython\aubio-develop\aubio-develop\
>> python\lib\gen_pyobject.py", line 327, in gen_do_output_params
>> 'length': defaultsizes[name].pop(0) }
>> KeyError: 'source_wavread'"
>>
>>
>> Any other hint? :) Thanks a lot!
>>
>> Greetings,
>> Emilio.
>>
>>
>> 2014/1/4 Paul Brossier <piem at piem.org>
>>
>>> On 01/02/2014 09:42 PM, Paul Brossier wrote:
>>> > On 01/01/2014 15:52, Emilio Molina Martínez wrote:
>>> >> 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?
>>> >
>>> > you need to recompile aubio with libsndfile, and optionnaly libav,
>>> > installed.
>>>
>>> Hi all,
>>>
>>> I just pushed a source_wavread object to the develop branch, so you
>>> should be able to read basic RIFF wav files even when building without
>>> libav or libsndfile.
>>>
>>> let me know how it works!
>>>
>>> cheers, Paul
>>>
>>>
>>
>> _______________________________________________
>> 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/20140108/1a64ce24/attachment-0001.html>
More information about the aubio-user
mailing list