Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.python > #12619

Re: Help fixing #959558 (case: FTBFS: AttributeError: 'tuple' object has no attribute 'lstrip' with sphinx 2.4)

Path csiph.com!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod
From "Diego M. Rodriguez" <diego@moreda.io>
Newsgroups linux.debian.maint.python
Subject Re: Help fixing #959558 (case: FTBFS: AttributeError: 'tuple' object has no attribute 'lstrip' with sphinx 2.4)
Date Wed, 27 May 2020 10:20:01 +0200
Message-ID <AaZs5-4Wh-1@gated-at.bofh.it> (permalink)
References <AaOZH-6YH-5@gated-at.bofh.it> <AaOZH-6YH-3@gated-at.bofh.it>
X-Original-To debian-python@lists.debian.org
X-Mailbox-Line From debian-python-request@lists.debian.org Wed May 27 08:11:05 2020
Old-Return-Path <diego@moreda.io>
X-Amavis-Spam-Status No, score=-11.898 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DIGITS_LETTERS=1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, LDO_WHITELIST=-5, PGPSIGNATURE=-5, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001] autolearn=ham autolearn_force=no
X-Policyd-Weight NOT_IN_SBL_XBL_SPAMHAUS=-1.5 CL_IP_EQ_HELO_IP=-2 (check from: .moreda. - helo: .wout1-smtp.messagingengine. - helo-domain: .messagingengine.) FROM/MX_MATCHES_HELO(DOMAIN)=-2; rate: -5.5
Old-Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=moreda.io; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type; s=fm1; bh=vmc1xmrbFHs4Y9ZOoyxgsUWHoDM skHMH/5x5bGLWoCw=; b=WUctF9qZg//phwRXFX4LcI19XCTGctK0ukShI4zgljT ur6ncrNh6dYxZ9mNMp8Fq/ufHPyAPLe0CidZiJIsv9zBjzyG+miuM4MuE9Lz+SsX TtOAvSRB3OuO1BH7DdCkmeEIOVD3IdQfw4CknYAg+PIkfpYF5OFFCi1TpfS/h1v7 trVgHXbs3opVQeKumf94PUbR6V/RYFpByKJWfoXrpEWKLhLz9UpgKZfFWgaFojie jbY7BQQUsYqQJeSbhIt23fTL8x9r+i43m3wAAbZHToDHVMwuH+iE0e3WTQqGTeKz Z08GXHkKEtM2cUlzIJiwHomulCO0y6eTDXbQJXJ/mlg==
Old-Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=vmc1xm rbFHs4Y9ZOoyxgsUWHoDMskHMH/5x5bGLWoCw=; b=4dSR37wYY4fKn6kCvrNBL2 PKUcPN9+K+hJxjuzSr0mhRkCA6hxTaOuy1aP38zgkkI86gVIYpewRaI8HFaXFJAU LiJD6sMue72AqsOcNa3i/R3aFKokCvG2by2a86Sgo9BqKGMS+fT12aFAHLaj5PuQ bRVJe17cRaIYH+sOr5HohstwqI1LGkQVQ1vzW/ev/dh6ZdTyJyG+drJnVCTNHqpj v6aq0/kZLey52N2CIn39G93BWCYBxlg4XkmTAyURTjaJ5rRD+jrezd8hTSjOinjN y8LJpjudfu8NOZriMuKewFubscmjgrKchGUUFejw3XSmk55kofjkoQbhqKE3j5kg ==
X-Me-Sender <xms:hCDOXvD6b-kGLArNk8fE7iqQR_ill8oB4fsoTsAud64SdrBZlYnL7g>
X-Me-Proxy-Cause gggruggvucftvghtrhhoucdtuddrgeduhedruddvfedguddvfecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepuffvfhfhkffffgggjggtsehgtd erofdtfeejnecuhfhrohhmpedfffhivghgohcuofdrucftohgurhhighhuvgiifdcuoegu ihgvghhosehmohhrvggurgdrihhoqeenucggtffrrghtthgvrhhnpeeigffhfeetveehgf ehhffgteffjeduueeljeekkeevleevgffhveehheegleetueenucffohhmrghinhepmhho tghkrdgtrghllhdprhgvrgguthhhvgguohgtshdrihhopdhgihhthhhusgdrtghomhenuc fkphepledvrddujeeirddvtddrudduieenucevlhhushhtvghrufhiiigvpedtnecurfgr rhgrmhepmhgrihhlfhhrohhmpeguihgvghhosehmohhrvggurgdrihho
X-Me-Proxy <xmx:hCDOXliUV70K6kqVnZ6HXYic19LUF1sFYHZ-1xzizV94w05HVrTIWA> <xmx:hCDOXqmREVZoeMJt5qsvuxoNDNfDBEjA1hI9NEieuCjbsADSS2VX-Q> <xmx:hCDOXhxHCIk5uMgk_6g5N2DOUfW3X7fxpE9eGzkNvPiPjw8f71EC7Q> <xmx:hCDOXqDH7HMNzrb5ALNGM7REahl1Kcj13jZRnteQDpQ-X2pRgKUjLw>
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0
MIME-Version 1.0
Content-Type multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="BZyaC4qzBGw6rBy3rLidwQbFzZ7jy7KDO"
X-Mailing-List <debian-python@lists.debian.org> archive/latest/18324
List-ID <debian-python.lists.debian.org>
List-URL <https://lists.debian.org/debian-python/>
List-Archive https://lists.debian.org/msgid-search/f330f7e7-bf3b-a17c-05a5-090d5fc5e15e@moreda.io
Approved robomod@news.nic.it
Lines 72
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Date Wed, 27 May 2020 10:10:34 +0200
X-Original-Message-ID <f330f7e7-bf3b-a17c-05a5-090d5fc5e15e@moreda.io>
X-Original-References <3b114f6d-9e07-2fcd-7c0a-3127676c4053@debian.org> <alpine.DEB.2.21.2005261703370.25993@bear.techie.net>
Xref csiph.com linux.debian.maint.python:12619

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

