#4 Test.py fails after installation

open
nobody
None
5
2009-07-07
2009-07-07
No

I installed pyalsaudio per instructions at http://pyalsaaudio.sourceforge.net/pyalsaaudio.html#installation but after installation, test,.py failed 3 tests with the error: "ALSAAudioError: Invalid argument". Here are the details of my setup and installation sequence.

* Running Ubuntu 9.04 (jaunty) with Linux kernel 2.6.28-13-generic on a 64-bit setup
* Installed libasound2-dev version 1.0.18-1ubuntu9
* Downloaded pyalsaaudio-0.5

* Ran "python setup.py build" which went through successfully:
running build
running build_ext
building 'alsaaudio' extension
creating build
creating build/temp.linux-x86_64-2.6
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.6 -c alsaaudio.c -o build/temp.linux-x86_64-2.6/alsaaudio.o
creating build/lib.linux-x86_64-2.6
gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions build/temp.linux-x86_64-2.6/alsaaudio.o -lasound -o build/lib.linux-x86_64-2.6/alsaaudio.so

* Ran "sudo python setup.py install" which also wnet through successfully:
running install
running build
running build_ext
running install_lib
copying build/lib.linux-x86_64-2.6/alsaaudio.so -> /usr/local/lib/python2.6/dist-packages
running install_egg_info
Writing /usr/local/lib/python2.6/dist-packages/pyalsaaudio-0.5.egg-info

* Ran "python test.py" and "sudo python test.py" both of which failed:
...EEE
======================================================================
ERROR: Open a PCM object on every card
----------------------------------------------------------------------
Traceback (most recent call last):
File "test.py", line 90, in testPCM
pcm = alsaaudio.PCM(card=c)
ALSAAudioError: Invalid argument

======================================================================
ERROR: Run all PCM methods on an open object
----------------------------------------------------------------------
Traceback (most recent call last):
File "test.py", line 96, in testPCMAll
pcm = alsaaudio.PCM()
ALSAAudioError: Invalid argument

======================================================================
ERROR: Run all PCM methods on a closed object and verify it raises an error
----------------------------------------------------------------------
Traceback (most recent call last):
File "test.py", line 111, in testPCMClose
pcm = alsaaudio.PCM()
ALSAAudioError: Invalid argument

----------------------------------------------------------------------
Ran 6 tests in 0.295s

FAILED (errors=3)

Discussion