On Mon, 6 Nov 2023 11:53:25 +0100 s3v <c0llap...@yahoo.it> wrote:
> Dear Maintainer,
>
> This upstream commit [1] solved the issue for sphinx 7.2.5 and newer.
> Reported bug report is for sphinx 7.1.1 but actually sid has sphinx 7.2.6.
> Please see [2] for reference.
>
> Kind Regards
>
>
> [1] https://github.com/sphinx-doc/sphinx/commit/2a631f97ef7f4b0edc247
> [2] https://bugs.debian.org/1042597
>

Forget about that...
Copyright is in the form [1]:

| copyright = u'2006-2019'

and not in a 4 digit only form.
I can reproduce the issue with ns3/3.4.0 in a sid chroot environment on amd64.

...
epstopdf lena-radio-link-failure-one-enb.eps
rescale-pdf.sh lena-radio-link-failure-one-enb.pdf to 10cm
epstopdf lena-radio-link-failure-two-enb.eps
Running Sphinx v7.2.6
WARNING: Invalid configuration value found: 'language = None'. Update your 
configuration to a valid language code. Falling back to 'en' (English).
making output directory... done

Extension error (sphinx.config):
Handler <function correct_copyright_year at 0x7fe184a0cae0> for event 
'config-inited' threw an exception (exception: ||string index out of range||)
make[6]: *** [Makefile:628: html] Error 2
Running Sphinx v7.2.6
WARNING: Invalid configuration value found: 'language = None'. Update your 
configuration to a valid language code. Falling back to 'en' (English).
making output directory... done

Extension error (sphinx.config):
Handler <function correct_copyright_year at 0x7fb7f9910ae0> for event 
'config-inited' threw an exception (exception: string index out of range)
make[6]: *** [Makefile:638: singlehtml] Error 2
Running Sphinx v7.2.6
WARNING: Invalid configuration value found: 'language = None'. Update your 
configuration to a valid language code. Falling back to 'en' (English).
making output directory... done

Extension error (sphinx.config):
Handler <function correct_copyright_year at 0x7f51013acae0> for event 
'config-inited' threw an exception (exception: string index out of range)
make[6]: *** [Makefile:689: latexpdf] Error 2
...

Please see [2][3]

Roughly adding trailing whitespace:
 
 ||copyright = u'2006-2019 '

makes "string index out of range" exception disappear but docs still fail to 
build on
my chroot.

||Sorry for the noise.

Kind Regards


[1] 
https://sources.debian.org/src/ns3/3.40-1/ns-3.40/doc/models/source/conf.py/#L68
[2] https://sources.debian.org/src/sphinx/7.2.6-2/sphinx/config.py/#L449-L453
[3] 
https://www.sphinx-doc.org/en/master/usage/configuration.html#confval-copyright


|

Reply via email to