Bug 117910 - system-config-soundcard doesn't start "list.index(x): x not in list"
Summary: system-config-soundcard doesn't start "list.index(x): x not in list"
Keywords:
Status: CLOSED DUPLICATE of bug 115198
Alias: None
Product: Fedora
Classification: Fedora
Component: system-config-soundcard
Version: rawhide
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Brent Fox
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-03-09 21:33 UTC by Toni Willberg
Modified: 2007-11-30 22:10 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-02-21 19:01:53 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Toni Willberg 2004-03-09 21:33:27 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6)
Gecko/20040217 Epiphany/1.1.9

Description of problem:
system-config-soundcard-1.2.5-1
fedora-release-1.90-11


Version-Release number of selected component (if applicable):
system-config-soundcard-1.2.5-1

How reproducible:
Always

Steps to Reproduce:
1. system-config-soundcard


Actual Results:  # system-config-soundcard
 
(system-config-soundcard.py:7396): Gdk-WARNING **: DESKTOP_STARTUP_ID
contains invalid UTF-8
Traceback (most recent call last):
  File
"/usr/share/system-config-soundcard/system-config-soundcard.py", line
47, in ?
    app = soundcard.childWindow()
  File "/usr_share/system-config-soundcard/soundcard.py", line 160, in
__init__
   
self.primaryDeviceMenu.set_active(self.cardList.index(self.soundcardBackend.getDefaultCard()))
ValueError: list.index(x): x not in list


Additional info:

Earlier versions had the same problem.

Comment 1 Toni Willberg 2004-03-09 22:23:19 UTC
commenting out this line fixes the problem:
 soundcard.py.160:
self.primaryDeviceMenu.set_active(self.cardList.index(self.soundcardBackend.getDefaultCard()))

It seems that self.soundcardBackend.getDefaultCard() returns "None"
for me, and this causes the problem. Should add some if block around
that .set_active call.

Additionally the default device info isn't saved anywhere. If I change
it from the UI and click OK, on next run .getDefaultCard() gives still
"None".

I don't know Python and was unable to provide a working patch. :)


Comment 2 Toni Willberg 2004-03-09 23:09:32 UTC

*** This bug has been marked as a duplicate of 115198 ***

Comment 3 Red Hat Bugzilla 2006-02-21 19:01:53 UTC
Changed to 'CLOSED' state since 'RESOLVED' has been deprecated.


Note You need to log in before you can comment on or make changes to this bug.