Your message dated Tue, 02 Mar 2021 06:33:48 +0000
with message-id <e1lgybm-0009gu...@fasolo.debian.org>
and subject line Bug#980935: fixed in pyzo 4.11.2-1
has caused the Debian Bug report #980935,
regarding pyzo: Crash at startup with python3.9
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
980935: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=980935
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
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

--- End Message ---
--- Begin Message ---
Source: pyzo
Source-Version: 4.11.2-1
Done: Alexis Bienvenüe <p...@passoire.fr>

We believe that the bug you reported is fixed in the latest version of
pyzo, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 980...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Alexis Bienvenüe <p...@passoire.fr> (supplier of updated pyzo package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Fri, 12 Feb 2021 08:02:49 +0100
Source: pyzo
Architecture: source
Version: 4.11.2-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Science Maintainers 
<debian-science-maintain...@lists.alioth.debian.org>
Changed-By: Alexis Bienvenüe <p...@passoire.fr>
Closes: 940772 980935
Changes:
 pyzo (4.11.2-1) unstable; urgency=medium
 .
   [ Gianfranco Costamagna ]
   * Team upload
   * Bump std-version to 4.5.1
 .
   [ Alexis Bienvenüe ]
   * Add R^3: no
   * Update uscan watch file to match github repository.
   * New upstream version 4.11.2. Closes: #980935.
   * Remove patch 0001 that has been integrated upstream.
   * Remove unnecessary python version field from control file.
   * Update VCS fields to salsa repository.
   * Update patch to new upstream version.
   * Update copyright for appdata file.
   * Remove unnecessary get-orig-source target in rules file.
   * Drop transitionnal package iep. Closes: #940772.
   * Switch to debhelper compat level 13.
   * Documentation files directory update.
   * Add start.html missing source.
Checksums-Sha1:
 bf730256ceece8ae598eee39e5bc8b2a5e4f8f8e 2045 pyzo_4.11.2-1.dsc
 e13a25b02987e6e7e275657efeb469c98ca40ad9 5340033 pyzo_4.11.2.orig.tar.gz
 6f1099660053332307f3d8857d957a55368fad3d 2001804 pyzo_4.11.2-1.debian.tar.xz
 2749eb9a2488abcf8313f01e126eda66140fae88 8331 pyzo_4.11.2-1_source.buildinfo
Checksums-Sha256:
 13eb12a86e596f414921935a49518edef803113d189231733075a6c8ac50ec32 2045 
pyzo_4.11.2-1.dsc
 c6b7bec2866a3751ac2009ed13c1e2e494cf8de9fee5ef4617a8f00f83ea95e8 5340033 
pyzo_4.11.2.orig.tar.gz
 07c525d362118f1ce123d0c8e0f9dc0a7a70324a13de823764a619f65e19190a 2001804 
pyzo_4.11.2-1.debian.tar.xz
 32f2ab83fea277ab379d3961dd3351e94057687a6208d0ddfadd538d858a70cb 8331 
pyzo_4.11.2-1_source.buildinfo
Files:
 3bb984cb387ea81dbe1958545b839e14 2045 science optional pyzo_4.11.2-1.dsc
 40361acb18fbaa0aa755c985dbf12ef0 5340033 science optional 
pyzo_4.11.2.orig.tar.gz
 ce703394b161efa101bd059d76f8ed2f 2001804 science optional 
pyzo_4.11.2-1.debian.tar.xz
 788c93e6b839db31145cc136499b9527 8331 science optional 
pyzo_4.11.2-1_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEkpeKbhleSSGCX3/w808JdE6fXdkFAmAv4w0ACgkQ808JdE6f
Xdmc2BAAx8A5zq8IneAgYxqY78uHzZhCfJ//b5Xp5TCKTQikjjcY7SDuZJWIN4c1
f6PHUbXfMRP5/KdZXhVaDzyokRZtAcofZybS9N37ZvIljtKM9zAUJkGhFp9kfNQT
v+i+8pbrKBVuGFQbVIz39vS9XL3W7A05Tl0oaKjMMCbI6NmIIvgiM5QmnNY6Esa/
vQ4csgDsGYpWTJ9228aGy3pKNFmqQAHYc9x8y1ZfEldn+f31hlRJ+bpJ9f7AwjFk
oKmUouVCjKpZHoSh3sVFru8bmIkzsNGJUIn8Vpcywe5jXS8s+VW7G0zRUNMV9C9Z
dA5We1cFJYrO3BMG3rO+25kHrjepHXU2pwq7YFZWGNAQ9W0cDK3msofnPZHPz7QN
2bOdXgVxme20BUjmoHyscs2o7pP0Rl6ii5snXIHBQ0xqloyrVDHlQXfuksauOrvH
XhyLiUhVjz/lvXSmjE60CVVnJ73+3+bXGtYlQZiZuXu8qErEoMGOZnexjCVewlOU
EY78IeuhyZFdj10zSqEN3AyiNZ0SS+F967Z8l8FW7kUfPjWtBE9DzYbSeccG5xWl
JrgCKde+qqaL4tEXrCr1Wa4+waElFYFIuPdzs3YOxSuyDUtpydbh27GDfYnU5H5x
rV0yIEltsed5i68FItMwpw5DtbtYrlu39Spk9dWpB5jnJoiXAqc=
=Zxeo
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to