<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
You need to add the following to define _.<br>
from django.utils.translation import ugettext as _<br>
<br>
<div class="moz-cite-prefix">(2013/02/16 2:22), Kuang-Ching Wang
wrote:<br>
</div>
<blockquote
cite="mid:F7E1B82D-07CF-42B8-BEC5-F5AEF578DFCF@bigswitch.com"
type="cite">Hi,
<div><br>
</div>
<div>I am seeing the following errors when Jenkins is testing my
code. The code runs fine locally, so I suppose is some
dependency issue when done in Jenkins. My code has form fields
defined with label _("Name") ...</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>……</div>
<div>
<pre style="color: rgb(0, 0, 0); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; ">2013-02-15 04:47:56.458 | File "/home/jenkins/workspace/gate-horizon-python26/openstack_dashboard/dashboards/project/loadbalancers/workflows.py", line 30, in <module>
2013-02-15 04:47:56.458 | class AddPoolAction(workflows.Action):
2013-02-15 04:47:56.459 | File "/home/jenkins/workspace/gate-horizon-python26/openstack_dashboard/dashboards/project/loadbalancers/workflows.py", line 31, in AddPoolAction
2013-02-15 04:47:56.459 | name = forms.CharField(max_length=80, label=_("Name"))
2013-02-15 04:47:56.459 | NameError: name '_' is not defined
2013-02-15 04:47:56.665 | [31mE[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[31mE[0m[31mE[0m[31mE[0m[31mE[0m[31mE[0m[31mE[0m[31mE[0m[31mE[0m[31mE[0m[31mE[0m[31mE[0m[31mE[0m[31mE[0m[31mE[0m[31mE[0m[31mE[0m[31mE[0m[31mE[0m[31mE[0m[31mE[0m[31mE[0m[31mE[0m[31mE[0m[31mE[0m[31mE[0m[31mE[0m[31mE[0m[31mE[0m[32m.[0mException RuntimeError: 'maximum recursion depth exceeded while calling a Python object' in <type 'exceptions.AttributeError'> ignored
2013-02-15 04:47:56.665 | Exception RuntimeError: 'maximum recursion depth exceeded while calling a Python object' in <type 'exceptions.AttributeError'> ignored
2013-02-15 04:47:56.679 | Exception RuntimeError: 'maximum recursion depth exceeded while calling a Python object' in <type 'exceptions.AttributeError'> ignored
2013-02-15 04:47:56.693 | Exception RuntimeError: 'maximum recursion depth exceeded while calling a Python object' in <type 'exceptions.AttributeError'> ignored
2013-02-15 04:47:56.694 | [32m.[0m[34mS[0m
2013-02-15 04:47:56.695 | ======================================================================
2013-02-15 04:47:56.695 | ERROR: test_extra_create_get (openstack_dashboard.dashboards.admin.flavors.extras.tests.FlavorExtrasTests)
2013-02-15 04:47:56.695 | ----------------------------------------------------------------------
2013-02-15 04:47:56.696 | Traceback (most recent call last):
2013-02-15 04:47:56.696 | File "/home/jenkins/workspace/gate-horizon-python26/openstack_dashboard/test/helpers.py", line 74, in instance_stub_out
2013-02-15 04:47:56.696 | return fn(self)
2013-02-15 04:47:56.696 | File "/home/jenkins/workspace/gate-horizon-python26/openstack_dashboard/dashboards/admin/flavors/extras/tests.py", line 54, in test_extra_create_get
2013-02-15 04:47:56.696 | args=[flavor.id])
2013-02-15 04:47:56.697 | File "/home/jenkins/workspace/gate-horizon-python26/.tox/py26/lib/python2.6/site-packages/django/core/urlresolvers.py", line 447, in reverse
2013-02-15 04:47:56.697 | app_list = resolver.app_dict[ns]
2013-02-15 04:47:56.697 | File "/home/jenkins/workspace/gate-horizon-python26/.tox/py26/lib/python2.6/site-packages/django/core/urlresolvers.py", line 290, in app_dict
2013-02-15 04:47:56.697 | self._populate()
2013-02-15 04:47:56.697 | File "/home/jenkins/workspace/gate-horizon-python26/.tox/py26/lib/python2.6/site-packages/django/core/urlresolvers.py", line 242, in _populate
2013-02-15 04:47:56.698 | for pattern in reversed(self.url_patterns):
2013-02-15 04:47:56.698 | File "/home/jenkins/workspace/gate-horizon-python26/.tox/py26/lib/python2.6/site-packages/django/core/urlresolvers.py", line 328, in url_patterns
2013-02-15 04:47:56.698 | patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
2013-02-15 04:47:56.698 | File "/home/jenkins/workspace/gate-horizon-python26/.tox/py26/lib/python2.6/site-packages/django/core/urlresolvers.py", line 323, in urlconf_module
2013-02-15 04:47:56.698 | self._urlconf_module = import_module(self.urlconf_name)
2013-02-15 04:47:56.699 | File "/home/jenkins/workspace/gate-horizon-python26/.tox/py26/lib/python2.6/site-packages/django/utils/importlib.py", line 35, in import_module
2013-02-15 04:47:56.699 | __import__(name)
2013-02-15 04:47:56.699 | File "/home/jenkins/workspace/gate-horizon-python26/openstack_dashboard/urls.py", line 36, in <module>
2013-02-15 04:47:56.699 | url(r'', include(horizon.urls))
2013-02-15 04:47:56.700 | File "/home/jenkins/workspace/gate-horizon-python26/.tox/py26/lib/python2.6/site-packages/django/conf/urls/__init__.py", line 25, in include
2013-02-15 04:47:56.700 | patterns = getattr(urlconf_module, 'urlpatterns', urlconf_module)
2013-02-15 04:47:56.700 | File "/home/jenkins/workspace/gate-horizon-python26/.tox/py26/lib/python2.6/site-packages/django/utils/functional.py", line 184, in inner
2013-02-15 04:47:56.700 | self._setup()
2013-02-15 04:47:56.701 | File "/home/jenkins/workspace/gate-horizon-python26/.tox/py26/lib/python2.6/site-packages/django/utils/functional.py", line 248, in _setup
2013-02-15 04:47:56.701 | self._wrapped = self._setupfunc()
2013-02-15 04:47:56.701 | File "/home/jenkins/workspace/gate-horizon-python26/horizon/base.py", line 715, in url_patterns
2013-02-15 04:47:56.701 | return self._urls()[0]
2013-02-15 04:47:56.701 | File "/home/jenkins/workspace/gate-horizon-python26/horizon/base.py", line 746, in _urls
2013-02-15 04:47:56.702 | url(r'^%s/' % dash.slug, include(dash._decorated_urls)))
2013-02-15 04:47:56.702 | File "/home/jenkins/workspace/gate-horizon-python26/horizon/base.py", line 456, in _decorated_urls
2013-02-15 04:47:56.702 | url(r'^%s/' % panel.slug, include(panel._decorated_urls)))
2013-02-15 04:47:56.702 | File "/home/jenkins/workspace/gate-horizon-python26/horizon/base.py", line 230, in _decorated_urls
2013-02-15 04:47:56.702 | urlpatterns = self._get_default_urlpatterns()
2013-02-15 04:47:56.702 | File "/home/jenkins/workspace/gate-horizon-python26/horizon/base.py", line 83, in _get_default_urlpatterns
2013-02-15 04:47:56.703 | urls_mod = import_module('.urls', package_string)
2013-02-15 04:47:56.703 | File "/home/jenkins/workspace/gate-horizon-python26/.tox/py26/lib/python2.6/site-packages/django/utils/importlib.py", line 35, in import_module
2013-02-15 04:47:56.703 | __import__(name)
2013-02-15 04:47:56.703 | File "/home/jenkins/workspace/gate-horizon-python26/openstack_dashboard/dashboards/project/loadbalancers/urls.py", line 19, in <module>
2013-02-15 04:47:56.703 | from .views import IndexView
2013-02-15 04:47:56.704 | File "/home/jenkins/workspace/gate-horizon-python26/openstack_dashboard/dashboards/project/loadbalancers/views.py", line 29, in <module>
2013-02-15 04:47:56.704 | from .workflows import AddPool, AddMember, AddMonitor, AddVip
2013-02-15 04:47:56.704 | File "/home/jenkins/workspace/gate-horizon-python26/openstack_dashboard/dashboards/project/loadbalancers/workflows.py", line 30, in <module>
2013-02-15 04:47:56.704 | class AddPoolAction(workflows.Action):
2013-02-15 04:47:56.704 | File "/home/jenkins/workspace/gate-horizon-python26/openstack_dashboard/dashboards/project/loadbalancers/workflows.py", line 31, in AddPoolAction
2013-02-15 04:47:56.705 | name = forms.CharField(max_length=80, label=_("Name"))
2013-02-15 04:47:56.705 | NameError: name '_' is not defined
</pre>
</div>
<div><br>
</div>
<div><br>
<div apple-content-edited="true">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space;
-webkit-line-break: after-white-space; "><span
class="Apple-style-span" style="border-collapse: separate;
color: rgb(0, 0, 0); font-family: Helvetica; font-style:
normal; font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: normal; orphans: 2;
text-align: -webkit-auto; text-indent: 0px;
text-transform: none; white-space: normal; widows: 2;
word-spacing: 0px; -webkit-border-horizontal-spacing: 0px;
-webkit-border-vertical-spacing: 0px;
-webkit-text-decorations-in-effect: none;
-webkit-text-size-adjust: auto; -webkit-text-stroke-width:
0px; font-size: medium; ">
<div style="word-wrap: break-word; -webkit-nbsp-mode:
space; -webkit-line-break: after-white-space; "><span
class="Apple-style-span" style="border-collapse:
separate; color: rgb(0, 0, 0); font-family: Helvetica;
font-style: normal; font-variant: normal; font-weight:
normal; letter-spacing: normal; line-height: normal;
orphans: 2; text-align: -webkit-auto; text-indent:
0px; text-transform: none; white-space: normal;
widows: 2; word-spacing: 0px;
-webkit-border-horizontal-spacing: 0px;
-webkit-border-vertical-spacing: 0px;
-webkit-text-decorations-in-effect: none;
-webkit-text-size-adjust: auto;
-webkit-text-stroke-width: 0px; font-size: medium; ">
<div style="word-wrap: break-word; -webkit-nbsp-mode:
space; -webkit-line-break: after-white-space; "><span
class="Apple-style-span" style="border-collapse:
separate; color: rgb(0, 0, 0); font-family:
Helvetica; font-style: normal; font-variant:
normal; font-weight: normal; letter-spacing:
normal; line-height: normal; orphans: 2;
text-align: -webkit-auto; text-indent: 0px;
text-transform: none; white-space: normal; widows:
2; word-spacing: 0px;
-webkit-border-horizontal-spacing: 0px;
-webkit-border-vertical-spacing: 0px;
-webkit-text-decorations-in-effect: none;
-webkit-text-size-adjust: auto;
-webkit-text-stroke-width: 0px; font-size: medium;
">
<div style="word-wrap: break-word;
-webkit-nbsp-mode: space; -webkit-line-break:
after-white-space; ">
<div>
<div>--</div>
<div>Kuang-Ching (KC) Wang</div>
<div>Member of Technical Staff -- Big Switch
Networks -- <a moz-do-not-send="true"
href="http://www.bigswitch.com/"
target="_blank">http://www.bigswitch.com/</a></div>
</div>
<div><br>
</div>
</div>
</span><br class="Apple-interchange-newline">
</div>
</span><br class="Apple-interchange-newline">
</div>
</span><br class="Apple-interchange-newline">
</div>
<br class="Apple-interchange-newline">
<br class="Apple-interchange-newline">
</div>
<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
OpenStack-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a>
<a class="moz-txt-link-freetext" href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a>
</pre>
</blockquote>
<br>
</body>
</html>