Issue125

Project smart
Title Find / Search for description ONLY crashes.
Priority bug Status resolved
Superseder search crashes with TypeError, info crashes with AttrributeError
View: 68
Nosy List Firewing1, netmask
Assigned To Topics

Created on 2006-02-20.23:23:47 by Firewing1, last changed 2006-02-20.23:55:37 by netmask.

Messages
msg409 (view) Author: netmask Date: 2006-02-20.23:55:36
This bug has been fixed on SVN source, and will be available on next release.

Meanwhile, you should ask the packager to apply the patch suggested on issue68
that fixes this problem.
msg407 (view) Author: Firewing1 Date: 2006-02-20.23:23:46
Hello,
I'm using SmartPM 0.41, I've tried both Dag's and ATRPMS packages for Fedora
Core 4. When I try to search packages for description, the GUI window closes, no
error. From the terminal, I find:
[code]
[admin@DellLin ~]$ smart search example
Loading cache...
Updating cache...               ######################################## [100%]

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/query.py", line 283, in main
    if pattern.search(info.getDescription()):
TypeError: expected string or buffer
[admin@DellLin ~]$
[/code] It seems the search function has a bug.
Firewing1
History
Date User Action Args
2006-02-22 02:04:29netmasklinkissue126 superseder
2006-02-20 23:55:39netmasksetpriority: critical -> bug
status: unread -> resolved
superseder: + search crashes with TypeError, info crashes with AttrributeError
messages: + msg409
nosy: + netmask
2006-02-20 23:23:49Firewing1create