Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using stagger in threads. #38

Open
GoogleCodeExporter opened this issue Oct 6, 2015 · 0 comments
Open

Using stagger in threads. #38

GoogleCodeExporter opened this issue Oct 6, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

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 [email protected] on 8 May 2011 at 6:31

Attachments:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants