Thank you for visiting the Rackspace Community
The The Community is live! Post new content or topics so our teams can assist.

Please contact your support team if you have a question or need assistance for any Rackspace products, services, or articles.

NameError: name 'cfg' is not defined

Hi i was installing open stack from source, I had to go from severl erros, due libraries/modules not available,

but now I am stuck at the below error. Please help.

root@Controller:/home/stack# keystone-manage db_sy
Traceback (most recent call last):
  File "/usr/local/bin/keystone-manage", line 6, in <module>
    from keystone.cmd.manage import main
  File "/usr/local/lib/python2.7/dist-packages/keystone/cmd/", line 20, in <module>
    from keystone.cmd import cli
  File "/usr/local/lib/python2.7/dist-packages/keystone/cmd/", line 29, in <module>
    from keystone.cmd import doctor
  File "/usr/local/lib/python2.7/dist-packages/keystone/cmd/doctor/", line 13, in <module>
    from import caching
  File "/usr/local/lib/python2.7/dist-packages/keystone/cmd/doctor/", line 13, in <module>
    import keystone.conf
  File "/usr/local/lib/python2.7/dist-packages/keystone/conf/", line 22, in <module>
    from keystone.conf import assignment
  File "/usr/local/lib/python2.7/dist-packages/keystone/conf/", line 18, in <module>
    driver = cfg.StrOpt(
NameError: name 'cfg' is not defined