Running from thread raises ValueError. Script raising exception is in
attachment.
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python3.2/threading.py", line 736, in _bootstrap_inner
self.run()
File "/usr/lib/python3.2/threading.py", line 689, in run
self._target(*self._args, **self._kwargs)
File "stagger-thread.py", line 10, in writeTags
tag.write(path)
File "/usr/lib/python3.2/site-packages/stagger-0.4.2-py3.2.egg/stagger/tags.py", line 656, in write
fileutil.replace_chunk(file, offset, length, tag_data)
File "/usr/lib/python3.2/site-packages/stagger-0.4.2-py3.2.egg/stagger/fileutil.py", line 101, in replace_chunk
with suppress_interrupt():
File "/usr/lib/python3.2/contextlib.py", line 28, in __enter__
return next(self.gen)
File "/usr/lib/python3.2/site-packages/stagger-0.4.2-py3.2.egg/stagger/fileutil.py", line 75, in suppress_interrupt
s = signal.signal(signal.SIGINT, sigint_handler)
ValueError: signal only works in main thread
Original issue reported on code.google.com by kazuldur@gmail.com on 8 May 2011 at 6:31
Original issue reported on code.google.com by
kazuldur@gmail.com
on 8 May 2011 at 6:31Attachments: