Package: pyzo Version: 4.4.3-1.2 Severity: grave Tags: patch upstream Justification: renders package unusable
Dear Maintainer, When trying to launch pyzo in a standard debian environment with python3.9, I face the following error: Traceback (most recent call last): File "/usr/bin/pyzo", line 11, in <module> load_entry_point('pyzo==4.4.3', 'console_scripts', 'pyzo')() File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 474, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2846, in load_entry_point return ep.load() File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2450, in load return self.resolve() File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2456, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "/usr/share/pyzo/pyzo/__init__.py", line 73, in <module> if commandline.is_our_server_running(): File "/usr/share/pyzo/pyzo/core/commandline.py", line 150, in is_our_server_running return server and server.isAlive() AttributeError: 'Server' object has no attribute 'isAlive' This error seems to be related to https://github.com/pyzo/pyzo/issues/713 Applying the upstream patch fixes the problem - see attached. Upgrading pyzo to a newer version should also be OK. Regards, Alexis Bienvenüe. -- System Information: Debian Release: bullseye/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'stable') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 5.10.0-1-amd64 (SMP w/8 CPU threads) Kernel taint flags: TAINT_WARN Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages pyzo depends on: ii famfamfam-silk 1.3-1.1 ii fonts-dejavu-core 2.37-2 ii fonts-dejavu-extra 2.37-2 ii python3 3.9.1-1 ii python3-pkg-resources 51.3.3-1 ii python3-qtpy 1.9.0-3 pyzo recommends no packages. Versions of packages pyzo suggests: pn pyzo-doc <none> -- no debconf information
diff -Nru pyzo-4.4.3/debian/changelog pyzo-4.4.3/debian/changelog --- pyzo-4.4.3/debian/changelog 2019-01-11 19:09:52.000000000 +0100 +++ pyzo-4.4.3/debian/changelog 2021-01-24 15:52:14.000000000 +0100 @@ -1,3 +1,9 @@ +pyzo (4.4.3-1.3) UNRELEASED; urgency=medium + + * Fix crash with python3.9 + + -- Alexis Bienvenüe <p...@passoire.fr> Sun, 24 Jan 2021 15:52:14 +0100 + pyzo (4.4.3-1.2) unstable; urgency=medium * Non-maintainer upload. diff -Nru pyzo-4.4.3/debian/patches/0002-replace-isAlive-per-is_alive-to-become-Python-3.9-compat.patch pyzo-4.4.3/debian/patches/0002-replace-isAlive-per-is_alive-to-become-Python-3.9-compat.patch --- pyzo-4.4.3/debian/patches/0002-replace-isAlive-per-is_alive-to-become-Python-3.9-compat.patch 1970-01-01 01:00:00.000000000 +0100 +++ pyzo-4.4.3/debian/patches/0002-replace-isAlive-per-is_alive-to-become-Python-3.9-compat.patch 2021-01-24 15:50:46.000000000 +0100 @@ -0,0 +1,31 @@ +Description: Replace isAlive per is_alive to become Python 3.9 compatible + With python3.9, pyzo 4.4.3 crashes at startup with + AttributeError: 'Server' object has no attribute 'isAlive' +Author: Alexis Bienvenüe <p...@passoire.fr> +Origin: upstream +Bug: https://github.com/pyzo/pyzo/issues/713 +Applied-Upstream: https://github.com/pyzo/pyzo/pull/714/commits/9d9b2fe126f70f70ff8b0fa9dd5ba047f595b75a +--- +This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ +--- a/pyzo/core/commandline.py ++++ b/pyzo/core/commandline.py +@@ -147,7 +147,7 @@ def is_our_server_running(): + not running, this is probably not the first Pyzo, but there might + also be problem with starting the server. + """ +- return server and server.isAlive() ++ return server and server.is_alive() + + + def is_pyzo_server_running(): +--- a/pyzo/yoton/channels/channels_reqrep.py ++++ b/pyzo/yoton/channels/channels_reqrep.py +@@ -714,7 +714,7 @@ class RepChannel(BaseChannel): + self._timer.start() + elif mode in [2, 'thread', 'thread-driven']: + self._run_mode = 2 +- if not self._thread.isAlive(): ++ if not self._thread.is_alive(): + self._thread.start() + else: + raise ValueError('Invalid mode for ReqChannel instance.') diff -Nru pyzo-4.4.3/debian/patches/series pyzo-4.4.3/debian/patches/series --- pyzo-4.4.3/debian/patches/series 2018-11-30 16:17:17.000000000 +0100 +++ pyzo-4.4.3/debian/patches/series 2021-01-24 15:43:45.000000000 +0100 @@ -1,2 +1,3 @@ Disable-install-of-appdata.patch 0001-replace-async-per-basync-to-become-Python-3.7-compat.patch +0002-replace-isAlive-per-is_alive-to-become-Python-3.9-compat.patch