On 5/26/20 11:06 PM, Scott Talbert wrote:
> It looks like it's a bug in sphinx.

I'm suspecting the same - and I was also not able to reproduce it in
a local installation (pip-installed sphinx trying to match the
dependencies and versions). However, it seems the culprit is at
"case/mock.py":51:

call = mock.call

In case a new upload of sphinx does not land in time, perhaps a
workaround along the lines of:

diff --git a/docs/reference/case.mock.rst b/docs/reference/case.mock.rst
index 1a28a5c..2b6562c 100644
--- a/docs/reference/case.mock.rst
+++ b/docs/reference/case.mock.rst
@@ -9,3 +9,4 @@
 .. automodule:: case.mock
     :members:
     :undoc-members:
+    :exclude-members: call

might be acceptable? While not the ideal solution, the upstream
generated docs [1] end up including the docstring from
"unittest.mock._Call" [2] for that member, which might not provide too
much relevant info for end users anyway (and the inheritance from
"tuple" might be related to the original error).

[1] https://case.readthedocs.io/en/latest/reference/case.mock.html#case.mock.call
[2] https://github.com/python/cpython/blob/3.8/Lib/unittest/mock.py#L2352

-- 
Diego M. Rodriguez

Back to linux.debian.maint.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Re: Help fixing #959558 (case: FTBFS: AttributeError: 'tuple' object  has no attribute 'lstrip' with sphinx 2.4) Scott Talbert <swt@techie.net> - 2020-05-26 23:10 +0200
  Re: Help fixing #959558 (case: FTBFS: AttributeError: 'tuple' object  has no attribute 'lstrip' with sphinx 2.4) "Diego M. Rodriguez" <diego@moreda.io> - 2020-05-27 10:20 +0200
  Re: Help fixing #959558 (case: FTBFS: AttributeError: 'tuple' object  has no attribute 'lstrip' with sphinx 2.4) Dmitry Shachnev <mitya57@debian.org> - 2020-05-27 11:30 +0200

csiph-web