Johannes Vogel
2010-05-05 23:12:42 UTC
Good evening,
I would liek to use pyaudiere for some coding. Unfortunately, I am rubbish at installing things and I always run into problems with installations. I subscribed to your mailing list in the hope that someone could give me pointers how to get audiere to work in either windows or linux (ubuntu; preferred choice)
I start with windows cos it is shorter:
I have WinXP, and python26
download the relevant binary for audiere
installed pyaudiere with installer
now I can import audiere in the interpreter, but when using it in a script and run that I get the following.
Traceback (most recent
call last):
File "C:\audiere.py",
line 1, in <module>
import audiere
File "C:\audiere.py",
line 5, in <module>
d =
audiere.open_device()
AttributeError: 'module'
object has no attribute 'open_device'
interestingly, following the code from the script, I can indeed open_device in the interpreter... so what is that all about?!? I am both confused, slightly annoyed cos I was so close and entirely helpless :(
now to linux, the strange beast that it is.
I use ubuntu karmic 9.10 and AMD64:
therefore installer i386 sees the wrong architecture and aborts for pyaudiere.
now to audiere:extracting the tar ball works fine. installing libaudiere is fine as well.
I can still run "./configure", but when running "make", it gives me a long list of error messages as follows:
[CODE]In file included from midi_null.cpp:1:
audiere.h: In function 'void audiere::SplitString(std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >&, const char*, char)':
audiere.h:1148: error: 'strchr' was not declared in this scope
audiere.h: In function 'void audiere::GetSupportedFileFormats(std::vector<audiere::FileFormatDesc, std::allocator<audiere::FileFormatDesc> >&)':
audiere.h:1177: error: 'strchr' was not declared in this scope
audiere.h: In function 'void audiere::EnumerateCDDevices(std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >&)':
audiere.h:1535: error: 'strlen' was not declared in this scope
make[3]: *** [midi_null.lo] Error 1
make[3]: Leaving directory `/home/nebelhom/audiere-1.9.4/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/nebelhom/audiere-1.9.4/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/nebelhom/audiere-1.9.4'
make: *** [all] Error 2[/CODE]
Unfortunately, I could not find a decent troubelshoot page on the web, so I am stuck with this. Does anyone of you know what is happening here? I would be very grateful for any ideas.
thanks a lot fellas,
Nebelhom
_________________________________________________________________
Hotmail: Trusted email with Microsofts powerful SPAM protection.
https://signup.live.com/signup.aspx?id=60969
I would liek to use pyaudiere for some coding. Unfortunately, I am rubbish at installing things and I always run into problems with installations. I subscribed to your mailing list in the hope that someone could give me pointers how to get audiere to work in either windows or linux (ubuntu; preferred choice)
I start with windows cos it is shorter:
I have WinXP, and python26
download the relevant binary for audiere
installed pyaudiere with installer
now I can import audiere in the interpreter, but when using it in a script and run that I get the following.
Traceback (most recent
call last):
File "C:\audiere.py",
line 1, in <module>
import audiere
File "C:\audiere.py",
line 5, in <module>
d =
audiere.open_device()
AttributeError: 'module'
object has no attribute 'open_device'
interestingly, following the code from the script, I can indeed open_device in the interpreter... so what is that all about?!? I am both confused, slightly annoyed cos I was so close and entirely helpless :(
now to linux, the strange beast that it is.
I use ubuntu karmic 9.10 and AMD64:
therefore installer i386 sees the wrong architecture and aborts for pyaudiere.
now to audiere:extracting the tar ball works fine. installing libaudiere is fine as well.
I can still run "./configure", but when running "make", it gives me a long list of error messages as follows:
[CODE]In file included from midi_null.cpp:1:
audiere.h: In function 'void audiere::SplitString(std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >&, const char*, char)':
audiere.h:1148: error: 'strchr' was not declared in this scope
audiere.h: In function 'void audiere::GetSupportedFileFormats(std::vector<audiere::FileFormatDesc, std::allocator<audiere::FileFormatDesc> >&)':
audiere.h:1177: error: 'strchr' was not declared in this scope
audiere.h: In function 'void audiere::EnumerateCDDevices(std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >&)':
audiere.h:1535: error: 'strlen' was not declared in this scope
make[3]: *** [midi_null.lo] Error 1
make[3]: Leaving directory `/home/nebelhom/audiere-1.9.4/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/nebelhom/audiere-1.9.4/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/nebelhom/audiere-1.9.4'
make: *** [all] Error 2[/CODE]
Unfortunately, I could not find a decent troubelshoot page on the web, so I am stuck with this. Does anyone of you know what is happening here? I would be very grateful for any ideas.
thanks a lot fellas,
Nebelhom
_________________________________________________________________
Hotmail: Trusted email with Microsofts powerful SPAM protection.
https://signup.live.com/signup.aspx?id=60969