OSError 38 [Errno 38] with multiprocessing OSError 38 [Errno 38] with multiprocessing linux linux

OSError 38 [Errno 38] with multiprocessing


For anyone else coming here from Google, the answer is at Django Celery Implementation - OSError errno 38 - Function not implemented:

Got it working by adding none /dev/shm tmpfs rw,nosuid,nodev,noexec 0 0 to /etc/fstab and rebooting

Instead of rebooting, sudo mount /dev/shm works.


I suspect this have to do something with this:http://bugs.python.org/issue3770

From the Python docs:

Warning: Some of this package’s functionality requires a functioning shared semaphore implementation on the host operating system. Without one, the multiprocessing.synchronize module will be disabled, and attempts to import it will result in an ImportError. See issue 3770 for additional information.

This may or may not be related, since it talks about multiprocessing.synchronize, but from what I understand, some implementations on some platforms just don't implement the semaphore API python relies upon here, which might be your problem.