ImportError: No module named sphinx.setup_command

Asked by janson

when installing nova , after I execute this order:"python2.6 setup.py build",this error occurs:
Traceback (most recent call last):
  File "setup.py", line 24, in <module>
    from sphinx.setup_command import BuildDoc
ImportError: No module named sphinx.setup_command

why? what can I do? thanks for your answers!

Question information

Language:
English Edit question
Status:
Solved
For:
OpenStack Compute (nova) Edit question
Assignee:
No assignee Edit question
Solved by:
Jay Pipes
Solved:
Last query:
Last reply:
Revision history for this message
Best Jay Pipes (jaypipes) said :
#1

Hi!

For a quick fix, just do:

sudo apt-get install python-sphinx

or whatever your operating system installation process is :)

After that, please file a bug in Nova. Nova should be using a conditional import of sphinx, like Glance does.

Cheers!
jay

Revision history for this message
janson (janson071) said :
#2

thank you for your answer!

Revision history for this message
janson (janson071) said :
#3

Thanks Jay Pipes, that solved my question.