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

DeadSun mwjpiero at gmail.com
Tue Nov 8 04:12:48 UTC 2011


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.
-- 
非淡薄无以明志,非宁静无以致远
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20111108/9c0f08cf/attachment.html>


More information about the Openstack mailing list