Debian Bug report logs - #1063326
TypeError: first argument must be callable

version graph

Package: python3-sphinx; Maintainer for python3-sphinx is Debian Python Team <[email protected]>; Source for python3-sphinx is src:sphinx (PTS, buildd, popcon).

Reported by: Picca Frédéric-Emmanuel <[email protected]>

Date: Tue, 6 Feb 2024 08:48:01 UTC

Severity: important

Found in version sphinx/5.3.0-4

Full log


🔗 View this message in rfc822 format

X-Loop: [email protected]
Subject: Bug#1063326: TypeError: first argument must be callable
Reply-To: Dmitry Shachnev <[email protected]>, [email protected]
Resent-From: Dmitry Shachnev <[email protected]>
Resent-To: [email protected]
Resent-CC: Debian Python Team <[email protected]>
X-Loop: [email protected]
Resent-Date: Tue, 06 Feb 2024 11:33:04 +0000
Resent-Message-ID: <[email protected]>
Resent-Sender: [email protected]
X-Debian-PR-Message: followup 1063326
X-Debian-PR-Package: python3-sphinx
X-Debian-PR-Keywords: 
References: <170720836577.1648222.11007621471839826243.reportbug@grades-01.synchrotron-soleil.fr> <170720836577.1648222.11007621471839826243.reportbug@grades-01.synchrotron-soleil.fr>
X-Debian-PR-Source: sphinx
Received: via spool by [email protected] id=B1063326.17072190642059642
          (code B ref 1063326); Tue, 06 Feb 2024 11:33:04 +0000
Received: (at 1063326) by bugs.debian.org; 6 Feb 2024 11:31:04 +0000
X-Spam-Checker-Version: SpamAssassin 3.4.6-bugs.debian.org_2005_01_02
	(2021-04-09) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-13.5 required=4.0 tests=BAYES_00,
	FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,
	FROMDEVELOPER,HAS_BUG_NUMBER,HEADER_FROM_DIFFERENT_DOMAINS,
	PGPSIGNATURE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,
	SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no
	version=3.4.6-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 19; hammy, 150; neutral, 59; spammy,
	0. spammytokens: hammytokens:0.000-+--python3, 0.000-+--manpage,
	0.000-+--H*ct:application, 0.000-+--H*ct:protocol, 0.000-+--H*ct:micalg
Received: from mail-lf1-f50.google.com ([209.85.167.50]:47171)
	by buxtehude.debian.org with esmtps (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_128_GCM:128)
	(Exim 4.94.2)
	(envelope-from <[email protected]>)
	id 1rXJfL-008dnq-4h
	for [email protected]; Tue, 06 Feb 2024 11:31:03 +0000
Received: by mail-lf1-f50.google.com with SMTP id 2adb3069b0e04-5101cd91017so7223553e87.2
        for <[email protected]>; Tue, 06 Feb 2024 03:31:02 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20230601; t=1707219059; x=1707823859;
        h=in-reply-to:content-disposition:mime-version:references:message-id
         :subject:to:from:date:x-gm-message-state:from:to:cc:subject:date
         :message-id:reply-to;
        bh=E3TCdVclxEyegqrHRgFKkWBwVV3dt1UXqy5glycoLKg=;
        b=CUw7TtyqEuw9hB3ekJRE4nrtDVuTMleGQYhNcodMPAvw9KotKScF8WcRTzhYuXcHYs
         eC6um6J52WmjcP7cMoXI0Q3Q/3Jy9vHBqpx6EmGGAJ6QttpVbhMfo+jFIsP6sfh+cqKN
         ABcJgWyHkzu4ZowAZezG1naSTC2Q3Ecf0WR/z09QFwfpc+2hm17UFHEvfP9fHa4Vr7D4
         Y0W2mzwsMOgqJHFIlZoiADpPO5Y2NyYMbLu3mqxhOTU+vSeqHvAIgkPpN/FrSkKcrjkv
         IbUTy7GPMbZHildFE9aVRn3IMWvWz2YQiU1BVXg/Vdomn2HNcByKM/QjJ5ojf97bvbBT
         abcw==
X-Gm-Message-State: AOJu0Yw4jBK/etoLvGetYbK03N6pzGdrhEUMHN+V7iJjSB/72PCMqOW9
	FK03Wzn9Idx3AtoooMNOVufdkDM8Wr5+HJcmXDOWwQe8prQbEJD3
X-Google-Smtp-Source: AGHT+IG1Ah+XtCIKNYG4BScj2MxmesH2OQD/M00UtBcx+UdXdcQ1yBehRpyfgJhOK0U6ynJRore7tg==
X-Received: by 2002:ac2:4c46:0:b0:511:6031:3f1c with SMTP id o6-20020ac24c46000000b0051160313f1cmr766212lfk.28.1707219058879;
        Tue, 06 Feb 2024 03:30:58 -0800 (PST)
X-Forwarded-Encrypted: i=0; AJvYcCWF4JDYv2ieasoAvL1I49CGTLruc76miWWgZmSirZJy2zzJae/EnxwxXhXK2rtNY9ely/PJk39Shks3u9DxngpbUV5sT9FakQ==
Received: from mitya57.me (1-f0-79-59-d3-66-d8.404.pc.imec.msu.ru. [93.180.61.47])
        by smtp.gmail.com with ESMTPSA id q11-20020ac2528b000000b005115284a161sm214734lfm.94.2024.02.06.03.30.57
        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
        Tue, 06 Feb 2024 03:30:58 -0800 (PST)
Date: Tue, 6 Feb 2024 14:30:53 +0300
From: Dmitry Shachnev <[email protected]>
To: Picca Frédéric-Emmanuel <[email protected]>,
	[email protected]
Message-ID: <[email protected]>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha512;
	protocol="application/pgp-signature"; boundary="kMCuGBwsLjjWx36H"
Content-Disposition: inline
In-Reply-To: <170720836577.1648222.11007621471839826243.reportbug@grades-01.synchrotron-soleil.fr>
[Message part 1 (text/plain, inline)]
Hi Frédéric!

On Tue, Feb 06, 2024 at 09:32:45AM +0100, Picca Frédéric-Emmanuel wrote:
> Package: python3-sphinx
> Version: 5.3.0-4
> Severity: important
> 
> Dear Maintainer,
> 
> Hello, while preparing the new silx package, I got this error message from
> sphinx when calling this command line
>
> [...]
>
>   File "/usr/lib/python3/dist-packages/sphinx/registry.py", line 353, in create_translator
>     setattr(translator, 'visit_' + name, MethodType(visit, translator))
>                                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> TypeError: first argument must be callable

This is because sphinx-panels defines the handler for "fontawesome" role for
manpage builder as (None, None):

https://sources.debian.org/src/sphinx-panels/0.6.0-3/sphinx_panels/icons.py/#L144

While Sphinx expects at least the visit function (the first pair element) to
be not None.

However, sphinx-panels is dead, and upstream recommends to use sphinx-design
instead. And in sphinx-design this bug is fixed:

https://sources.debian.org/src/sphinx-design/0.5.0-2/sphinx_design/icons.py/#L42

https://github.com/executablebooks/sphinx-design/pull/88

If you want a fix in sphinx-panels, please reassign the bug. Otherwise, if you
have found another solution, please close it.

--
Dmitry Shachnev
[signature.asc (application/pgp-signature, inline)]

Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Tue May 13 17:28:41 2025; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.