AuReMe / emapper2gbk

Convert GFF, fastas, annotation table and species name into Genbank.
GNU Lesser General Public License v3.0
11 stars 5 forks source link

Issue with some macOS system (like macOS Catalina 10.15 from GitHub Actions) #3

Closed ArnaudBelcour closed 3 years ago

ArnaudBelcour commented 3 years ago

With some macOS system (but not all), there is an issue with the multiprocessing part of emapper2gbk.

This leads to error like:

+[__NSPlaceholderDate initialize] may have been in progress in another thread when fork() was called.

For GitHub Actions, this lead to macOS job reaching time limit without completing.

The fix is to use the OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES before the python call, like:

OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES python test_emapper2gbk.py

Solution from: https://stackoverflow.com/a/52230415