AttributeError: 'module' object has no attribute 'DEFINE_bool'

Asked by Jean-Pierre Dion

Running nova-* (nova-compute, nova-scheduler...) I get this error :
AttributeError: 'module' object has no attribute 'DEFINE_bool'

Version used : 2011.1~bzr397-0ubuntu0ppa1~maverick1

What is missing ?

Thank you.

jp.dion

Question information

Language:
English Edit question
Status:
Solved
For:
OpenStack Compute (nova) Edit question
Assignee:
No assignee Edit question
Solved by:
Jean-Pierre Dion
Solved:
Last query:
Last reply:
Revision history for this message
Armando Migliaccio (armando-migliaccio) said :
#1

DEFINE_bool is available from gflags.

Could you describe how you installed Nova and post logs?

Thanks,
Armando

Revision history for this message
Jean-Pierre Dion (jean-pierre-dion) said :
#2

I have python-gflags 1.4-1

I installed nova with :
bzr branch lp:nova

Thanks,
Jean-Pierre

Revision history for this message
Jay Pipes (jaypipes) said :
#3

In the python interpreter, if you do:

import gflags

What happens?

Revision history for this message
Jean-Pierre Dion (jean-pierre-dion) said :
#4

I was using python 2.7, now with python 2.6 it works.
Thanks,
jean-pierre