<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">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.<div><br></div><blockquote class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border: none; padding: 0px;"><div><div>import gettext</div></div><div><div>gettext.install("glance", unicode=1)</div></div></blockquote><div><div><br></div><div>I've filed it for you as bug 887672 (<a href="https://bugs.launchpad.net/glance/+bug/887672">https://bugs.launchpad.net/glance/+bug/887672</a>), but at a quick glance I'm not sure where the appropriate fix should be placed</div><div><br></div><div>-joe</div><div><div><br></div><div><br><div><div>On Nov 7, 2011, at 8:12 PM, DeadSun wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>I installed openstack-dashboard and input ip in web browse. Then it show <br clear="all"></div><div><br></div><div>NameError at /<br>name '_' is not definedRequest Method:   GET<br>Request URL:       <a href="http://192.168.1.85/">http://192.168.1.85/</a><br>
Django Version: 1.3<br>Exception Type:    NameError<br>Exception Value:     name '_' is not defined<br>Exception Location:    /usr/local/lib/python2.7/dist-packages/glance-2012.1-py2.7.egg/glance/common/exception.py in GlanceException, line 37<br>
Python Executable:      /usr/bin/python<br>Python Version:        2.7.2</div><div><br></div><div><br></div><div>I found line 37 in /usr/local/lib/python2.7/dist-packages/glance-2012.1-py2.7.egg/glance/common/exception.py<br></div><div>
<br></div><div>message = _("xxxxxxxxx")<br></div><div><br></div><div>It seems '_' is not imported, but I don't know which module I need to install.</div>-- <br>非淡薄无以明志,非宁静无以致远<br>
_______________________________________________<br>Mailing list: <a href="https://launchpad.net/~openstack">https://launchpad.net/~openstack</a><br>Post to     : <a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>Unsubscribe : <a href="https://launchpad.net/~openstack">https://launchpad.net/~openstack</a><br>More help   : <a href="https://help.launchpad.net/ListHelp">https://help.launchpad.net/ListHelp</a><br></blockquote></div><br></div></div></div></body></html>