FYI, this is a duplicate of this bug: https://bugs.launchpad.net/bugs/885529 The fix for the bug is under review. Cheers! -jay 2011/11/8 Joseph Heck <heckj at mac.com>: > That's almost always a reference to gettext - the module used for > internationalization. In this case, it's a bug where accessing that method > isn't also getting a few lines that import gettext lined up into it. > > import gettext > gettext.install("glance", unicode=1) > > I've filed it for you as bug 887672 > (https://bugs.launchpad.net/glance/+bug/887672), but at a quick glance I'm > not sure where the appropriate fix should be placed > -joe > > On Nov 7, 2011, at 8:12 PM, DeadSun wrote: > > 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. > -- > 非淡薄无以明志,非宁静无以致远 > _______________________________________________ > Mailing list: https://launchpad.net/~openstack > Post to : openstack at lists.launchpad.net > Unsubscribe : https://launchpad.net/~openstack > More help : https://help.launchpad.net/ListHelp > > > _______________________________________________ > Mailing list: https://launchpad.net/~openstack > Post to : openstack at lists.launchpad.net > Unsubscribe : https://launchpad.net/~openstack > More help : https://help.launchpad.net/ListHelp > >