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


Groups > linux.debian.bugs.dist > #1079079 > unrolled thread

Bug#997772: python-cogent: FTBFS: You must configure the bibtex_bibfiles setting

Started byAndreas Tille <tille@debian.org>
First post2021-11-02 08:10 +0100
Last post2021-11-03 10:50 +0100
Articles 3 — 2 participants

Back to article view | Back to linux.debian.bugs.dist

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Bug#997772: python-cogent: FTBFS: You must configure the bibtex_bibfiles setting Andreas Tille <tille@debian.org> - 2021-11-02 08:10 +0100
    Bug#997772: python-cogent: FTBFS: You must configure the bibtex_bibfiles setting Stuart Prescott <stuart@debian.org> - 2021-11-02 23:50 +0100
      Re: Bug#997772: python-cogent: FTBFS: You must configure the bibtex_bibfiles setting Stuart Prescott <stuart@debian.org> - 2021-11-03 10:50 +0100

#1079079 — Bug#997772: python-cogent: FTBFS: You must configure the bibtex_bibfiles setting

FromAndreas Tille <tille@debian.org>
Date2021-11-02 08:10 +0100
SubjectBug#997772: python-cogent: FTBFS: You must configure the bibtex_bibfiles setting
Message-ID<DeW5H-7vZ-1@gated-at.bofh.it>
Control: tags -1 help
Control: tags -1 upstream
Control: forwarded -1 https://github.com/cogent3/cogent3/issues/977

Hi,

I wonder whether someone on the Python list might come up with some help

Am Sun, Oct 24, 2021 at 01:57:39PM +0200 schrieb Lucas Nussbaum:
> Source: python-cogent
> Version: 2021.5.7a+dfsg-2
> ...
> > make[2]: Entering directory '/<<PKGBUILDDIR>>/doc'
> > sphinx-build -b html -d _build/doctrees   . _build/html
> > Running Sphinx v4.2.0
> > making output directory... done
> > WARNING: html_static_path entry '_static' does not exist
> > WARNING: The config value `today' has type `date', defaults to `str'.
> > 
> > Extension error:
> > You must configure the bibtex_bibfiles setting
> > make[2]: *** [Makefile:40: html] Error 2

I suspect that this issue is caused by the Sphinx version bump.
When looking at other places where this error was discussed[1],
the recommendation is to use

    sphinxcontrib-bibtex<2.0.0 to requirements.txt

which is no real option in the our packaging case.  Any help how
to adapt the code to python3-sphinxcontrib.bibtex 2.4.1 would
be appreciated.

Kind regards

      Andreas.


[1] https://github.com/executablebooks/jupyter-book/issues/1137

-- 
http://fam-tille.de

[toc] | [next] | [standalone]


#1079226

FromStuart Prescott <stuart@debian.org>
Date2021-11-02 23:50 +0100
Message-ID<DfaLo-7V2-3@gated-at.bofh.it>
In reply to#1079079
Hi Andreas

> > > Extension error:
> > > You must configure the bibtex_bibfiles setting
> > > make[2]: *** [Makefile:40: html] Error 2

this is sphinxcontrib-bibtex saying that you need to add the following to 
doc/conf.py:

bibtex_bibfiles = "path/to/references.bib"

However I can't see a .bib file anywhere in the source. I also can't see any 
code in the rst files or the docstrings that would actually use sphinxcontrib-
bibtex so I'm not sure how this extension is actually used in these documents. 
Perhaps it isn't actually needed at all.

cheers
Stuart

-- 
Stuart Prescott    http://www.nanonanonano.net/   stuart@nanonanonano.net
Debian Developer   http://www.debian.org/         stuart@debian.org
GPG fingerprint    90E2 D2C1 AD14 6A1B 7EBB 891D BBC1 7EBB 1396 F2F7

[toc] | [prev] | [next] | [standalone]


#1079261

FromStuart Prescott <stuart@debian.org>
Date2021-11-03 10:50 +0100
Message-ID<Dfl45-63b-3@gated-at.bofh.it>
In reply to#1079226
Hi Andreas

On Wednesday, 3 November 2021 19:00:05 AEDT Andreas Tille wrote:
[...]
>   File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 182, in
> write_pkg_file license = rfc822_escape(self.get_license())
>   File "/usr/lib/python3.9/distutils/util.py", line 476, in rfc822_escape
>     lines = header.split('\n')
> AttributeError: 'list' object has no attribute 'split'

looking at setup.py, it has

    license=["BSD"],

https://salsa.debian.org/med-team/python-cogent/-/blob/master/setup.py#L62 

while the documentation for the setup() function indicates that licence should 
be a string. That would certainly be consistent with the exception that is 
raised with the output of get_license().

https://packaging.python.org/guides/distributing-packages-using-setuptools/
#license

I've not checked that this is indeed the problem, but patching setup.py to 
have instead

    license="BSD",

would be the next thing I'd try.

Incidentally, I see that upstream for cogent has ripped out setup.py entirely 
and now has a flit based build system which will require a few changes to the 
packaging in the future.

cheers
Stuart


-- 
Stuart Prescott    http://www.nanonanonano.net/   stuart@nanonanonano.net
Debian Developer   http://www.debian.org/         stuart@debian.org
GPG fingerprint    90E2 D2C1 AD14 6A1B 7EBB 891D BBC1 7EBB 1396 F2F7

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.bugs.dist


csiph-web