I get an error when trying to execute a python program that uses a multiprocessing package:
File "/usr/local/lib/python2.6/multiprocessing/__init__.py", line 178, in RLock return RLock() File "/usr/local/lib/python2.6/multiprocessing/synchronize.py", line 142, in __init__ SemLock.__init__(self, RECURSIVE_MUTEX, 1, 1) File "/usr/local/lib/python2.6/multiprocessing/synchronize.py", line 49, in __init__ sl = self._semlock = _multiprocessing.SemLock(kind, value, maxvalue) OSError: [Errno 13] Permission denied
It appears that the user does not have permission to access shared memory. When run with root privileges, it works fine.
Is there any solution to run it as a regular user (not root)?
Python version 2.6.2, OS Linux 2.6.18 (CentOS 5.4 version) and VPS machine.
python linux
Roman Dolgiy Jan 05 '10 at 21:37 2010-01-05 21:37
source share