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/manage.py", line 20, in <module>
    from keystone.cmd import cli
  File "/usr/local/lib/python2.7/dist-packages/keystone/cmd/cli.py", line 29, in <module>
    from keystone.cmd import doctor
  File "/usr/local/lib/python2.7/dist-packages/keystone/cmd/doctor/__init__.py", line 13, in <module>
    from keystone.cmd.doctor import caching
  File "/usr/local/lib/python2.7/dist-packages/keystone/cmd/doctor/caching.py", line 13, in <module>
    import keystone.conf
  File "/usr/local/lib/python2.7/dist-packages/keystone/conf/__init__.py", line 22, in <module>
    from keystone.conf import assignment
  File "/usr/local/lib/python2.7/dist-packages/keystone/conf/assignment.py", line 18, in <module>
    driver = cfg.StrOpt(
NameError: name 'cfg' is not defined