[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#963647: elpy: FTBFS with Sphinx 3.1: Could not import extension elispdomain (exception: cannot import name 'l_' from 'sphinx.locale' (/usr/lib/python3/dist-packages/sphinx/locale/__init__.py))



Source: elpy
Version: 1.34.0-1
Severity: important
Tags: ftbfs
User: python-modules-team@lists.alioth.debian.org
Usertags: sphinx3.1

Hi,

elpy fails to build with Sphinx 3.1, currently available in
experimental.

Relevant part (hopefully):
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> dh_auto_build
> I: pybuild base:217: /usr/bin/python3 setup.py build 
> running build
> running build_py
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_elpy/build/elpy
> copying elpy/jedibackend.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_elpy/build/elpy
> copying elpy/refactor.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_elpy/build/elpy
> copying elpy/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_elpy/build/elpy
> copying elpy/__main__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_elpy/build/elpy
> copying elpy/pydocutils.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_elpy/build/elpy
> copying elpy/blackutil.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_elpy/build/elpy
> copying elpy/yapfutil.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_elpy/build/elpy
> copying elpy/compat.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_elpy/build/elpy
> copying elpy/auto_pep8.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_elpy/build/elpy
> copying elpy/rpc.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_elpy/build/elpy
> copying elpy/server.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_elpy/build/elpy
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_elpy/build/elpy/tests
> copying elpy/tests/test_server.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_elpy/build/elpy/tests
> copying elpy/tests/test_rpc.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_elpy/build/elpy/tests
> copying elpy/tests/support.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_elpy/build/elpy/tests
> copying elpy/tests/test_yapf.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_elpy/build/elpy/tests
> copying elpy/tests/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_elpy/build/elpy/tests
> copying elpy/tests/test_pydocutils.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_elpy/build/elpy/tests
> copying elpy/tests/test_auto_pep8.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_elpy/build/elpy/tests
> copying elpy/tests/test_refactor.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_elpy/build/elpy/tests
> copying elpy/tests/test_jedibackend.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_elpy/build/elpy/tests
> copying elpy/tests/compat.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_elpy/build/elpy/tests
> copying elpy/tests/test_black.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_elpy/build/elpy/tests
> copying elpy/tests/test_support.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_elpy/build/elpy/tests
> running egg_info
> creating elpy.egg-info
> writing elpy.egg-info/PKG-INFO
> writing dependency_links to elpy.egg-info/dependency_links.txt
> writing requirements to elpy.egg-info/requires.txt
> writing top-level names to elpy.egg-info/top_level.txt
> writing manifest file 'elpy.egg-info/SOURCES.txt'
> reading manifest file 'elpy.egg-info/SOURCES.txt'
> reading manifest template 'MANIFEST.in'
> writing manifest file 'elpy.egg-info/SOURCES.txt'
> PYTHONPATH=. python3 -m sphinx -N -bman docs/ build/man
> Running Sphinx v3.1.1
> 
> Extension error:
> Could not import extension elispdomain (exception: cannot import name 'l_' from 'sphinx.locale' (/usr/lib/python3/dist-packages/sphinx/locale/__init__.py))
> make[1]: *** [debian/rules:22: override_dh_auto_build] Error 2

The full build log is available from:
   http://qa-logs.debian.net/2020/06/23/elpy_1.34.0-1_unstable_sphinx-exp.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 3.1 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 sphinx@packages.debian.org on reply.

[1]: https://www.sphinx-doc.org/en/3.x/changes.html
[2]: https://www.sphinx-doc.org/en/3.x/extdev/deprecated.html

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.


Reply to: