Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

linuxaudiodev fails during "make test". #34225

Closed
jafo mannequin opened this issue Mar 24, 2001 · 8 comments
Closed

linuxaudiodev fails during "make test". #34225

jafo mannequin opened this issue Mar 24, 2001 · 8 comments
Labels
stdlib Python modules in the Lib dir

Comments

@jafo
Copy link
Mannequin

jafo mannequin commented Mar 24, 2001

BPO 410993
Nosy @gvanrossum, @nascheme

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2002-03-22.18:50:19.000>
created_at = <Date 2001-03-24.10:39:45.000>
labels = ['library']
title = 'linuxaudiodev fails during "make test".'
updated_at = <Date 2002-03-22.18:50:19.000>
user = 'https://bugs.python.org/jafo'

bugs.python.org fields:

activity = <Date 2002-03-22.18:50:19.000>
actor = 'nascheme'
assignee = 'none'
closed = True
closed_date = None
closer = None
components = ['Library (Lib)']
creation = <Date 2001-03-24.10:39:45.000>
creator = 'jafo'
dependencies = []
files = []
hgrepos = []
issue_num = 410993
keywords = []
message_count = 8.0
messages = ['4031', '4032', '4033', '4034', '4035', '4036', '4037', '4038']
nosy_count = 5.0
nosy_names = ['gvanrossum', 'jhylton', 'nascheme', 'cgw', 'jafo']
pr_nums = []
priority = 'low'
resolution = 'accepted'
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue410993'
versions = []

@jafo
Copy link
Mannequin Author

jafo mannequin commented Mar 24, 2001

Picked up 2.1b2 and did "./configure" and "make test"
on a RedHat 7.0-based system:

test test_linuxaudiodev crashed -- linuxaudiodev.error:
(11, 'Resource temporarily unavailable')

Was running build as root, and "mpg123" runs
successfully before and after. This is on a ThinkPad
240 with esssolo1 driver with 2.2.18 kernel.

Sean

@jafo jafo mannequin closed this as completed Mar 24, 2001
@jafo jafo mannequin added the stdlib Python modules in the Lib dir label Mar 24, 2001
@jafo jafo mannequin closed this as completed Mar 24, 2001
@jafo jafo mannequin added the stdlib Python modules in the Lib dir label Mar 24, 2001
@jhylton
Copy link
Mannequin

jhylton mannequin commented Apr 11, 2001

Logged In: YES
user_id=31392

I think we should report this failure as "test skipped." I
think it
would be essentially correct: The test was skipped because
the
device was in use. It's not a crash.

Not sure how this test is affected by the recent changes to
the module to handle EAGAIN.

Sean or Guido-- can you try it with the updated module? My
Linux audio config is screwed up.

@gvanrossum
Copy link
Member

Logged In: YES
user_id=6380

I think you misread his comment. He wasn't mpg123 *during*
the test, he ran it before and after the test to verify that
in fact his audio was in good working order.

But, I do suggest to him to try the CVS version, which is
one (relevant) fix ahead of 2.1b2.

That version passes the test for me, but I don't hear a
thing, so I'm not sure what's going on...

@gvanrossum
Copy link
Member

Logged In: YES
user_id=6380

We've gone back and forth over this one.

It seems to happen for certain drivers for certain audio
cards -- the problem has disappeared for most folks, but
still works for some hardware (e.g. some Dell laptops
running Mandrake).

I've assigned this to Charles Waldman since he seems to know
this area; he commented in python-dev that the
initialization order is invalid.

Charles if you still feel you won't touch this module
(because you'd rather give us a new module that does the
right thing), please close it as Won't Fix -- that's what I
almost did until I remembered your interest.

@gvanrossum
Copy link
Member

Logged In: YES
user_id=6380

Charles, are you still interested in tackling this bug? If
not, let us know!

@cgw
Copy link
Mannequin

cgw mannequin commented Sep 5, 2001

Logged In: YES
user_id=7151

I've been out of town and somewhat out of the loop.
But I'm back now. I will look into this over the
weekend.

@cgw
Copy link
Mannequin

cgw mannequin commented Dec 6, 2001

Logged In: YES
user_id=7151

Please see patch bpo-489989 and the comments attached there.

I have submitted a patch with the minimal fix.

The reason this took so long was that I started working
on a complete replacement for the audio output modules,
which would detect ALSA/OSS/esd/etc, then I discovered the
"libao" audio output library which does this. I think that
any future work on an audio module for Python should just
wrap libao.

Patch 489989 can't do any harm, and it might help.

@nascheme
Copy link
Member

Logged In: YES
user_id=35752

Patch 489989 has already been checked in and should
have fixed this bug. I'm going to close it.

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stdlib Python modules in the Lib dir
Projects
None yet
Development

No branches or pull requests

2 participants