AttributeError: 'module' object has no attribute 'version_info' ?

434 views
Skip to first unread message

sc...@altiscale.com

unread,
May 30, 2018, 2:28:48 PM5/30/18
to sphinx-dev
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






sc...@altiscale.com

unread,
May 30, 2018, 2:31:00 PM5/30/18
to sphinx-dev
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'

sc...@altiscale.com

unread,
May 30, 2018, 2:40:50 PM5/30/18
to sphinx-dev
Opened an issue on GitHub for this: https://github.com/sphinx-doc/sphinx/issues/5023

Nathan Yergler

unread,
May 30, 2018, 3:58:21 PM5/30/18
to sphin...@googlegroups.com, sc...@altiscale.com
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
Opened an issue on GitHub for this: https://github.com/sphinx-doc/sphinx/issues/5023

On Wednesday, May 30, 2018 at 11:31:00 AM UTC-7, sc...@altiscale.com wrote:
--
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.

Reply all
Reply to author
Forward
0 new messages