OSError 38 [Errno 38] with multiprocessing

后端 未结 2 2010
难免孤独
难免孤独 2020-11-30 12:32

I\'m having the following error:

$ sudo chmod a+rwxt /dev/shm/
$ ls -ld /dev/shm/
drwxrwxrwt 2 root root 4096 Feb  4 06:56 /dev/shm/
$ python
Python 2.6.6 (r         


        
相关标签:
2条回答
  • 2020-11-30 13:03

    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.

    0 讨论(0)
  • 2020-11-30 13:04

    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.

    0 讨论(0)
提交回复
热议问题