Bug#962203: DeprecationWarning: isAlive() is deprecated, use is_alive() instead
Package: debdelta Version: 0.65 Followup-For: Bug #962203 X-Debbugs-Cc: calumlikesapple...@gmail.com -BEGIN PGP SIGNED MESSAGE- Hash: SHA512 I have created an attached a patch. It is also availible as merge request !2 in the salsa repository. - -- System Information: Debian Release: bullseye/sid APT prefers testing-debug APT policy: (500, 'testing-debug'), (500, 'testing') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 5.9.0-1-amd64 (SMP w/4 CPU threads) Kernel taint flags: TAINT_WARN Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages debdelta depends on: ii binutils 2.35.1-3 ii bzip2 1.0.8-4 ii libbz2-1.01.0.8-4 ii libc6 2.31-4 ii python3 3.8.6-1 ii python3-requests 2.24.0+dfsg-1 ii zlib1g1:1.2.11.dfsg-2 Versions of packages debdelta recommends: ii bsdiff 4.3-21+b1 ii gnupg-agent 2.2.20-1 ii gnupg2 2.2.20-1 ii gpg-agent [gnupg-agent] 2.2.20-1 ii python3-apt 2.1.6 ii python3-debian 0.1.38 ii xdelta 1.1.3-9.3 ii xdelta3 3.0.11-dfsg-1+b1 ii xz-utils [lzma] 5.2.4-1+b1 Versions of packages debdelta suggests: ii debdelta-doc 0.65 - -- no debconf information -BEGIN PGP SIGNATURE- iQJRBAEBCgA7FiEE/vC/PEGxsMPJ5u5w7/Xh1+DNmzIFAl/NHNgdHGNhbHVtbGlr ZXNhcHBsZXBpZUBnbWFpbC5jb20ACgkQ7/Xh1+DNmzK5rA//S3+ySeshMWhTEp38 KOrKKWvR/vGOb2MjPILXU6VJfAcw7tIf/IbzvGkj3QM08f1eF3RElP4UwC4NCpj6 oTEYgq88lE0YTqYrdRJopM70pmcDArzvFpysudonUHJ8k2sUwr/5R18S8BooiGDw iOs7BaAv3vJNyKfeYSJlIdMLiq1u52z6xooSg92Rb6b/rBC3il5frkpUsy4L/Jid AHEGDhTAtyvwof/zdyjwVnMQvxoS5lsm5hkc7RNFpndkvRONTWNNOa0raYucbQ3K vitJ+7BuNZ3GF/yi86+L1krOGpv5E5lbdlmhtqUMd1RcYw1VZpEcJ+3D45dDOxSg wbIFV+ud+ATXC7yVYMQhDv/S3GSb/sKx7OrLJZX/67BrQZqMM3eB4BXarJe1o9gV 56znmh+hzGoGkzaZJmKHRNdhYK97rWXYts/4pUAnpICDkhMBbQ/D4OgVgA18dRR6 h4CsU+ynf0Z6Xb0bW9tPmkbj0a91mOvqNRvO1E9kwnSolsAjqJQ7HmQp0GLnDQfy nxdCMGTIQOIWepdF8bi2WiGaSwvK2f2Q1LyxqEMsBf68uH3+IcCxsPKCrZ55w+gy 7NxRvlLwYilTFN20aZSTtFt7ntDPzLy6J9BulukLNjgD1AoW00Y/mlG+Af/hxMhc fNhgaK9EUfEhOQeqOyoorBwEjok= =4QZH -END PGP SIGNATURE- >From 4821b3f1fdb9118ba3c80b8077af63b5006d6ddb Mon Sep 17 00:00:00 2001 From: Calum McConnell Date: Sun, 6 Dec 2020 12:53:52 -0500 Subject: [PATCH] Fix isAlive -> is_alive --- debdelta/debdelta | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/debdelta/debdelta b/debdelta/debdelta index b4a79c1..b7f258c 100755 --- a/debdelta/debdelta +++ b/debdelta/debdelta @@ -5460,9 +5460,9 @@ def delta_upgrade_(args): #do something useful in the meantime debs_down_size=0 debs_down_time=0 - if patching_thread.isAlive() and no_delta and VERBOSE > 1 : + if patching_thread.is_alive() and no_delta and VERBOSE > 1 : logger.info(' Downloading deltas done, downloading debs while waiting for patching thread.') - while patching_thread.isAlive() or ('a' in DEB_POLICY and no_delta): + while patching_thread.is_alive() or ('a' in DEB_POLICY and no_delta): if no_delta: uri, newdeb = no_delta.pop() thread_returns['downloaduri']=os.path.basename(uri) @@ -5481,12 +5481,12 @@ def delta_upgrade_(args): if http_conns[i] != None : http_conns[i].close() - while patching_thread.isAlive(): + while patching_thread.is_alive(): time.sleep(0.1) #terminate progress report thread_returns['STOP']=True - while progress_thread != None and progress_thread.isAlive(): + while progress_thread != None and progress_thread.is_alive(): time.sleep(0.1) if DO_PROGRESS: -- 2.29.2
Bug#962203: DeprecationWarning: isAlive() is deprecated, use is_alive() instead
Package: debdelta Version: 0.65 Followup-For: Bug #962203 X-Debbugs-Cc: calumlikesapple...@gmail.com Control: severity -1 grave -BEGIN PGP SIGNED MESSAGE- Hash: SHA512 The function is removed in Python 3.9, which is now the debian default. Debdelta-upgrade will now simply crash. This is not good. Patching is as easy as a find/replace. Please fix this issue! - -- System Information: Debian Release: bullseye/sid APT prefers testing-debug APT policy: (500, 'testing-debug'), (500, 'testing') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 5.9.0-1-amd64 (SMP w/4 CPU threads) Kernel taint flags: TAINT_WARN Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages debdelta depends on: ii binutils 2.35.1-3 ii bzip2 1.0.8-4 ii libbz2-1.01.0.8-4 ii libc6 2.31-4 ii python3 3.8.6-1 ii python3-requests 2.24.0+dfsg-1 ii zlib1g1:1.2.11.dfsg-2 Versions of packages debdelta recommends: ii bsdiff 4.3-21+b1 ii gnupg-agent 2.2.20-1 ii gnupg2 2.2.20-1 ii gpg-agent [gnupg-agent] 2.2.20-1 ii python3-apt 2.1.6 ii python3-debian 0.1.38 ii xdelta 1.1.3-9.3 ii xdelta3 3.0.11-dfsg-1+b1 ii xz-utils [lzma] 5.2.4-1+b1 Versions of packages debdelta suggests: ii debdelta-doc 0.65 - -- no debconf information -BEGIN PGP SIGNATURE- iQJRBAEBCgA7FiEE/vC/PEGxsMPJ5u5w7/Xh1+DNmzIFAl/NFbAdHGNhbHVtbGlr ZXNhcHBsZXBpZUBnbWFpbC5jb20ACgkQ7/Xh1+DNmzLdMg//RU1jpB2htAenj5tx e7t1MBIdorjTWUFES2KSJLCFvfOSrLhXpf72xPAu0+kXSEs6VdcmaWZEqIEAjXje crGFezOx3zKPeV3Yzk3aKWOcftLrlmuDVV5Pgku0KwBtd0Qftgu6t+DemKhUs9Ym HSlbwlKCsAkikdbNhD+JJ/eIkzERdIUtE3KUM4YHa9LyQEipnE3kdnExrCjn9BZi 7rKQIv6GPpHH9AhwLnbkUuIdoNNeZRhBDcUB9BVJhnrrFhgkB5FF4/22L/DHV6xu z/ztSf+LiruUmUsR5nK7IH+xwQi8zqk/O1/tChYDWI4EXagMmMhN/rFzrlXmnlJI oeSxXhGnarKB2fjPqztS53Vd77pjXGWkqQWNQMO9AtmIbHNQ891vr8Hm0Zdd/cGV KB6uXtySybtHFAJsH2l6IZZgc3ouW+Vhqpn0n8/XcdtQBx7OQFpid/HbYup818fc 9pJOhGEFpq9mtTlje2TUtkKXasl6AbwSPg1+oqmPmmNVlwMT59MMMz2XJeQgLsH/ dUAOd0x3DfsEUq4Nlrcgnyeomk5Jc0mvhJ369CylXJnw9bI71bFiC32kzedz7v+C dET/HhOWus8IZcEZh4nJj3fhZO/kg2jcyx4wt5vKpzU8Fl6YtkPq3hAWkPgaPolr PseTA+roHeNtCwowHtdNrSCjmw8= =0hVv -END PGP SIGNATURE-
Bug#962203: DeprecationWarning: isAlive() is deprecated, use is_alive() instead
Package: debdelta Version: 0.65 Severity: normal Hi! It seems that something needs to be update in debdelta: = # debdelta-upgrade Created,time 0.15sec, speed 151kB/sec, libmtdev1_1.1.6-1_amd64.deb Downloaded, time 0.47sec, speed 83kB/sec, libcryptsetup12_2%3a2.3.2-1_2%3a2.3.3-1_amd64.debdelta Created,time 0.33sec, speed 709kB/sec, libcryptsetup12_2%3a2.3.3-1_amd64.deb Downloaded, time 0.41sec, speed 104kB/sec, calibre-bin_4.99.4+dfsg+really4.17.0-1_4.99.4+dfsg+really4.17.0-1+b1_amd64.debdelta Created,time 2.09sec, speed 375kB/sec, calibre-bin_4.99.4+dfsg+really4.17.0-1+b1_amd64.deb Downloaded, time 2.38sec, speed 206kB/sec, libqt5gui5_5.12.5+dfsg-10_5.12.5+dfsg-10+b1_amd64.debdelta /usr/bin/debdelta-upgrade:5384: DeprecationWarning: isAlive() is deprecated, use is_alive() instead if patching_thread.isAlive() and no_delta and VERBOSE > 1 : /usr/bin/debdelta-upgrade:5386: DeprecationWarning: isAlive() is deprecated, use is_alive() instead while patching_thread.isAlive() or ('a' in DEB_POLICY and no_delta): /usr/bin/debdelta-upgrade:5386: DeprecationWarning: isAlive() is deprecated, use is_alive() instead while patching_thread.isAlive() or ('a' in DEB_POLICY and no_delta): Created,time 6.01sec, speed 484kB/sec, libqt5gui5_5.12.5+dfsg-10+b1_amd64.deb /usr/bin/debdelta-upgrade:5405: DeprecationWarning: isAlive() is deprecated, use is_alive() instead while patching_thread.isAlive(): /usr/bin/debdelta-upgrade:5410: DeprecationWarning: isAlive() is deprecated, use is_alive() instead while progress_thread != None and progress_thread.isAlive(): Delta-upgrade statistics: total resulting debs, size 3956kB time 11sec virtual speed 340kB/sec = Thank you! Best regards, Nelson -- System Information: Debian Release: bullseye/sid APT prefers unstable APT policy: (500, 'unstable'), (100, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 5.6.0-2-amd64 (SMP w/8 CPU cores) Kernel taint flags: TAINT_WARN, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE Locale: LANG=pt_BR.UTF-8, LC_CTYPE=pt_BR.UTF-8 (charmap=UTF-8), LANGUAGE=pt_BR:pt:en (charmap=UTF-8) Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) Versions of packages debdelta depends on: ii binutils 2.34-8 ii bzip2 1.0.8-3 ii libbz2-1.01.0.8-3 ii libc6 2.30-8 ii python3 3.8.2-3 ii python3-requests 2.23.0+dfsg-2 ii zlib1g1:1.2.11.dfsg-2 Versions of packages debdelta recommends: ii bsdiff 4.3-21+b1 ii gnupg-agent 2.2.20-1 ii gnupg2 2.2.20-1 ii gpg-agent [gnupg-agent] 2.2.20-1 ii python3-apt 2.1.3 ii python3-debian 0.1.37 pn xdelta ii xdelta3 3.0.11-dfsg-1+b1 ii xz-utils [lzma] 5.2.4-1+b1 Versions of packages debdelta suggests: pn debdelta-doc -- no debconf information