Discussion:
AttributeError: 'module' object has no attribute 'version_info' ?
(too old to reply)
s***@altiscale.com
2018-05-30 18:28:48 UTC
Permalink
Hi - seeing this error when running Sphinx in a Jenkins pipeline (to make
kernel docs), and ideas?

Running Sphinx v0.6.6

Exception occurred:
File "/root/rpmbuild/BUILD/kernel-4.14.44/linux-4.14.44-1.x86_64/Documentation/conf.py", line 20, in <module>
major, minor, patch = sphinx.version_info[:3]
AttributeError: 'module' object has no attribute 'version_info'
The full traceback has been saved in /tmp/sphinx-err-jwUDVQ.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.
Either send bugs to the mailing list at <http://groups.google.com/group/sphinx-dev/>,
or report them in the tracker at <http://bitbucket.org/birkenfeld/sphinx/issues/>. Thanks!
make[1]: *** [htmldocs] Error 1
make: *** [htmldocs] Error 2
--
You received this message because you are subscribed to the Google Groups "sphinx-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sphinx-dev+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
s***@altiscale.com
2018-05-30 18:31:00 UTC
Permalink
Don't have the traceback from the Jenkins pipeline but this is from a
Centos 6 Vagrant VM:

# Sphinx version: 0.6.6
# Docutils version: 0.6 release
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/sphinx/cmdline.py", line 169, in
main
warningiserror, tags)
File "/usr/lib/python2.6/site-packages/sphinx/application.py", line 94, in
__init__
self.config = Config(confdir, CONFIG_FILENAME, confoverrides, self.tags)
File "/usr/lib/python2.6/site-packages/sphinx/config.py", line 126, in
__init__
execfile(config['__file__'], config)
File
"/home/vagrant/rpmbuild/BUILD/kernel-4.14.41/linux-4.14.41-1.x86_64/Documentation/conf.py"
, line 20, in <module>
major, minor, patch = sphinx.version_info[:3]
AttributeError: 'module' object has no attribute 'version_info'
Post by s***@altiscale.com
Hi - seeing this error when running Sphinx in a Jenkins pipeline (to make
kernel docs), and ideas?
Running Sphinx v0.6.6
File "/root/rpmbuild/BUILD/kernel-4.14.44/linux-4.14.44-1.x86_64/Documentation/conf.py", line 20, in <module>
major, minor, patch = sphinx.version_info[:3]
AttributeError: 'module' object has no attribute 'version_info'
The full traceback has been saved in /tmp/sphinx-err-jwUDVQ.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.
Either send bugs to the mailing list at <http://groups.google.com/group/sphinx-dev/>,
or report them in the tracker at <http://bitbucket.org/birkenfeld/sphinx/issues/>. Thanks!
make[1]: *** [htmldocs] Error 1
make: *** [htmldocs] Error 2
--
You received this message because you are subscribed to the Google Groups "sphinx-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sphinx-dev+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
s***@altiscale.com
2018-05-30 18:40:50 UTC
Permalink
Opened an issue on GitHub for this:
https://github.com/sphinx-doc/sphinx/issues/5023
Post by s***@altiscale.com
Don't have the traceback from the Jenkins pipeline but this is from a
# Sphinx version: 0.6.6
# Docutils version: 0.6 release
File "/usr/lib/python2.6/site-packages/sphinx/cmdline.py", line 169, in
main
warningiserror, tags)
File "/usr/lib/python2.6/site-packages/sphinx/application.py", line 94,
in __init__
self.config = Config(confdir, CONFIG_FILENAME, confoverrides, self.
tags)
File "/usr/lib/python2.6/site-packages/sphinx/config.py", line 126, in
__init__
execfile(config['__file__'], config)
File
"/home/vagrant/rpmbuild/BUILD/kernel-4.14.41/linux-4.14.41-1.x86_64/Documentation/conf.py"
, line 20, in <module>
major, minor, patch = sphinx.version_info[:3]
AttributeError: 'module' object has no attribute 'version_info'
Post by s***@altiscale.com
Hi - seeing this error when running Sphinx in a Jenkins pipeline (to make
kernel docs), and ideas?
Running Sphinx v0.6.6
File "/root/rpmbuild/BUILD/kernel-4.14.44/linux-4.14.44-1.x86_64/Documentation/conf.py", line 20, in <module>
major, minor, patch = sphinx.version_info[:3]
AttributeError: 'module' object has no attribute 'version_info'
The full traceback has been saved in /tmp/sphinx-err-jwUDVQ.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.
Either send bugs to the mailing list at <http://groups.google.com/group/sphinx-dev/>,
or report them in the tracker at <http://bitbucket.org/birkenfeld/sphinx/issues/>. Thanks!
make[1]: *** [htmldocs] Error 1
make: *** [htmldocs] Error 2
--
You received this message because you are subscribed to the Google Groups "sphinx-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sphinx-dev+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Nathan Yergler
2018-05-30 19:58:14 UTC
Permalink
It looks like the kernel docs need at least Sphinx 1.3 --
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git/tree/Documentation/conf.py?h=linux-4.14.y#n31

From the output it appears you're running with Sphinx 0.6.6, which is a
pretty old release.
May 30, 2018 at 11:40 AM
https://github.com/sphinx-doc/sphinx/issues/5023
--
You received this message because you are subscribed to the Google
Groups "sphinx-dev" group.
To unsubscribe from this group and stop receiving emails from it, send
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "sphinx-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sphinx-dev+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...