[BioPython] Is BioPython thread safe?

Brandon King kingb at caltech.edu
Mon Oct 11 19:04:53 EDT 2004


Hi All,
    I'm trying to use BioPython within a thread of my main program and I 
end up getting this error. Is BioPython intended to be thread safe?

TraceBack:
<snip>
    from Bio.Blast import NCBIStandalone
  File "/usr/lib/python2.3/site-packages/Bio/__init__.py", line 106, in ?
    _load_registries()
  File "/usr/lib/python2.3/site-packages/Bio/__init__.py", line 98, in 
_load_registries
    module = __import__("Bio.config.%s" % module, {}, {}, ["Bio","config"])
  File "/usr/lib/python2.3/site-packages/Bio/config/FormatRegistry.py", 
line 26, in ?
    import _support
  File "/usr/lib/python2.3/site-packages/Bio/config/_support.py", line 
26, in ?
    from Bio.MultiProc.copen import copen_fn
  File "/usr/lib/python2.3/site-packages/Bio/MultiProc/copen.py", line 
322, in ?    signal.signal(signal.SIGTERM, _handle_sigterm)
ValueError: signal only works in main thread

-Brandon King



More information about the BioPython mailing list