Package: libpython3.5-minimal
Version: 3.5.3-1
Severity: normal
Tags: patch

I'm running ansible from a virtualenv based on Python 3.5
as installed via the python-3 package in Debian Stretch.

I frequently (though not on all runs) see the error

Exception ignored in: <function WeakValueDictionary.__init__.<locals>.remove at
0x7f749113bbf8>
Traceback (most recent call last):
  File "/home/andreas/.../lib/python3.5/weakref.py", line 117, in remove
TypeError: 'NoneType' object is not callable

I understand that a known bug is the culprit, which can be found at
https://bugs.python.org/issue29519

This bug has been fixed upstream with Python versions 3.5.4 and 3.6.1.
The Debian Stretch Python 3.5 packages are based on 3.5.3.

The fix is a two-line patch to weakref.py available at
https://hg.python.org/cpython/rev/2cb530243943 .

Workaround:

I applied this patch to the copy of this file available in my virtualenv,
(after replacing the symlink with an actual copy).
That cured my problem.

Regards, and thank you for providing fine software,

Andreas



-- System Information:
Debian Release: 9.5
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.17.0-0.bpo.3-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8),
LANGUAGE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages libpython3.5-minimal depends on:
ii  libc6      2.24-11+deb9u3
ii  libssl1.1  1.1.0f-3+deb9u2

Versions of packages libpython3.5-minimal recommends:
ii  libpython3.5-stdlib  3.5.3-1

libpython3.5-minimal suggests no packages.

-- no debconf information


Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to