Source: sphinx-testing Version: 0.8.1-1.2 Severity: important Tags: ftbfs User: python-modules-t...@lists.alioth.debian.org Usertags: sphinx2.4
Hi, sphinx-testing fails to build with Sphinx 2.4, currently available in experimental. Relevant part (hopefully): > debian/rules build > dh build --with python3 --buildsystem=pybuild > dh_update_autotools_config -O--buildsystem=pybuild > dh_auto_configure -O--buildsystem=pybuild > I: pybuild base:217: python3.7 setup.py config > running config > I: pybuild base:217: python3.8 setup.py config > running config > dh_auto_build -O--buildsystem=pybuild > I: pybuild base:217: /usr/bin/python3.7 setup.py build > running build > running build_py > creating > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_sphinx-testing/build/sphinx_testing > copying src/sphinx_testing/__init__.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_sphinx-testing/build/sphinx_testing > copying src/sphinx_testing/tmpdir.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_sphinx-testing/build/sphinx_testing > copying src/sphinx_testing/util.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_sphinx-testing/build/sphinx_testing > copying src/sphinx_testing/path.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_sphinx-testing/build/sphinx_testing > running egg_info > writing src/sphinx_testing.egg-info/PKG-INFO > writing dependency_links to src/sphinx_testing.egg-info/dependency_links.txt > writing requirements to src/sphinx_testing.egg-info/requires.txt > writing top-level names to src/sphinx_testing.egg-info/top_level.txt > reading manifest file 'src/sphinx_testing.egg-info/SOURCES.txt' > reading manifest template 'MANIFEST.in' > writing manifest file 'src/sphinx_testing.egg-info/SOURCES.txt' > I: pybuild base:217: /usr/bin/python3 setup.py build > running build > running build_py > creating > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_sphinx-testing/build/sphinx_testing > copying src/sphinx_testing/__init__.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_sphinx-testing/build/sphinx_testing > copying src/sphinx_testing/tmpdir.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_sphinx-testing/build/sphinx_testing > copying src/sphinx_testing/util.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_sphinx-testing/build/sphinx_testing > copying src/sphinx_testing/path.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_sphinx-testing/build/sphinx_testing > running egg_info > writing src/sphinx_testing.egg-info/PKG-INFO > writing dependency_links to src/sphinx_testing.egg-info/dependency_links.txt > writing requirements to src/sphinx_testing.egg-info/requires.txt > writing top-level names to src/sphinx_testing.egg-info/top_level.txt > reading manifest file 'src/sphinx_testing.egg-info/SOURCES.txt' > reading manifest template 'MANIFEST.in' > writing manifest file 'src/sphinx_testing.egg-info/SOURCES.txt' > dh_auto_test -O--buildsystem=pybuild > I: pybuild base:217: cd > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_sphinx-testing/build; python3.7 -m > nose -v tests > test_abspath (test_path.TestPath) ... ok > test_basename (test_path.TestPath) ... ok > test_copytree (test_path.TestPath) ... ok > test_dirname (test_path.TestPath) ... ok > test_exists (test_path.TestPath) ... ok > test_instantiate (test_path.TestPath) ... ok > test_isabs (test_path.TestPath) ... ok > test_isdir (test_path.TestPath) ... ok > test_isfile (test_path.TestPath) ... ok > test_islink (test_path.TestPath) ... ok > test_ismount (test_path.TestPath) ... ok > test_jonpath (test_path.TestPath) ... ok > test_listdir (test_path.TestPath) ... ok > test_makedirs (test_path.TestPath) ... ok > test_move (test_path.TestPath) ... ok > test_read_bytes (test_path.TestPath) ... ok > test_read_text (test_path.TestPath) ... ok > test_rmtree (test_path.TestPath) ... ok > test_suffix (test_path.TestPath) ... ok > test_unlink (test_path.TestPath) ... ok > test_utime (test_path.TestPath) ... ok > test_write_bytes (test_path.TestPath) ... ok > test_write_text (test_path.TestPath) ... ok > test_mkdtemp (test_tmpdir.TestTmpdir) ... ok > test_with_tmpdir (test_tmpdir.TestTmpdir) ... ok > test_TestApp (test_util.TestSphinxTesting) ... ERROR > test_TestApp_cleanup (test_util.TestSphinxTesting) ... ERROR > test_TestApp_cleanup_when_cleanup_on_errors (test_util.TestSphinxTesting) ... > ERROR > test_TestApp_when_copy_srcdir_to_tmpdir (test_util.TestSphinxTesting) ... > ERROR > test_TestApp_when_create_new_srcdir (test_util.TestSphinxTesting) ... ERROR > test_TestApp_when_srcdir_and_create_new_srcdir_conflict > (test_util.TestSphinxTesting) ... ok > test_TestApp_when_srcdir_is_None (test_util.TestSphinxTesting) ... ok > test_TestApp_when_srcdir_specified (test_util.TestSphinxTesting) ... ERROR > test_with_app (test_util.TestSphinxTesting) ... ERROR > test_with_app_bad_args (test_util.TestSphinxTesting) ... ERROR > test_with_app_write_docstring (test_util.TestSphinxTesting) ... ERROR > test_with_app_write_docstring_by_name (test_util.TestSphinxTesting) ... ERROR > test_with_app_write_docstring_with_master_doc (test_util.TestSphinxTesting) > ... ERROR > test_with_app_write_docstring_with_source_suffix > (test_util.TestSphinxTesting) ... ERROR > > ====================================================================== > ERROR: test_TestApp (test_util.TestSphinxTesting) > ---------------------------------------------------------------------- > Traceback (most recent call last): > File > "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_sphinx-testing/build/tests/test_util.py", > line 39, in test_TestApp > app.cleanup() > File > "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_sphinx-testing/build/sphinx_testing/util.py", > line 113, in cleanup > from sphinx.ext.autodoc import AutoDirective > ImportError: cannot import name 'AutoDirective' from 'sphinx.ext.autodoc' > (unknown location) > > ====================================================================== > ERROR: test_TestApp_cleanup (test_util.TestSphinxTesting) > ---------------------------------------------------------------------- > Traceback (most recent call last): > File > "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_sphinx-testing/build/tests/test_util.py", > line 99, in test_TestApp_cleanup > with patch("sphinx.ext.autodoc.AutoDirective") as AutoDirective: > File "/usr/lib/python3.7/unittest/mock.py", line 1323, in __enter__ > original, local = self.get_original() > File "/usr/lib/python3.7/unittest/mock.py", line 1297, in get_original > "%s does not have the attribute %r" % (target, name) > AttributeError: <sphinx.deprecation._ModuleWrapper object at 0x7f609624fa10> > does not have the attribute 'AutoDirective' > > ====================================================================== > ERROR: test_TestApp_cleanup_when_cleanup_on_errors > (test_util.TestSphinxTesting) > ---------------------------------------------------------------------- > Traceback (most recent call last): > File > "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_sphinx-testing/build/tests/test_util.py", > line 108, in test_TestApp_cleanup_when_cleanup_on_errors > with patch("sphinx.ext.autodoc.AutoDirective") as AutoDirective: > File "/usr/lib/python3.7/unittest/mock.py", line 1323, in __enter__ > original, local = self.get_original() > File "/usr/lib/python3.7/unittest/mock.py", line 1297, in get_original > "%s does not have the attribute %r" % (target, name) > AttributeError: <sphinx.deprecation._ModuleWrapper object at 0x7f609624fa10> > does not have the attribute 'AutoDirective' > > ====================================================================== > ERROR: test_TestApp_when_copy_srcdir_to_tmpdir (test_util.TestSphinxTesting) > ---------------------------------------------------------------------- > Traceback (most recent call last): > File > "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_sphinx-testing/build/tests/test_util.py", > line 86, in test_TestApp_when_copy_srcdir_to_tmpdir > (app.srcdir / 'conf.py').read_text()) > TypeError: unsupported operand type(s) for /: 'str' and 'str' > > During handling of the above exception, another exception occurred: > > Traceback (most recent call last): > File > "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_sphinx-testing/build/tests/test_util.py", > line 90, in test_TestApp_when_copy_srcdir_to_tmpdir > app.cleanup() > File > "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_sphinx-testing/build/sphinx_testing/util.py", > line 113, in cleanup > from sphinx.ext.autodoc import AutoDirective > ImportError: cannot import name 'AutoDirective' from 'sphinx.ext.autodoc' > (unknown location) > > ====================================================================== > ERROR: test_TestApp_when_create_new_srcdir (test_util.TestSphinxTesting) > ---------------------------------------------------------------------- > Traceback (most recent call last): > File > "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_sphinx-testing/build/tests/test_util.py", > line 68, in test_TestApp_when_create_new_srcdir > self.assertEqual('', (app.srcdir / 'conf.py').read_text()) > TypeError: unsupported operand type(s) for /: 'str' and 'str' > > During handling of the above exception, another exception occurred: > > Traceback (most recent call last): > File > "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_sphinx-testing/build/tests/test_util.py", > line 70, in test_TestApp_when_create_new_srcdir > app.cleanup() > File > "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_sphinx-testing/build/sphinx_testing/util.py", > line 113, in cleanup > from sphinx.ext.autodoc import AutoDirective > ImportError: cannot import name 'AutoDirective' from 'sphinx.ext.autodoc' > (unknown location) > > ====================================================================== > ERROR: test_TestApp_when_srcdir_specified (test_util.TestSphinxTesting) > ---------------------------------------------------------------------- > Traceback (most recent call last): > File > "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_sphinx-testing/build/tests/test_util.py", > line 51, in test_TestApp_when_srcdir_specified > (app.srcdir / 'conf.py').read_text()) > TypeError: unsupported operand type(s) for /: 'str' and 'str' > > During handling of the above exception, another exception occurred: > > Traceback (most recent call last): > File > "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_sphinx-testing/build/tests/test_util.py", > line 55, in test_TestApp_when_srcdir_specified > app.cleanup() > File > "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_sphinx-testing/build/sphinx_testing/util.py", > line 113, in cleanup > from sphinx.ext.autodoc import AutoDirective > ImportError: cannot import name 'AutoDirective' from 'sphinx.ext.autodoc' > (unknown location) > > ====================================================================== > ERROR: test_with_app (test_util.TestSphinxTesting) > ---------------------------------------------------------------------- > Traceback (most recent call last): > File > "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_sphinx-testing/build/sphinx_testing/util.py", > line 162, in decorator > func(*(args + (app, status, warning)), **kwargs) > File > "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_sphinx-testing/build/tests/test_util.py", > line 124, in execute > (app.srcdir / 'unknown.rst').write_text('') > TypeError: unsupported operand type(s) for /: 'str' and 'str' > > During handling of the above exception, another exception occurred: > > Traceback (most recent call last): > File > "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_sphinx-testing/build/tests/test_util.py", > line 138, in test_with_app > execute() > File > "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_sphinx-testing/build/sphinx_testing/util.py", > line 169, in decorator > app.cleanup(error=exc) > File > "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_sphinx-testing/build/sphinx_testing/util.py", > line 113, in cleanup > from sphinx.ext.autodoc import AutoDirective > ImportError: cannot import name 'AutoDirective' from 'sphinx.ext.autodoc' > (unknown location) > > ====================================================================== > ERROR: test_with_app_bad_args (test_util.TestSphinxTesting) > ---------------------------------------------------------------------- > Traceback (most recent call last): > File > "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_sphinx-testing/build/sphinx_testing/util.py", > line 162, in decorator > func(*(args + (app, status, warning)), **kwargs) > TypeError: execute() takes 1 positional argument but 3 were given > > During handling of the above exception, another exception occurred: > > Traceback (most recent call last): > File "/usr/lib/python3.7/unittest/mock.py", line 1259, in patched > return func(*args, **keywargs) > File > "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_sphinx-testing/build/tests/test_util.py", > line 152, in test_with_app_bad_args > execute() > File > "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_sphinx-testing/build/sphinx_testing/util.py", > line 169, in decorator > app.cleanup(error=exc) > File > "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_sphinx-testing/build/sphinx_testing/util.py", > line 113, in cleanup > from sphinx.ext.autodoc import AutoDirective > ImportError: cannot import name 'AutoDirective' from 'sphinx.ext.autodoc' > (unknown location) > > ====================================================================== > ERROR: test_with_app_write_docstring (test_util.TestSphinxTesting) > ---------------------------------------------------------------------- > Traceback (most recent call last): > File > "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_sphinx-testing/build/sphinx_testing/util.py", > line 160, in decorator > self.write_docstring(app, func.__doc__) > File > "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_sphinx-testing/build/sphinx_testing/util.py", > line 143, in write_docstring > filename = app.srcdir / basename > TypeError: unsupported operand type(s) for /: 'str' and 'str' > > During handling of the above exception, another exception occurred: > > Traceback (most recent call last): > File > "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_sphinx-testing/build/tests/test_util.py", > line 163, in test_with_app_write_docstring > execute() > File > "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_sphinx-testing/build/sphinx_testing/util.py", > line 169, in decorator > app.cleanup(error=exc) > File > "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_sphinx-testing/build/sphinx_testing/util.py", > line 113, in cleanup > from sphinx.ext.autodoc import AutoDirective > ImportError: cannot import name 'AutoDirective' from 'sphinx.ext.autodoc' > (unknown location) > > ====================================================================== > ERROR: test_with_app_write_docstring_by_name (test_util.TestSphinxTesting) > ---------------------------------------------------------------------- > Traceback (most recent call last): > File > "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_sphinx-testing/build/sphinx_testing/util.py", > line 160, in decorator > self.write_docstring(app, func.__doc__) > File > "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_sphinx-testing/build/sphinx_testing/util.py", > line 145, in write_docstring > filename = app.srcdir / self._write_docstring > TypeError: unsupported operand type(s) for /: 'str' and 'str' > > During handling of the above exception, another exception occurred: > > Traceback (most recent call last): > File > "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_sphinx-testing/build/tests/test_util.py", > line 192, in test_with_app_write_docstring_by_name > execute() > File > "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_sphinx-testing/build/sphinx_testing/util.py", > line 169, in decorator > app.cleanup(error=exc) > File > "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_sphinx-testing/build/sphinx_testing/util.py", > line 113, in cleanup > from sphinx.ext.autodoc import AutoDirective > ImportError: cannot import name 'AutoDirective' from 'sphinx.ext.autodoc' > (unknown location) > > ====================================================================== > ERROR: test_with_app_write_docstring_with_master_doc > (test_util.TestSphinxTesting) > ---------------------------------------------------------------------- > Traceback (most recent call last): > File > "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_sphinx-testing/build/sphinx_testing/util.py", > line 160, in decorator > self.write_docstring(app, func.__doc__) > File > "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_sphinx-testing/build/sphinx_testing/util.py", > line 143, in write_docstring > filename = app.srcdir / basename > TypeError: unsupported operand type(s) for /: 'str' and 'str' > > During handling of the above exception, another exception occurred: > > Traceback (most recent call last): > File > "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_sphinx-testing/build/tests/test_util.py", > line 173, in test_with_app_write_docstring_with_master_doc > execute() > File > "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_sphinx-testing/build/sphinx_testing/util.py", > line 169, in decorator > app.cleanup(error=exc) > File > "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_sphinx-testing/build/sphinx_testing/util.py", > line 113, in cleanup > from sphinx.ext.autodoc import AutoDirective > ImportError: cannot import name 'AutoDirective' from 'sphinx.ext.autodoc' > (unknown location) > > ====================================================================== > ERROR: test_with_app_write_docstring_with_source_suffix > (test_util.TestSphinxTesting) > ---------------------------------------------------------------------- > Traceback (most recent call last): > File > "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_sphinx-testing/build/sphinx_testing/util.py", > line 160, in decorator > self.write_docstring(app, func.__doc__) > File > "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_sphinx-testing/build/sphinx_testing/util.py", > line 143, in write_docstring > filename = app.srcdir / basename > TypeError: unsupported operand type(s) for /: 'str' and 'str' > > During handling of the above exception, another exception occurred: > > Traceback (most recent call last): > File > "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_sphinx-testing/build/tests/test_util.py", > line 183, in test_with_app_write_docstring_with_source_suffix > execute() > File > "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_sphinx-testing/build/sphinx_testing/util.py", > line 169, in decorator > app.cleanup(error=exc) > File > "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_sphinx-testing/build/sphinx_testing/util.py", > line 113, in cleanup > from sphinx.ext.autodoc import AutoDirective > ImportError: cannot import name 'AutoDirective' from 'sphinx.ext.autodoc' > (unknown location) > > ---------------------------------------------------------------------- > Ran 39 tests in 0.530s > > FAILED (errors=12) > E: pybuild pybuild:352: test: plugin distutils failed with: exit code=1: cd > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_sphinx-testing/build; python3.7 -m > nose -v tests > dh_auto_test: error: pybuild --test -i python{version} -p "3.7 3.8" returned > exit code 13 The full build log is available from: http://qa-logs.debian.net/2020/03/26/sphinx-testing_0.8.1-1.2_unstable_sphinx243.log Please see [1] for Sphinx changelog, which may give a hint of what changes in Sphinx caused this error. Also see [2] for the list of deprecated/removed APIs and possible alternatives to them. Sphinx 2.4 is going to be uploaded to unstable in a couple of weeks. When that happens, the severity of this bug will be bumped to serious. In case you have questions, please Cc sph...@packages.debian.org on reply. [1]: https://www.sphinx-doc.org/en/2.0/changes.html [2]: https://www.sphinx-doc.org/en/2.0/extdev/deprecated.html#dev-deprecated-apis A list of current common problems and possible solutions is available at http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute! About the archive rebuild: The rebuild was done on EC2 VM instances from Amazon Web Services, using a clean, minimal and up-to-date chroot. Every failed build was retried once to eliminate random failures.