#2817 Error value definition of sphinx version
Closed: fixed Opened by sin.

We got an error during check version configuration of python module sphinx with symbols (where version looks like "v1.4a0+"):


...
[  1%] Building Python Client Library HTML documentation
cd /usr/src/RPM/BUILD/pki-core-10.4.8/base/common/python && /usr/bin/sphinx-build -b html -c /usr/src/RPM/BUILD/pki-core-10.4.8/base/common/python -w /usr/src/RPM/BUILD/pki-core-10.4.8/build/base/common/python/python-client-lib-html.log -a -W /usr/src/RPM/BUILD/pki-core-10.4.8/base/common/python /usr/src/RPM/BUILD/pki-core-10.4.8/build/base/common/python/html
Running Sphinx v1.4a0+
making output directory...
Exception occurred:
  File "conf.py", line 25, in 
    SPHINX_VERSION = tuple(int(v) for v in sphinx.version.split('.')[:2])
ValueError: invalid literal for int() with base 10: '4a0'
The full traceback has been saved in /usr/src/tmp/sphinx-err-XTilaQ.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
A bug report can be filed in the tracker at . Thanks!
make[2]: * [base/common/python/CMakeFiles/dogtag_python_client_man_docs] Error 1
make[2]: Leaving directory `/usr/src/RPM/BUILD/pki-core-10.4.8/build'
make[1]: * [base/common/python/CMakeFiles/dogtag_python_client_man_docs.dir/all] Error 2
make[1]: * Waiting for unfinished jobs....
Running Sphinx v1.4a0+
making output directory...
Exception occurred:
  File "conf.py", line 25, in 
    SPHINX_VERSION = tuple(int(v) for v in sphinx.__version__.split('.')[:2])
ValueError: invalid literal for int() with base 10: '4a0'
The full traceback has been saved in /usr/src/tmp/sphinx-err-cb94WG.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
A bug report can be filed in the tracker at . Thanks!
make[2]: * [base/common/python/CMakeFiles/dogtag_python_client_docs] Error 1
make[2]: Leaving directory `/usr/src/RPM/BUILD/pki-core-10.4.8/build'
make[1]: * [base/common/python/CMakeFiles/dogtag_python_client_docs.dir/all] Error 2
make[2]: Leaving directory `/usr/src/RPM/BUILD/pki-core-10.4.8/build'
[  1%] Built target symkey-classes
make[2]: Leaving directory `/usr/src/RPM/BUILD/pki-core-10.4.8/build'
[  1%] Built target pki-test-classes
make[1]: Leaving directory `/usr/src/RPM/BUILD/pki-core-10.4.8/build'

Applied patch resolve it with StrictVersion from distutils.


Metadata Update from @mharmsen:
- Custom field component adjusted to None
- Custom field feature adjusted to None
- Custom field origin adjusted to None
- Custom field proposedmilestone adjusted to None
- Custom field proposedpriority adjusted to None
- Custom field reviewer adjusted to None
- Custom field type adjusted to None
- Custom field version adjusted to None
- Issue set to the milestone: 0.0 NEEDS_TRIAGE

Metadata Update from @vakwetu:
- Issue assigned to mharmsen
- Issue priority set to: critical
- Issue set to the milestone: 10.5 (was: 0.0 NEEDS_TRIAGE)

mharmsen checked-in the following:

commit f735eb46f6be6dbe2c4e1bab5a72cb2661cc731b
Author: Stanislav Levin slev@altlinux.org
Date: Tue Oct 31 11:21:01 2017 -0600

Fix version compare for sphinx python module
Change-Id: I74c7a65cd9a10f3f9b3e032ebd1f6c2c0b50979b

Metadata Update from @mharmsen:
- Issue close_status updated to: fixed
- Issue set to the milestone: 10.5.1 (was: 10.5)
- Issue status updated to: Closed (was: Open)

Metadata Update from @mharmsen:
- Custom field fixedinversion adjusted to pki-core-10.5.1-1.fc27

Dogtag PKI is moving from Pagure issues to GitHub issues. This means that existing or new
issues will be reported and tracked through Dogtag PKI's GitHub Issue tracker.

This issue has been cloned to GitHub and is available here:
https://github.com/dogtagpki/pki/issues/2937

If you want to receive further updates on the issue, please navigate to the
GitHub issue and click on Subscribe button.

Thank you for understanding, and we apologize for any inconvenience.

Metadata