0

I installed sphinx in my Centos machine, it's showing it has installed the latest sphinx version which is 4.3.0 but while running "sphinx-quickstart" or checking for "sphinx-build --version", it's showing version 1.1.3.

It's showing a version mismatch. Pls, let me know how to solve this and remove the version mismatch.

Logs-

[<...> docs]$  sphinx-build --version
Sphinx v1.1.3

[<...> docs]$  pip show sphinx
Name: Sphinx
Version: 4.3.1
Summary: Python documentation generator
Home-page: https://www.sphinx-doc.org/
Author: Georg Brandl
Author-email: georg@python.org
License: BSD
Location: </.../>.local/lib/python3.6/site-packages
Requires: alabaster, babel, docutils, imagesize, Jinja2, packaging, Pygments, requests, setuptools, snowballstemmer, sphinxcontrib-applehelp, sphinxcontrib-devhelp, sphinxcontrib-htmlhelp, sphinxcontrib-jsmath, sphinxcontrib-qthelp, sphinxcontrib-serializinghtml


[<...> docs]$ sphinx-quickstart
Welcome to the Sphinx 1.1.3 quickstart utility.

I have another Linux machine where I install sphinx earlier, it's showing the correct sphinx version and build version.

logs-

[<...> docs]$  pip show sphinx

Name: Sphinx
Version: 4.2.0
Summary: Python documentation generator
Home-page: https://www.sphinx-doc.org/
Author: Georg Brandl
Author-email: georg@python.org
License: BSD
Location: <...>/.local/lib/python3.6/site-packages
Requires: sphinxcontrib-jsmath, sphinxcontrib-htmlhelp, requests, babel, packaging, sphinxcontrib-serializinghtml, sphinxcontrib-qthelp, Jinja2, Pygments, snowballstemmer, alabaster, docutils, setuptools, sphinxcontrib-applehelp, imagesize, sphinxcontrib-devhelp
Required-by: sphinxcontrib-confluencebuilder, rinohtype, recommonmark

[<...> docs]$ sphinx-build --version
sphinx-build 4.2.0
mzjn
  • 48,958
  • 13
  • 128
  • 248
Divyank
  • 811
  • 2
  • 10
  • 26

1 Answers1

0

The issue is resolved after removing python-sphinx , the version 1.1.3 is removed and sphinx is working fine on the latest version of 4.3.1.

logs-

[<...> ~]$ sudo yum remove python-sphinx
Loaded plugins: fastestmirror
Resolving Dependencies
--> Running transaction check
---> Package python-sphinx.noarch 0:1.1.3-11.el7 will be erased
--> Finished Dependency Resolution

Dependencies Resolved

========================================================================================================================================================================
 Package                                     Arch                                 Version                                     Repository                           Size
========================================================================================================================================================================
Removing:
 python-sphinx                               noarch                               1.1.3-11.el7                                @base                               3.5 M

Transaction Summary
========================================================================================================================================================================
Remove  1 Package

Installed size: 3.5 M
Is this ok [y/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Erasing    : python-sphinx-1.1.3-11.el7.noarch                                                                                                                    1/1
  Verifying  : python-sphinx-1.1.3-11.el7.noarch                                                                                                                    1/1

Removed:
  python-sphinx.noarch 0:1.1.3-11.el7

Complete!

[<...> docs]$ sphinx-build --version
-bash: /usr/bin/sphinx-build: No such file or directory


[<...> ~]$ pip show sphinx
Name: Sphinx
Version: 4.3.1

The thread helps in solving this issue. Sphinx working on python 3 interpreter

Divyank
  • 811
  • 2
  • 10
  • 26