pytagsfs breaks with pyinotify version 0.8.6
Bug #364586 reported by
Ritesh Raj Sarraf
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pytagsfs |
Fix Released
|
High
|
Forest Bond |
Bug Description
A new version of pyinotify is available in Debian Experimental (0.8.6).
This version of pyinotify is backward incompatible. And pytagsfs breaks with this version.
I have fixed part of the problem where IN_* Event Codes are now part of pyinotify's scope. Patch is attached.
I briefly looked at the other problem but am not sure about the change.
To post a comment you must log in.
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 pytagsfs" , line 17, in <module> exit(main( sys.argv) ) python2. 5/site- packages/ pytagsfs/ main.py" , line 17, in main python2. 5/site- packages/ pytagsfs/ fs/__init_ _.py", line 362, in main python2. 5/site- packages/ pytagsfs/ fs/__init_ _.py", line 519, in pre_init source_ tree_rep. start() python2. 5/site- packages/ pytagsfs/ sourcetreerep/ __init_ _.py", line 114, in start python2. 5/site- packages/ pytagsfs/ sourcetreerep/ pollinline. py", line 28, in wrapper monitor. process_ events( ) python2. 5/site- packages/ pytagsfs/ util.py" , line 98, in fn python2. 5/site- packages/ pytagsfs/ sourcetreemon/ deferred. py", line 80, in process_events DeferredSourceT reeMonitor, self).process_ events( ) python2. 5/site- packages/ pytagsfs/ util.py" , line 98, in fn python2. 5/site- packages/ pytagsfs/ sourcetreemon/ pyinotify_ .py", line 180, in process_events check_events( 0):
Traceback (most recent call last):
File "/usr/bin/
sys.
File "/usr/lib/
return fs.main(argv)
File "/usr/lib/
self.pre_init()
File "/usr/lib/
self.
File "/usr/lib/
self.populate()
File "/usr/lib/
self.
File "/usr/lib/
return wrapped(*args, **kwargs)
File "/usr/lib/
super(
File "/usr/lib/
return wrapped(*args, **kwargs)
File "/usr/lib/
if self.notifier.
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. python2. 5/site- packages/ pytagsfs/ sourcetreemon/ pyinotify_ .py", line 180, in process_events check_events( ): pymodules/ python2. 5/pyinotify. py", line 949, in check_events poll(self. _timeout) ...
It goes and hangs in here:
File "/usr/lib/
if self.notifier.
File "/usr/lib/
ret = self._pollobj.