Bug 64842 - bha barfs when accessing the permissions screen
Summary: bha barfs when accessing the permissions screen
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: newt
Version: 9
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Elliot Lee
QA Contact: Tim Powers
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2002-05-13 13:49 UTC by Tim Powers
Modified: 2007-04-18 16:42 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2004-12-02 20:06:59 UTC
Embargoed:


Attachments (Terms of Use)

Description Tim Powers 2002-05-13 13:49:37 UTC
fire up bha, select Permissions, then get this back (in full, just copying and
pasting). This now appears on porkchop as well as my workstation.

/usr/lib/python2.2/FCNTL.py:7: DeprecationWarning: the FCNTL module is
deprecated; pleas
e use fcntl
  DeprecationWarning)
Traceback (most recent call last):
  File "/usr/bin/bha", line 957, in regen_perm_list
    self.perm_list.append(I, self.plist[I])
  File "/usr/lib/python2.2/site-packages/snack.py", line 74, in append
    self.item2key[item] = key
TypeError: dict objects are unhashable
Key was abrown (type <type 'str'>) out of ['abrown',
'alan@REDHAT.
COM', 'alexl', 'alikins', 'amacleod',
'andrew
M', 'apbianco', 'aplotkin', 'arjanv',
'aviro
', 'bandregg', 'bbrock', 'bcrl',
'bellison',
 'benl', 'bennet', 'bfox', 'bhuang',
'blizza
rd', 'bmatthews', 'borgan', 'bretm',
'brosen
kr', 'bstevens', 'build/beehive',
'carole', 
'compile/beehive', 'copeland', 'crutcher',
'cturner@RED
HAT.COM', 'davem', 'dcm', 'ddj',
'dfisher', 
'djoo', 'dkl', 'dledford',
'dlehman', 'dmarl
in', 'dnovillo', 'dwmw2', 'echen',
'ewt@REDH
AT.COM', 'fche', 'flanagan', 'fnasser',
'gafton@REDHAT.
COM', 'gbenson', 'gdk', 'harald',
'havill', 
'hdeller', 'hilary', 'hp', 'i18n',
'ishikawa
@REDHAT.COM', 'jakub', 'jantill', 'jbj',
'jclover@REDHA
T.COM', 'jhogan', 'jkt', 'jmcdermo',
'joffrion
OM', 'johnsonm', 'jorton', 'jrb',
'jturner',
 'karsten', 'katzj', 'kbarrett',
'laroche', 
'liams', 'llch', 'lpalma',
'maint/beehive', 
'matthias', 'mharris', 'mingo',
'mjc', 'mliu
@REDHAT.COM', 'msf', 'msw', 'nalin',
'nmurray
M', 'notting', 'npadgett', 'otaylor',
'patrickm@REDHAT.
COM', 'pbrown', 'pcheung', 'petersen',
'pgampe
OM', 'pjones', 'pknirsch', 'queue/beehive',
'rawhide/be
ehive', 'rlandry', 'rob', 'rray',
'sct@REDHA
T.COM', 'smoore', 'sopwith', 'spenning',
'ssato@REDHAT.
COM', 'streeter', 'tagoh', 'taw',
'tba', 'te
g', 'terryj', 'tfox', 'tgl',
'than
M', 'timp', 'tlancast', 'tm2b',
'tromey', 't
waugh', 'veillard', 'wensong',
'wil', 'willi
ams', 'ynakai', 'yshao', 'zaitcev'],
value w
as {'packager': '1', 'authorized': '1'} type <type 'instance'>

Comment 1 Matt Wilson 2002-08-20 13:49:42 UTC
coding error in beehive

>>> foo = {1:1, 2:2}
>>> bar = {}
>>> bar[1] = foo
>>> bar[foo]  = 1
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
TypeError: dict objects are unhashable

Not allowed in python - don't pass unhashable objects into list.append.

Comment 2 Elliot Lee 2002-08-23 15:10:38 UTC
list.append needs to accept unhashable objects for listitem-data. If you need to do data->
listitem, fallback to hash(id(obj)) if the object is unhashable.

Comment 3 Eido Inoue 2004-11-05 19:39:15 UTC
this isn't a newt bug.

Comment 4 Elliot Lee 2004-12-02 20:06:59 UTC
dgregor fixed this a while back.


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