Issue68

Project smart
Title search crashes with TypeError, info crashes with AttrributeError
Priority bug Status resolved
Superseder [PATCH] Fixed query with empty description/summary
View: 64
Nosy List multinymous, netmask
Assigned To Topics

Created on 2006-01-03.09:34:32 by multinymous, last changed 2006-01-25.16:41:22 by netmask.

Files
File name Uploaded Type Edit Remove
smart-empty-summdesc-metadata.diff netmask, 2006-01-24.19:02:55 text/x-patch
Messages
msg292 (view) Author: multinymous Date: 2006-01-24.21:00:35
Yes, the patch posted here fixes the "info dhcdbd" crash.
msg289 (view) Author: netmask Date: 2006-01-24.19:02:55
The problem has been solved on issue64. Please check the patch attached here,
and report back if it doesn't solve your problem. Thanks.
msg245 (view) Author: multinymous Date: 2006-01-18.07:18:31
My original report to this bug contains the transcript for two errors, one for
"search" and one for "info". After I applied the the patch, the "search" crash
no longer occurs, but the "info dhcdbd" crash still happens, with the same
transcript.
msg242 (view) Author: netmask Date: 2006-01-18.00:30:21
Can you elaborate? Have you applied the patch? What happens then?
msg232 (view) Author: multinymous Date: 2006-01-13.17:48:46
No, wait: the patch in issue64 does not fix the "info dhcdbd" crash whose
transcript I gave earlier.
msg212 (view) Author: multinymous Date: 2006-01-06.09:54:16
Indeed, the patch in issue64 fixes both problems. Thanks!
msg211 (view) Author: netmask Date: 2006-01-05.23:44:05
This has been covered by issue64.
msg205 (view) Author: multinymous Date: 2006-01-03.09:34:32
I get the following error with smart 0.41 on Fedora Core 4 (RPMforge
smart-2.2.fc4.rf, stock FC4 python-2.4.1-2):

---------------------------------
smart> search proxy
Traceback (most recent call last):
  File "/usr/bin/smart", line 194, in ?
    main(sys.argv[1:])
  File "/usr/bin/smart", line 167, in main
    exitcode = iface.run(opts.command, opts.argv)
  File "/usr/lib/python2.4/site-packages/smart/interfaces/text/interactive.py",
line 46, in run
    Interpreter(self._ctrl).cmdloop()
  File "/usr/lib/python2.4/cmd.py", line 142, in cmdloop
    stop = self.onecmd(line)
  File "/usr/lib/python2.4/site-packages/smart/interfaces/text/interactive.py",
line 195, in onecmd
    return Cmd.onecmd(self, line)
  File "/usr/lib/python2.4/cmd.py", line 219, in onecmd
    return func(arg)
  File "/usr/lib/python2.4/site-packages/smart/interfaces/text/interactive.py",
line 742, in do_search
    search.main(self._ctrl, opts, reloadchannels=False)
  File "/usr/lib/python2.4/site-packages/smart/commands/query.py", line 283, in main
    if pattern.search(info.getDescription()):
TypeError: expected string or buffer
---------------------------------

"info" is also broken for some several packages (but works for others):
---------------------------------
smart> info dhcdbd
Name: dhcdbd
Version: 1.9-1.FC4@i386
Priority: 10
Group: System Environment/Daemons
Installed Size: 175.1kB
Reference URLs:
Flags:
Channels: Fedora Core 4 updates (i386)
Summary: DHCP D-BUS daemon (dhcdbd) controls dhclient sessions with D-BUS,
stores and presents DHCP options.
Description:
Traceback (most recent call last):
  File "/usr/bin/smart", line 194, in ?
    main(sys.argv[1:])
  File "/usr/bin/smart", line 167, in main
    exitcode = iface.run(opts.command, opts.argv)
  File "/usr/lib/python2.4/site-packages/smart/interface.py", line 53, in run
    result = _command.main(self._ctrl, opts)
  File "/usr/lib/python2.4/site-packages/smart/commands/info.py", line 128, in main
    for line in info.getDescription().splitlines():
AttributeError: 'NoneType' object has no attribute 'splitlines
---------------------------------

Other commands (upgrade, install, remove, check) work fine.
History
Date User Action Args
2006-03-19 11:18:51netmasklinkissue131 superseder
2006-02-22 02:04:29netmasklinkissue126 superseder
2006-02-20 23:55:38netmasklinkissue125 superseder
2006-01-25 16:41:23netmasksetstatus: chatting -> resolved
2006-01-24 21:00:51multinymoussetstatus: resolved -> chatting
messages: + msg292
2006-01-24 19:03:15netmasksetstatus: chatting -> resolved
files: + smart-empty-summdesc-metadata.diff
messages: + msg289
2006-01-18 07:18:35multinymoussetmessages: + msg245
2006-01-18 00:30:29netmasksetmessages: + msg242
2006-01-13 17:48:46multinymoussetstatus: resolved -> chatting
messages: + msg232
2006-01-06 12:20:55netmasksetstatus: chatting -> resolved
2006-01-06 09:54:18multinymoussetstatus: resolved -> chatting
nosy: multinymous, netmask
messages: + msg212
2006-01-05 23:44:07netmasksetstatus: unread -> resolved
messages: + msg211
superseder: + [PATCH] Fixed query with empty description/summary
nosy: + netmask
2006-01-03 09:34:33multinymouscreate