Skip to content

Instantly share code, notes, and snippets.

@cscotta
Created May 4, 2011 23:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cscotta/956256 to your computer and use it in GitHub Desktop.
Save cscotta/956256 to your computer and use it in GitHub Desktop.
cscotta@tacobot:~$ python
Python 2.6.1 (r261:67515, Jun 24 2010, 21:47:49)
[GCC 4.2.1 (Apple Inc. build 5646)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from multiprocessing import Queue
>>> q = Queue(maxsize=32768)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/multiprocessing/__init__.py", line 212, in Queue
return Queue(maxsize)
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/multiprocessing/queues.py", line 43, in __init__
self._sem = BoundedSemaphore(maxsize)
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/multiprocessing/synchronize.py", line 100, in __init__
SemLock.__init__(self, SEMAPHORE, value, value)
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/multiprocessing/synchronize.py", line 49, in __init__
sl = self._semlock = _multiprocessing.SemLock(kind, value, maxvalue)
OSError: [Errno 22] Invalid argument
>>>
@victor-letunovsky
Copy link

Hello. I have exactly the same issue.
Do you know how to fix it?
Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment