<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<html><body 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>
<p>-Ben</p>
<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"><!-- html ignored --><!-- head ignored --><!-- meta ignored -->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">gokrokvertskhov@mirantis.com</a>></div>
<div> wrote:</div>
<br class="Apple-interchange-newline" />
<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">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">OpenStack-dev@lists.openstack.org</a><br /> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</blockquote>
</div>
</div>
<!-- html ignored --><br />
<pre>_______________________________________________
OpenStack-dev mailing list
<a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a>
</pre>
</blockquote>
<p> </p>
<div> </div>
</body></html>