← Back to team overview

openstack team mailing list archive

dashboard running error since of "NameError: name '_' is not defined" in glance code

 

I installed openstack-dashboard and input ip in web browse. Then it show

NameError at /
name '_' is not definedRequest Method: GET
Request URL: http://192.168.1.85/
Django Version: 1.3
Exception Type: NameError
Exception Value: name '_' is not defined
Exception Location:
/usr/local/lib/python2.7/dist-packages/glance-2012.1-py2.7.egg/glance/common/exception.py
in GlanceException, line 37
Python Executable: /usr/bin/python
Python Version: 2.7.2


I found line 37
in /usr/local/lib/python2.7/dist-packages/glance-2012.1-py2.7.egg/glance/common/exception.py

message = _("xxxxxxxxx")

It seems '_' is not imported, but I don't know which module I need to
install.
-- 
非淡薄无以明志,非宁静无以致远

Follow ups