Le 11/07/2021 à 20:40, Luc Saffre a écrit :
After upgrading, I have the following traceback and in all my doctrees,
and I have no idea why. Neither "epub3" nor "RemovedInSphinx40Warning"
occur in any of my source files. Any hints?
Luc
Hi Luc
can you try
pip install -U sphinxcontrib.serializinghtml
in your virtual env ?
I think I encountered at my locale the same or similar
issue as yours, after having remained inactive with sphinx
for a while and trying out Sphinx 4.0.0
it got fixed by the above step (after having wasted some time in vain
looking through Sphinx sources for the cause)
fwiw at my locale I get this currently
Requirement already up-to-date: sphinxcontrib.serializinghtml in
./path/to/.venv38/lib/python3.8/site-packages (1.1.5)
Jean-François
Invoke sphinx-build -b html -T -d
/home/luc/mypy/lino_local/jsvv/docs/.build/.doctrees -W --keep-going .
/home/luc/mypy/lino_local/jsvv/docs/.build
Running Sphinx v4.1.0
loading translations [et]... done
Traceback (most recent call last):
File
"/home/luc/virtualenvs/py3/lib/python3.6/site-packages/sphinx/registry.py",
line 429, in load_extension
mod = import_module(extname)
File "/home/luc/virtualenvs/py3/lib/python3.6/importlib/__init__.py",
line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 994, in _gcd_import
File "<frozen importlib._bootstrap>", line 971, in _find_and_load
File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 678, in exec_module
File "<frozen importlib._bootstrap>", line 219, in
_call_with_frames_removed
File
"/home/luc/virtualenvs/py3/lib/python3.6/site-packages/sphinx/builders/epub3.py",
line 18, in <module>
from sphinx.builders import _epub_base
File
"/home/luc/virtualenvs/py3/lib/python3.6/site-packages/sphinx/builders/_epub_base.py",
line 23, in <module>
from sphinx.builders.html import BuildInfo, StandaloneHTMLBuilder
File
"/home/luc/virtualenvs/py3/lib/python3.6/site-packages/sphinx/builders/html/__init__.py",
line 1288, in <module>
import sphinxcontrib.serializinghtml # NOQA
File
"/home/luc/virtualenvs/py3/lib/python3.6/site-packages/sphinxcontrib/serializinghtml/__init__.py",
line 16, in <module>
from sphinx.deprecation import RemovedInSphinx40Warning,
deprecated_alias
ImportError: cannot import name 'RemovedInSphinx40Warning'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File
"/home/luc/virtualenvs/py3/lib/python3.6/site-packages/sphinx/cmd/build.py",
line 279, in build_main
args.tags, args.verbosity, args.jobs, args.keep_going)
File
"/home/luc/virtualenvs/py3/lib/python3.6/site-packages/sphinx/application.py",
line 233, in __init__
self.setup_extension(extension)
File
"/home/luc/virtualenvs/py3/lib/python3.6/site-packages/sphinx/application.py",
line 393, in setup_extension
self.registry.load_extension(self, extname)
File
"/home/luc/virtualenvs/py3/lib/python3.6/site-packages/sphinx/registry.py",
line 433, in load_extension
err) from err
sphinx.errors.ExtensionError: Could not import extension
sphinx.builders.epub3 (exception: cannot import name
'RemovedInSphinx40Warning')
Extension error:
Could not import extension sphinx.builders.epub3 (exception: cannot
import name 'RemovedInSphinx40Warning')
C
On 11.07.21 20:29, Komiya Takeshi wrote:
Hi all,
Today, we released Sphinx-4.1.0. It contains many improvements and
bug fixes.
For more detail, please check the CHANGES file:
https://github.com/sphinx-doc/sphinx/blob/4.1.x/CHANGES
Enjoy documentation!
Thanks,
Takeshi KOMIYA
--
You received this message because you are subscribed to the Google Groups
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/sphinx-users/scibmk%24uhj%241%40ciao.gmane.io.