OSError 38 [Errno 38] with multiprocessing

后端 未结 2 2020
难免孤独
难免孤独 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: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.

提交回复
热议问题