Comment 2 for bug 364586

Revision history for this message
Ritesh Raj Sarraf (rrs) wrote :

The other problem that I was explaining is:

rrs@champaran:/tmp/pytagsfs-0.9.0$ pytagsfs -o format='/%a/%f' /var/tmp/kdecache-rrs/Temp\ Songs/ /tmp/foo
Traceback (most recent call last):
  File "/usr/bin/pytagsfs", line 17, in <module>
    sys.exit(main(sys.argv))
  File "/usr/lib/python2.5/site-packages/pytagsfs/main.py", line 17, in main
    return fs.main(argv)
  File "/usr/lib/python2.5/site-packages/pytagsfs/fs/__init__.py", line 362, in main
    self.pre_init()
  File "/usr/lib/python2.5/site-packages/pytagsfs/fs/__init__.py", line 519, in pre_init
    self.source_tree_rep.start()
  File "/usr/lib/python2.5/site-packages/pytagsfs/sourcetreerep/__init__.py", line 114, in start
    self.populate()
  File "/usr/lib/python2.5/site-packages/pytagsfs/sourcetreerep/pollinline.py", line 28, in wrapper
    self.monitor.process_events()
  File "/usr/lib/python2.5/site-packages/pytagsfs/util.py", line 98, in fn
    return wrapped(*args, **kwargs)
  File "/usr/lib/python2.5/site-packages/pytagsfs/sourcetreemon/deferred.py", line 80, in process_events
    super(DeferredSourceTreeMonitor, self).process_events()
  File "/usr/lib/python2.5/site-packages/pytagsfs/util.py", line 98, in fn
    return wrapped(*args, **kwargs)
  File "/usr/lib/python2.5/site-packages/pytagsfs/sourcetreemon/pyinotify_.py", line 180, in process_events
    if self.notifier.check_events(0):
TypeError: check_events() takes exactly 1 argument (2 given)

check_events() doesn't take any arguments now. And it blocks upto timeout milliseconds.

Problem is, if I invoke the method without any arg, as is expected now, the check goes for ever and it doesn't exit.
It goes and hangs in here:
  File "/usr/lib/python2.5/site-packages/pytagsfs/sourcetreemon/pyinotify_.py", line 180, in process_events
    if self.notifier.check_events():
  File "/usr/lib/pymodules/python2.5/pyinotify.py", line 949, in check_events
    ret = self._pollobj.poll(self._timeout)
KeyboardInterrupt