Deprecation warnings

283 views
Skip to first unread message

Josué Andrade Gomes

unread,
Sep 20, 2023, 8:58:43 AM9/20/23
to sphinx-users
Hi,

After upgrading to 7.2.6 (Ubuntu 22.04) I started to see the warnings below:

Running Sphinx v7.2.6
/home/josue/.local/lib/python3.10/site-packages/sphinxcontrib/applehelp/__init__.py:24: RemovedInSphinx80Warning: The alias 'sphinx.util.SkipProgressMessage' is deprecated, use 'sphinx.util.display.SkipProgressMessage' instead. Check CHANGES for Sphinx API modifications.
  from sphinx.util import SkipProgressMessage, progress_message
/home/josue/.local/lib/python3.10/site-packages/sphinxcontrib/applehelp/__init__.py:24: RemovedInSphinx80Warning: The alias 'sphinx.util.progress_message' is deprecated, use 'sphinx.util.display.progress_message' instead. Check CHANGES for Sphinx API modifications.

Any idea of how to get rid of them? 

regards
josue
  from sphinx.util import SkipProgressMessage, progress_message
/home/josue/.local/lib/python3.10/site-packages/sphinxcontrib/htmlhelp/__init__.py:26: RemovedInSphinx80Warning: The alias 'sphinx.util.progress_message' is deprecated, use 'sphinx.util.display.progress_message' instead. Check CHANGES for Sphinx API modifications.
  from sphinx.util import progress_message

jdsalaro

unread,
Sep 21, 2023, 7:23:10 AM9/21/23
to sphinx-users

You don't provide much background information for us to help you, but are your sphinxcontrib-applehelp and sphinxcontrib-htmlhelp packages up-to-date? 

The applehelp issue seems to be coming from https://github.com/sphinx-doc/sphinxcontrib-applehelp/blob/master/sphinxcontrib/applehelp/__init__.py#L24 which was changed eight months ago.

What does the output of "pip show sphinxcontrib-applehelp" and "pip show sphinxcontrib-htmlhelp" say?

"pip install --force-reinstall --upgrade sphinxcontrib-applehelp sphinxcontrib-htmlhelp" should be enough to fix your problems.

I believe you might be using sphinxcontrib-applehelp==1.0.2 which would lead to these warnings.



(applehelp) jdsalaro@system:/tmp/applehelp$ pip show sphinxcontrib-applehelp
Name: sphinxcontrib-applehelp
Version: 1.0.7
Summary: sphinxcontrib-applehelp is a Sphinx extension which outputs Apple help books
Home-page:
Author:
Author-email: Georg Brandl <ge...@python.org>
License:
Requires: Sphinx
Required-by: Sphinx

(applehelp) jdsalaro@system:/tmp/applehelp$ pip show sphinxcontrib-htmlhelp
Name: sphinxcontrib-htmlhelp
Version: 2.0.4
Summary: sphinxcontrib-htmlhelp is a sphinx extension which renders HTML help files
Home-page:
Author:
Author-email: Georg Brandl <ge...@python.org>
License:
Requires: Sphinx
Required-by: Sphinx
(applehelp) jdsalaro@system:/tmp/applehelp$

Josué Andrade Gomes

unread,
Sep 21, 2023, 8:29:02 AM9/21/23
to sphinx...@googlegroups.com
Thank you. After updating those packages, the warnings are gone.




--
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 sphinx-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sphinx-users/b973286e-0f66-455e-a635-07df9fd0a392n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages