![](https://seccdn.libravatar.org/avatar/41ed85ec60b719fa1654d12375dd9bd6.jpg?s=120&d=mm&r=g)
On Tue, 2005-10-25 at 11:04 -0500, Stan Glasoe wrote:
On Monday 24 October 2005 2:46 pm, Ken Schneider wrote:
When trying to run smart --gui I get the following error:
Traceback (most recent call last):
File "/usr/bin/smart", line 193, in ? main(sys.argv[1:])
File "/usr/bin/smart", line 166, in main exitcode = iface.run(opts.command, opts.argv)
File "/usr/lib/python2.4/site-packages/smart/interfaces/gtk/interactive.py", line 363, in run self._ctrl.reloadChannels()
File "/usr/lib/python2.4/site-packages/smart/control.py", line 375, in reloadChannels self._cache.load()
File "/usr/lib/python2.4/site-packages/smart/backends/rpm/header.py", line 253, in load reqdict[(f[i]&7744 and PreReq or Req,
TypeError: unsubscriptable object
The only choice is to close the error window which shuts down smart.
-- Ken Schneider
Me too. Works in 10.0.
Stan This is the fix that was sent to me in the opensuse list. This is for SuSE 9.3 only as far as I know.
--- smart/backends/rpm/header.py +++ smart/backends/rpm/header.py @@ -246,6 +250,8 @@ # RPMSENSE_SCRIPT_PREUN | # RPMSENSE_SCRIPT_POST | # RPMSENSE_SCRIPT_POSTUN == 7744 + if type(f) != list: + f = [f] reqdict[(f[i]&7744 and PreReq or Req, intern(ni), r, vi)] = True reqargs = reqdict.keys() Regards Christoph -- Ken Schneider UNIX since 1989, linux since 1994, SuSE since 1998