1. Matt Chaput
  2. whoosh
  3. Issues
Issue #148 resolved

[with fix] AttributeError: 'MultiSegmentWriter' has no attribute 'lock'

Thomas Waldmann
created an issue

Should that maybe be "self.writelock" instead of "self.lock"?

{{{ Traceback (most recent call last): File "/home/marchael/Downloads/moin/moin2/moin-2.0/env/bin/moin", line 8, in <module> load_entry_point('moin==2.0.0a0', 'console_scripts', 'moin')() File "/home/marchael/Downloads/moin/moin2/moin-2.0/MoinMoin/script/init.py", line 42, in main return manager.run(default_command=default_command) File "/home/marchael/Downloads/moin/moin2/moin-2.0/env/lib/python2.6/site-packages/flaskext/script.py", line 684, in run sys.argv[2:]) File "/home/marchael/Downloads/moin/moin2/moin-2.0/env/lib/python2.6/site-packages/flaskext/script.py", line 655, in handle command.handle(app, positional_args, command_namespace.dict) File "/home/marchael/Downloads/moin/moin2/moin-2.0/env/lib/python2.6/site-packages/flaskext/script.py", line 192, in handle self.run(*args, kwargs) File "/home/marchael/Downloads/moin/moin2/moin-2.0/MoinMoin/script/maint/build_indexes.py", line 78, in run build_both() File "/home/marchael/Downloads/moin/moin2/moin-2.0/MoinMoin/script/maint/build_indexes.py", line 47, in build_both latest_rev_writer.add_document(*metadata) File "/home/marchael/Downloads/moin/moin2/moin-2.0/env/lib/python2.6/site-packages/whoosh/writing.py", line 62, in exit self.cancel() File "/home/marchael/Downloads/moin/moin2/moin-2.0/env/lib/python2.6/site-packages/whoosh/filedb/multiproc.py", line 151, in cancel self.lock.release() AttributeError: 'MultiSegmentWriter' object has no attribute 'lock' }}}

I am not sure why it calls cancel() at all, though.

Bug found by MoinMoin GSOC student "marchael". :)

Comments (2)

  1. Log in to comment