If you're fortunate enough to find yourself on a platform without a SemLockType ¯\(ツ)/¯ and see this:
# python -m multiprocessing
Traceback (most recent call last):
File "/usr/lib/python2.7/runpy.py", line 163, in _run_module_as_main
File "/usr/lib/python2.7/runpy.py", line 111, in _get_module_details
File "/usr/lib/python2.7/multiprocessing/__init__.py", line 84, in <module>
ImportError: /usr/lib/python2.7/lib-dynload/_multiprocessing.so: undefined symbol: SemLockType
But the code your running "needs" a threadpool. Why not patch out multiprocessing with something ✨ synchronous ✨
mkdir multiprocessing
touch multiprocessing/__init__.py
Place the file below as multiprocessing/pool.py
and you have a synchronous "threadpool" 🎉