trying to use smart in 9.3
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 UNIX since 1989, linux since 1994, SuSE since 1998
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
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
On Tuesday 25 October 2005 1:19 pm, Ken Schneider wrote:
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()
Ken Schneider
Thanks Ken. I saw that too. Now to expose some ignorance on my part... What the heck do I do with this? I thought I'd use Kate to edit the file but I guess I should use another process since it works for you (whatever you did) and my method failed. TIA for sharing the knowledge! Stan
On Wed, 2005-10-26 at 12:53 -0500, Stan Glasoe wrote:
On Tuesday 25 October 2005 1:19 pm, Ken Schneider wrote:
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
Add the next two lines at this point in the file.
+ if type(f) != list: + f = [f]
Leave out the > > + at the beginning of the lines.
reqdict[(f[i]&7744 and PreReq or Req, intern(ni), r, vi)] = True reqargs = reqdict.keys()
Ken Schneider
Thanks Ken. I saw that too. Now to expose some ignorance on my part... What the heck do I do with this? I thought I'd use Kate to edit the file but I guess I should use another process since it works for you (whatever you did) and my method failed.
TIA for sharing the knowledge! Stan
-- Ken Schneider UNIX since 1989, linux since 1994, SuSE since 1998
On Wednesday 26 October 2005 4:03 pm, Ken Schneider wrote:
On Wed, 2005-10-26 at 12:53 -0500, Stan Glasoe wrote:
On Tuesday 25 October 2005 1:19 pm, Ken Schneider wrote:
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
Add the next two lines at this point in the file.
+ if type(f) != list: + f = [f]
Leave out the > > + at the beginning of the lines.
reqdict[(f[i]&7744 and PreReq or Req, intern(ni), r, vi)] = True reqargs = reqdict.keys()
Ken Schneider
That was what I did but I got even more errors. Uninstalled smart, grabbed newer version 0.40-8.guru.suse93 and do not have the problem anymore. Works very well so far. Thanks, Stan
Do you smartd? If so it says -gui is unregognized 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
-- 73 de Donn Washburn Hpage:" http://www.hal-pc.org/~n5xwb " Ham Callsign N5XWB Email: " n5xwb@hal-pc.org " 307 Savoy St. HAMs : " n5xwb@arrl.net " Sugar Land, TX 77478 BMW MOA #: 4146 - Ambassador LL# 1.281.242.3256 " http://counter.li.org " #279316
* Donn Washburn
Do you smartd? If so it says -gui is unregognized
full quote below top post deleted. smartd belongs to smartmontools, a storage device monitor, and smart is a package manager replacement for apt4rpm. The conversation in this thread is about the package manager which *does* have a -gui command-line option. -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org HOG # US1244711 Photo Album: http://wahoo.no-ip.org/gallery2
participants (4)
-
Donn Washburn
-
Ken Schneider
-
Patrick Shanahan
-
Stan Glasoe