#1026603 foolscap: FTBFS: AttributeError: module 'inspect' has no attribute 'getargspec'

#1026603#5
Date:
2022-12-20 17:11:51 UTC
From:
To:
Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
The full build log is available from:
http://qa-logs.debian.net/2022/12/20/foolscap_21.7.0-3_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20221220;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20221220&fusertaguser=lucas@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please mark it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.

#1026603#10
Date:
2022-12-28 07:40:29 UTC
From:
To:
Hello,

On Tue, 20 Dec 2022 18:11:51 +0100 Lucas Nussbaum <lucas@debian.org> >
During a rebuild of all packages in sid, your package failed to build

[skip]

 >   File
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/foolscap/remoteinterface.py",
line 191, in initFromMethod
 >     names, _, _, typeList = inspect.getargspec(method)
 >                             ^^^^^^^^^^^^^^^^^^
 > AttributeError: module 'inspect' has no attribute 'getargspec'

inspect.getargspec has been deprecated for some time [1] and most likely
finally removed in Python 3.11. I have attempted to replace it with
inspect.getfullargspec as seen somewhere else [2], but this did not work.

[1] https://docs.python.org/3/library/inspect.html
[2] https://github.com/pyinvoke/invoke/issues/833#issuecomment-1293148106

Andrius

#1026603#15
Date:
2023-01-19 18:38:06 UTC
From:
To:
Hello,

Bug #1026603 in foolscap reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:

https://salsa.debian.org/python-team/packages/foolscap/-/commit/f6175eefdec6ef8583054b016a9f21f9a32112c5

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1026603

#1026603#22
Date:
2023-01-19 18:49:06 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
foolscap, 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 1026603@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Stefano Rivera <stefanor@debian.org> (supplier of updated foolscap 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 ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Thu, 19 Jan 2023 14:33:54 -0400
Source: foolscap
Architecture: source
Version: 21.7.0-4
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Team <team+python@tracker.debian.org>
Changed-By: Stefano Rivera <stefanor@debian.org>
Closes: 1026603
Changes:
 foolscap (21.7.0-4) unstable; urgency=medium
 .
   * Team upload.
   * Patch: Python 3.11 support. (Closes: #1026603)
Checksums-Sha1:
 672e8a74247d36be8292c933ae69fe88529e64ec 1776 foolscap_21.7.0-4.dsc
 61980540d87db0c6f89e4892201475df50910958 17640 foolscap_21.7.0-4.debian.tar.xz
 a5dec5146be4148a90e13bae021190e141cde72a 5885 foolscap_21.7.0-4_source.buildinfo
Checksums-Sha256:
 9cec05c330c2efa4ff59e48a74c9e2bc11efe829febb141802c425bcb3d7edf7 1776 foolscap_21.7.0-4.dsc
 90316cf854cd08c1aab66286bd84ee9206651441a721b83134c98facc7820677 17640 foolscap_21.7.0-4.debian.tar.xz
 55c8c8000cafec3b891972c85e4c46a5492a8d3d4d40510d172e28e21dd19897 5885 foolscap_21.7.0-4_source.buildinfo
Files:
 d62b515cc046aa0258ac865461bbfde9 1776 python optional foolscap_21.7.0-4.dsc
 04c7a1a8f910873f2bcdbbbfcc7cc69e 17640 python optional foolscap_21.7.0-4.debian.tar.xz
 ce9e5c3b29d91dbcd534a39615833473 5885 python optional foolscap_21.7.0-4_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iIoEARYKADIWIQTumtb5BSD6EfafSCRHew2wJjpU2AUCY8mOBBQcc3RlZmFub3JA
ZGViaWFuLm9yZwAKCRBHew2wJjpU2O+jAPsH+uBjKH26qQu0ZgWgsVW7rnXxf4IX
1G7iig9TzqlN+wD+ODD8w+5VK+0lx61YmO2ex1fr99VmU5iR5NNra4a7NA4=
=CEXw
-----END PGP SIGNATURE-----