I need to make a script that works smoothly with Python2.7 to run under Python2.6:
The script is using multiprocessing.Queue from multiprocessing import Process, Queue, Manager
and there seem to be some compatibility issues. I get this when launching the script:
File "gateway.py", line 510, in <module>
NodeQ = Queue() # Queue holding the node strrings for processing
File "/usr/lib/python2.6/multiprocessing/__init__.py", line 213, in Queue
return Queue(maxsize)
File "/usr/lib/python2.6/multiprocessing/queues.py", line 37, in __init__
self._rlock = Lock()
File "/usr/lib/python2.6/multiprocessing/synchronize.py", line 117, in __init__
SemLock.__init__(self, SEMAPHORE, 1, 1)
File "/usr/lib/python2.6/multiprocessing/synchronize.py", line 49, in __init__
sl = self._semlock = _multiprocessing.SemLock(kind, value, maxvalue)
OSError: [Errno 38] Function not implemented
How can I make this compatible?