mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-17 06:00:42 +01:00
Add explicit/helpful error message about how to solve the multiprocessing 'Permission denied' issue.
This commit is contained in:
parent
36f54039fc
commit
ebde072f39
@ -101,7 +101,17 @@ def process(f, *args, **kwargs):
|
|||||||
except Exception as e:
|
except Exception as e:
|
||||||
raise e
|
raise e
|
||||||
|
|
||||||
q = multiprocessing.Queue()
|
try:
|
||||||
|
q = multiprocessing.Queue()
|
||||||
|
except OSError:
|
||||||
|
log.error('Using multiprocessing.Queue raised an OSError.\n'
|
||||||
|
'This is probably caused by your system denying semaphore\n'
|
||||||
|
'usage. You should run these two commands:\n'
|
||||||
|
'\tsudo rmdir /dev/shm\n'
|
||||||
|
'\tsudo ln -Tsf /{run,dev}/shm\n'
|
||||||
|
'(See https://github.com/travis-ci/travis-core/issues/187\n'
|
||||||
|
'for more informations about this bug.)\n')
|
||||||
|
raise
|
||||||
def newf(f, q, *args, **kwargs):
|
def newf(f, q, *args, **kwargs):
|
||||||
if resource:
|
if resource:
|
||||||
rsrc = resource.RLIMIT_DATA
|
rsrc = resource.RLIMIT_DATA
|
||||||
|
Loading…
x
Reference in New Issue
Block a user