Traceback (most recent call last):

 "/usr/local/lib/python3.5/site-packages/gevent/greenlet.py", line 534, in run
result = self._run(*self.args, **self.kwargs)

 "semaphore_test.py", line 16, in func2
sem.release()

 "gevent/_semaphore.py", line 266, in gevent._semaphore.BoundedSemaphore.release (gevent/gevent._semaphore.c:4909)

 "gevent/_semaphore.py", line 268, in gevent._semaphore.BoundedSemaphore.release (gevent/gevent._semaphore.c:4848)ValueError: Semaphore released too many times
Traceback (most recent call last):


 "/usr/lib/python3.5/site-packages/requests/packages/urllib3/connectionpool.py", line 372, in _make_request

httplib_response = conn.getresponse(buffering=True)
TypeError: getresponse() got an unexpected keyword argument 'buffering'
