[BioPython] Is BioPython thread safe?

Brandon King kingb at caltech.edu
Thu Oct 21 17:42:58 EDT 2004


Hello All,
    Did I not give enough information about the problem? Any one have 
any suggestions or ideas?

-Brandon King

Brandon King wrote:

> 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
>
> _______________________________________________
> BioPython mailing list  -  BioPython at biopython.org
> http://biopython.org/mailman/listinfo/biopython
>
>



More information about the BioPython mailing list