This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: _deque and _islice are sometimes None
Type: behavior Stage: resolved
Components: Library (Lib) Versions: Python 3.4
process
Status: closed Resolution: third party
Dependencies: Superseder:
Assigned To: Nosy List: SilentGhost, linkdd
Priority: normal Keywords:

Created on 2016-06-21 08:22 by linkdd, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (2)
msg268974 - (view) Author: David Delassus (linkdd) Date: 2016-06-21 08:22
With Python 3.4.3-r1 (on Gentoo x86_64), I have encountered a strange behavior with the library "riak==2.5.3".

When closing the client connection, the library calls ``self._stop.set()`` where ``self._stop`` is a ``threading.Event``.

The following error is raised (sometimes):

```
Exception ignored in: <bound method MultiPutPool.__del__ of <riak.client.multi.MultiPutPool object at 0x7fe166fe7dd8>>
Traceback (most recent call last):
  File "/home/linkdd/devel/projects/link-framework/venv3/lib/python3.4/site-packages/riak/client/multi.py", line 110, in __del__
  File "/home/linkdd/devel/projects/link-framework/venv3/lib/python3.4/site-packages/riak/client/multi.py", line 97, in stop
  File "/usr/lib64/python3.4/threading.py", line 518, in set
  File "/usr/lib64/python3.4/threading.py", line 360, in notify_all
  File "/usr/lib64/python3.4/threading.py", line 343, in notify
TypeError: 'NoneType' object is not callable
```

When going in the ``threading`` module, I have found the following line:

```
waiters_to_notify = _deque(_islice(all_waiters, n))
```

I added just before:

```
print(_deque, _islice, all_waiters, n)
```

Just to see that ``_deque`` and ``_islice`` are both **None**. They are imported from the modules ``collections`` and ``itertools`` correctly though.
msg268980 - (view) Author: SilentGhost (SilentGhost) * (Python triager) Date: 2016-06-21 09:40
This seems to have been reported on riak's tracker: https://github.com/basho/riak-python-client/issues/449
History
Date User Action Args
2022-04-11 14:58:32adminsetgithub: 71547
2016-06-21 09:40:36SilentGhostsetstatus: open -> closed

type: crash -> behavior

nosy: + SilentGhost
messages: + msg268980
resolution: third party
stage: resolved
2016-06-21 08:22:50linkddcreate