.. meta:: :description: The Google Analytics extension from does not work on Sphinx 1.8. When I run it, I get the following error Could not import extension sphinxcontrib.googleanalyti Fix sphinxcontrib-googleanalytics on Sphinx 1.8 =============================================== .. post:: 5, Jan, 2019 :category: Sphinx :author: me :nocomments: The Google Analytics extension from .. code-block:: python -m pip installĀ  sphinxcontrib-googleanalytics does not work on Sphinx 1.8. When I run it, I get the following error Could not import extension sphinxcontrib.googleanalytics (exception: cannot import name 'ExtensionError' from 'sphinx.application' (c:\\python37\\lib\\site-packages\\sphinx\\application.py)) Fix is to change C:\\Python37\\Lib\\site-packages\\sphinxcontrib\\googleanalytics.py Line 4 from .. code-block:: from sphinx.application import ExtensionError to .. code-block:: from sphinx.errors import ExtensionError After that I get another warning WARNING: extension 'sphinxcontrib.googleanalytics' returned an unsupported object from its setup() function; it should return None or a metadata dictionary Fix is to change the last line from .. code-block:: return app to .. code-block:: return {'version': '0.1'}