Bug#1013375: pandas: FTBFS with Sphinx 5.0, docutils 0.18: ImportError: cannot import name 'rpartition' from 'sphinx.util' (/usr/lib/python3/dist-packages/sphinx/util/__init__.py)
Lucas Nussbaum
lucas at debian.org
Thu Jun 23 07:43:37 BST 2022
Source: pandas
Version: 1.3.5+dfsg-4
Severity: important
Tags: ftbfs
User: mitya57 at debian.org
Usertags: sphinx5.0
Hi,
pandas fails to build with Sphinx 5.0 and docutils 0.18, both of which
are currently available in experimental.
Relevant part (hopefully):
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> py3versions: no X-Python3-Version in control file, using supported versions
> mkdir -p buildtmp
> [ -e pandas/__version.py ] || \
> echo -e "version = '1.3.5'\nshort_version = '1.3.5'" > pandas/__version.py
> dh_auto_build
> I: pybuild base:239: /usr/bin/python3.9 setup.py build
> running build
> running build_py
> running egg_info
> writing pandas.egg-info/PKG-INFO
> writing dependency_links to pandas.egg-info/dependency_links.txt
> writing entry points to pandas.egg-info/entry_points.txt
> writing requirements to pandas.egg-info/requires.txt
> writing top-level names to pandas.egg-info/top_level.txt
> reading manifest file 'pandas.egg-info/SOURCES.txt'
> reading manifest template 'MANIFEST.in'
> no previously-included directories found matching 'doc/build'
> warning: no previously-included files matching '*~' found anywhere in distribution
> warning: no previously-included files matching '.DS_Store' found anywhere in distribution
> warning: no previously-included files matching '#*' found anywhere in distribution
> warning: no previously-included files matching '*.py[ocd]' found anywhere in distribution
> adding license file 'LICENSE'
> writing manifest file 'pandas.egg-info/SOURCES.txt'
> UPDATING /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pandas/_version.py
> set /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pandas/_version.py to '1.3.5'
> running build_ext
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pandas/_libs/algos.cpython-39-x86_64-linux-gnu.so -> pandas/_libs
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pandas/_libs/arrays.cpython-39-x86_64-linux-gnu.so -> pandas/_libs
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pandas/_libs/groupby.cpython-39-x86_64-linux-gnu.so -> pandas/_libs
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pandas/_libs/hashing.cpython-39-x86_64-linux-gnu.so -> pandas/_libs
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pandas/_libs/hashtable.cpython-39-x86_64-linux-gnu.so -> pandas/_libs
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pandas/_libs/index.cpython-39-x86_64-linux-gnu.so -> pandas/_libs
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pandas/_libs/indexing.cpython-39-x86_64-linux-gnu.so -> pandas/_libs
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pandas/_libs/internals.cpython-39-x86_64-linux-gnu.so -> pandas/_libs
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pandas/_libs/interval.cpython-39-x86_64-linux-gnu.so -> pandas/_libs
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pandas/_libs/join.cpython-39-x86_64-linux-gnu.so -> pandas/_libs
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pandas/_libs/lib.cpython-39-x86_64-linux-gnu.so -> pandas/_libs
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pandas/_libs/missing.cpython-39-x86_64-linux-gnu.so -> pandas/_libs
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pandas/_libs/parsers.cpython-39-x86_64-linux-gnu.so -> pandas/_libs
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pandas/_libs/reduction.cpython-39-x86_64-linux-gnu.so -> pandas/_libs
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pandas/_libs/ops.cpython-39-x86_64-linux-gnu.so -> pandas/_libs
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pandas/_libs/ops_dispatch.cpython-39-x86_64-linux-gnu.so -> pandas/_libs
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pandas/_libs/properties.cpython-39-x86_64-linux-gnu.so -> pandas/_libs
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pandas/_libs/reshape.cpython-39-x86_64-linux-gnu.so -> pandas/_libs
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pandas/_libs/sparse.cpython-39-x86_64-linux-gnu.so -> pandas/_libs
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pandas/_libs/tslib.cpython-39-x86_64-linux-gnu.so -> pandas/_libs
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pandas/_libs/tslibs/base.cpython-39-x86_64-linux-gnu.so -> pandas/_libs/tslibs
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pandas/_libs/tslibs/ccalendar.cpython-39-x86_64-linux-gnu.so -> pandas/_libs/tslibs
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pandas/_libs/tslibs/dtypes.cpython-39-x86_64-linux-gnu.so -> pandas/_libs/tslibs
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pandas/_libs/tslibs/conversion.cpython-39-x86_64-linux-gnu.so -> pandas/_libs/tslibs
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pandas/_libs/tslibs/fields.cpython-39-x86_64-linux-gnu.so -> pandas/_libs/tslibs
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pandas/_libs/tslibs/nattype.cpython-39-x86_64-linux-gnu.so -> pandas/_libs/tslibs
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pandas/_libs/tslibs/np_datetime.cpython-39-x86_64-linux-gnu.so -> pandas/_libs/tslibs
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pandas/_libs/tslibs/offsets.cpython-39-x86_64-linux-gnu.so -> pandas/_libs/tslibs
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pandas/_libs/tslibs/parsing.cpython-39-x86_64-linux-gnu.so -> pandas/_libs/tslibs
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pandas/_libs/tslibs/period.cpython-39-x86_64-linux-gnu.so -> pandas/_libs/tslibs
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pandas/_libs/tslibs/strptime.cpython-39-x86_64-linux-gnu.so -> pandas/_libs/tslibs
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pandas/_libs/tslibs/timedeltas.cpython-39-x86_64-linux-gnu.so -> pandas/_libs/tslibs
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pandas/_libs/tslibs/timestamps.cpython-39-x86_64-linux-gnu.so -> pandas/_libs/tslibs
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pandas/_libs/tslibs/timezones.cpython-39-x86_64-linux-gnu.so -> pandas/_libs/tslibs
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pandas/_libs/tslibs/tzconversion.cpython-39-x86_64-linux-gnu.so -> pandas/_libs/tslibs
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pandas/_libs/tslibs/vectorized.cpython-39-x86_64-linux-gnu.so -> pandas/_libs/tslibs
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pandas/_libs/testing.cpython-39-x86_64-linux-gnu.so -> pandas/_libs
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pandas/_libs/window/aggregations.cpython-39-x86_64-linux-gnu.so -> pandas/_libs/window
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pandas/_libs/window/indexers.cpython-39-x86_64-linux-gnu.so -> pandas/_libs/window
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pandas/_libs/writers.cpython-39-x86_64-linux-gnu.so -> pandas/_libs
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pandas/io/sas/_sas.cpython-39-x86_64-linux-gnu.so -> pandas/io/sas
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pandas/_libs/json.cpython-39-x86_64-linux-gnu.so -> pandas/_libs
> I: pybuild base:239: /usr/bin/python3 setup.py build
> running build
> running build_py
> running egg_info
> writing pandas.egg-info/PKG-INFO
> writing dependency_links to pandas.egg-info/dependency_links.txt
> writing entry points to pandas.egg-info/entry_points.txt
> writing requirements to pandas.egg-info/requires.txt
> writing top-level names to pandas.egg-info/top_level.txt
> reading manifest file 'pandas.egg-info/SOURCES.txt'
> reading manifest template 'MANIFEST.in'
> no previously-included directories found matching 'doc/build'
> warning: no previously-included files matching '*~' found anywhere in distribution
> warning: no previously-included files matching '.DS_Store' found anywhere in distribution
> warning: no previously-included files matching '#*' found anywhere in distribution
> warning: no previously-included files matching '*.py[ocd]' found anywhere in distribution
> adding license file 'LICENSE'
> writing manifest file 'pandas.egg-info/SOURCES.txt'
> UPDATING /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/pandas/_version.py
> set /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/pandas/_version.py to '1.3.5'
> running build_ext
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/pandas/_libs/algos.cpython-310-x86_64-linux-gnu.so -> pandas/_libs
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/pandas/_libs/arrays.cpython-310-x86_64-linux-gnu.so -> pandas/_libs
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/pandas/_libs/groupby.cpython-310-x86_64-linux-gnu.so -> pandas/_libs
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/pandas/_libs/hashing.cpython-310-x86_64-linux-gnu.so -> pandas/_libs
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/pandas/_libs/hashtable.cpython-310-x86_64-linux-gnu.so -> pandas/_libs
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/pandas/_libs/index.cpython-310-x86_64-linux-gnu.so -> pandas/_libs
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/pandas/_libs/indexing.cpython-310-x86_64-linux-gnu.so -> pandas/_libs
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/pandas/_libs/internals.cpython-310-x86_64-linux-gnu.so -> pandas/_libs
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/pandas/_libs/interval.cpython-310-x86_64-linux-gnu.so -> pandas/_libs
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/pandas/_libs/join.cpython-310-x86_64-linux-gnu.so -> pandas/_libs
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/pandas/_libs/lib.cpython-310-x86_64-linux-gnu.so -> pandas/_libs
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/pandas/_libs/missing.cpython-310-x86_64-linux-gnu.so -> pandas/_libs
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/pandas/_libs/parsers.cpython-310-x86_64-linux-gnu.so -> pandas/_libs
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/pandas/_libs/reduction.cpython-310-x86_64-linux-gnu.so -> pandas/_libs
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/pandas/_libs/ops.cpython-310-x86_64-linux-gnu.so -> pandas/_libs
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/pandas/_libs/ops_dispatch.cpython-310-x86_64-linux-gnu.so -> pandas/_libs
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/pandas/_libs/properties.cpython-310-x86_64-linux-gnu.so -> pandas/_libs
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/pandas/_libs/reshape.cpython-310-x86_64-linux-gnu.so -> pandas/_libs
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/pandas/_libs/sparse.cpython-310-x86_64-linux-gnu.so -> pandas/_libs
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/pandas/_libs/tslib.cpython-310-x86_64-linux-gnu.so -> pandas/_libs
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/pandas/_libs/tslibs/base.cpython-310-x86_64-linux-gnu.so -> pandas/_libs/tslibs
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/pandas/_libs/tslibs/ccalendar.cpython-310-x86_64-linux-gnu.so -> pandas/_libs/tslibs
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/pandas/_libs/tslibs/dtypes.cpython-310-x86_64-linux-gnu.so -> pandas/_libs/tslibs
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/pandas/_libs/tslibs/conversion.cpython-310-x86_64-linux-gnu.so -> pandas/_libs/tslibs
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/pandas/_libs/tslibs/fields.cpython-310-x86_64-linux-gnu.so -> pandas/_libs/tslibs
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/pandas/_libs/tslibs/nattype.cpython-310-x86_64-linux-gnu.so -> pandas/_libs/tslibs
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/pandas/_libs/tslibs/np_datetime.cpython-310-x86_64-linux-gnu.so -> pandas/_libs/tslibs
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/pandas/_libs/tslibs/offsets.cpython-310-x86_64-linux-gnu.so -> pandas/_libs/tslibs
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/pandas/_libs/tslibs/parsing.cpython-310-x86_64-linux-gnu.so -> pandas/_libs/tslibs
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/pandas/_libs/tslibs/period.cpython-310-x86_64-linux-gnu.so -> pandas/_libs/tslibs
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/pandas/_libs/tslibs/strptime.cpython-310-x86_64-linux-gnu.so -> pandas/_libs/tslibs
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/pandas/_libs/tslibs/timedeltas.cpython-310-x86_64-linux-gnu.so -> pandas/_libs/tslibs
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/pandas/_libs/tslibs/timestamps.cpython-310-x86_64-linux-gnu.so -> pandas/_libs/tslibs
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/pandas/_libs/tslibs/timezones.cpython-310-x86_64-linux-gnu.so -> pandas/_libs/tslibs
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/pandas/_libs/tslibs/tzconversion.cpython-310-x86_64-linux-gnu.so -> pandas/_libs/tslibs
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/pandas/_libs/tslibs/vectorized.cpython-310-x86_64-linux-gnu.so -> pandas/_libs/tslibs
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/pandas/_libs/testing.cpython-310-x86_64-linux-gnu.so -> pandas/_libs
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/pandas/_libs/window/aggregations.cpython-310-x86_64-linux-gnu.so -> pandas/_libs/window
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/pandas/_libs/window/indexers.cpython-310-x86_64-linux-gnu.so -> pandas/_libs/window
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/pandas/_libs/writers.cpython-310-x86_64-linux-gnu.so -> pandas/_libs
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/pandas/io/sas/_sas.cpython-310-x86_64-linux-gnu.so -> pandas/io/sas
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/pandas/_libs/json.cpython-310-x86_64-linux-gnu.so -> pandas/_libs
> : # Build Documentation
> cd doc && PYTHONPATH=/<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build LC_ALL=C python3 make.py html
> Running Sphinx v5.0.2
> Pandoc not installed. Skipping notebooks.
>
> Configuration error:
> There is a programmable error in your configuration file:
>
> Traceback (most recent call last):
> File "/usr/lib/python3/dist-packages/sphinx/config.py", line 343, in eval_config_file
> exec(code, namespace)
> File "/<<PKGBUILDDIR>>/doc/source/conf.py", line 466, in <module>
> from sphinx.util import rpartition # isort:skip
> ImportError: cannot import name 'rpartition' from 'sphinx.util' (/usr/lib/python3/dist-packages/sphinx/util/__init__.py)
>
> make[1]: *** [debian/rules:88: override_dh_auto_build-indep] Error 2
The full build log is available from:
http://qa-logs.debian.net/2022/06/23/pandas_1.3.5+dfsg-4_unstable_sphinx-exp.log
Please see [1] for Sphinx changelog and [2] for Docutils changelog.
Also see [3] for the list of deprecated/removed APIs in Sphinx and possible
alternatives to them.
In case you have questions, please Cc sphinx at packages.debian.org on reply.
[1]: https://www.sphinx-doc.org/en/master/changes.html
[2]: https://repo.or.cz/docutils.git/blob/refs/tags/docutils-0.18.1:/RELEASE-NOTES.txt
[3]: https://www.sphinx-doc.org/en/master/extdev/deprecated.html#dev-deprecated-apis
All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=sphinx5.0;users=mitya57@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=sphinx5.0&fusertaguser=mitya57@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results
If you reassign this bug to another package, please marking it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects
More information about the debian-science-maintainers
mailing list