smart-r735: StopIteration on x86_64

Martin A. Brown martin at linux-ip.net
Wed Jul 19 18:13:17 PDT 2006


Hi there Gustavo,

 : > I'm experiencing a bit of trouble with smart, as checked out of 
 : > subversion (r735).  I resorted to subversion (as opposed to the 
 : > official distribution, since I suspected that I had encountered an 
 : > earlier bug [0].
 : 
 : It looks like your rpm database has changed even though the mtime 
 : has not since Smart last looked. Can you please try to do 
 : something like:
 : 
 :   touch /var/lib/rpm/Packages

It didn't seem to work after "touch /var/lib/rpm/Packages" [0].

 : if it still doesn't work, try to remove your cache with
 : 
 :   rm /var/lib/smart/cache
 : 
 : and please let me know.

I also tried this [1], to no avail.  I'd be happy to offer up some
other diagnostic information if you wish.  Just let me know what
that should be.

And, whatever am I to do in the meantime, if I need the package
called "thingy"?  :)

Thank you, Gustavo,

-Martin

 [0] Attempt #0:

  # touch /var/lib/rpm/Packages 
  # smart search thingy
  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/lib64/python2.3/site-packages/smart/interface.py", line 53, in run
      result = _command.main(self._ctrl, opts)
    File "/usr/lib64/python2.3/site-packages/smart/commands/query.py", line 279, in main
      if pattern.search(info.getSummary()):
    File "/usr/lib64/python2.3/site-packages/smart/backends/rpm/header.py", line 102, in getSummary
      s = self._h[rpm.RPMTAG_SUMMARY]
    File "/usr/lib64/python2.3/site-packages/smart/backends/rpm/header.py", line 58, in __get__
      obj._h = obj._loader.getHeader(obj._package)
    File "/usr/lib64/python2.3/site-packages/smart/backends/rpm/header.py", line 581, in getHeader
      return mi.next()
  StopIteration

 [1] Attempt #1:

  # rm /var/lib/smart/cache 
  # smart search thingy
  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/lib64/python2.3/site-packages/smart/interface.py", line 53, in run
      result = _command.main(self._ctrl, opts)
    File "/usr/lib64/python2.3/site-packages/smart/commands/query.py", line 279, in main
      if pattern.search(info.getSummary()):
    File "/usr/lib64/python2.3/site-packages/smart/backends/rpm/header.py", line 102, in getSummary
      s = self._h[rpm.RPMTAG_SUMMARY]
    File "/usr/lib64/python2.3/site-packages/smart/backends/rpm/header.py", line 58, in __get__
      obj._h = obj._loader.getHeader(obj._package)
    File "/usr/lib64/python2.3/site-packages/smart/backends/rpm/header.py", line 581, in getHeader
      return mi.next()
  StopIteration



-- 
Martin A. Brown
http://linux-ip.net/



More information about the Smart mailing list