<div dir="ltr">I opened a bug <a href="https://bugs.launchpad.net/solum/+bug/1257929">https://bugs.launchpad.net/solum/+bug/1257929</a> for that issue.<div><br></div><div>Ben, thank you for a quick fix proposal.</div><div>
<br></div><div>Thanks</div><div>Georgy</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Dec 4, 2013 at 1:41 PM, Ben Nemec <span dir="ltr"><<a href="mailto:openstack@nemebean.com" target="_blank">openstack@nemebean.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>
<div style="font-family:Verdana,Geneva,sans-serif">
<p>I don't think so. It looks like ./solum/api/controllers/v1/assembly.py is calling unicode(). It will need to be changed to six.text_type() for Python 3 compat.</p><span class="HOEnZb"><font color="#888888">
<p>-Ben</p></font></span><div><div class="h5">
<p>On 2013-12-04 15:41, Adrian Otto wrote:</p>
<blockquote type="cite" style="padding-left:5px;border-left:#1010ff 2px solid;margin-left:5px">Am I interpreting this to mean that WSME is calling unicode()?
<div><br>
<div>
<div>On Dec 4, 2013, at 1:32 PM, Georgy Okrokvertskhov <<a href="mailto:gokrokvertskhov@mirantis.com" target="_blank">gokrokvertskhov@mirantis.com</a>></div>
<div> wrote:</div>
<br>
<blockquote type="cite" style="padding-left:5px;border-left:#1010ff 2px solid;margin-left:5px">
<div dir="ltr">Hi,
<div> </div>
<div>I am working on unit tests for Solum as a side effect of new unit tests I found that we use unicode strings in the way which is not compatible with python3.</div>
<div> </div>
<div>Here is an exception form python3 gate:</div>
<div>Server-side error: "global name 'unicode' is not defined". Detail: 2013-12-04 Traceback (most recent call last): File "/home/jenkins/workspace/gate-solum-python33/.tox/py33/lib/python3.3/site-packages/wsmeext/pecan.py"</div>
<div> result = f(self, *args, **kwargs) </div>
<div> File "./solum/api/controllers/v1/assembly.py", line 59, in get </div>
<div>raise wsme.exc.ClientSideError(unicode(error)) </div>
<div>NameError: global name 'unicode' is not defined</div>
<div> </div>
<div>Here is a documentation for python3: <a href="http://docs.python.org/3.0/whatsnew/3.0.html" target="_blank">http://docs.python.org/3.0/whatsnew/3.0.html</a></div>
<div> </div>
<div>Quick summary: you can't use unicode() function and u' ' strings in Pyhton3.</div>
<div> </div>
<div>Thanks</div>
<div>Georgy </div>
</div>
_______________________________________________<br> OpenStack-dev mailing list<br><a href="mailto:OpenStack-dev@lists.openstack.org" target="_blank">OpenStack-dev@lists.openstack.org</a><br> <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a></blockquote>
</div>
</div>
<br>
<pre>_______________________________________________
OpenStack-dev mailing list
<a href="mailto:OpenStack-dev@lists.openstack.org" target="_blank">OpenStack-dev@lists.openstack.org</a>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a>
</pre>
</blockquote>
<p> </p>
<div> </div>
</div></div></div>
<br>_______________________________________________<br>
OpenStack-dev mailing list<br>
<a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Georgy Okrokvertskhov<br>
Technical Program Manager,<br>Cloud and Infrastructure Services,<br>
Mirantis<br>
<a href="http://www.mirantis.com/" target="_blank">http://www.mirantis.com</a><br>
Tel. +1 650 963 9828<br>
Mob. +1 650 996 3284<br>
</div>