Re: [openstack-dev] [Solum] Unicode strings in Python3

2013-12-05 Thread Julien Danjou
On Wed, Dec 04 2013, Georgy Okrokvertskhov wrote: Quick summary: you can't use unicode() function and u' ' strings in Pyhton3. Not that it's advised, but you can use u' ' back again with Python 3.3. -- Julien Danjou ;; Free Software hacker ; independent consultant ;; http://julien.danjou.info

Re: [openstack-dev] [Solum] Unicode strings in Python3

2013-12-05 Thread Christopher Armstrong
On Thu, Dec 5, 2013 at 3:26 AM, Julien Danjou jul...@danjou.info wrote: On Wed, Dec 04 2013, Georgy Okrokvertskhov wrote: Quick summary: you can't use unicode() function and u' ' strings in Pyhton3. Not that it's advised, but you can use u' ' back again with Python 3.3. And this is a

Re: [openstack-dev] [Solum] Unicode strings in Python3

2013-12-05 Thread Georgy Okrokvertskhov
On Thu, Dec 5, 2013 at 8:32 AM, Christopher Armstrong chris.armstr...@rackspace.com wrote: On Thu, Dec 5, 2013 at 3:26 AM, Julien Danjou jul...@danjou.info wrote: On Wed, Dec 04 2013, Georgy Okrokvertskhov wrote: Quick summary: you can't use unicode() function and u' ' strings in Pyhton3.

Re: [openstack-dev] [Solum] Unicode strings in Python3

2013-12-05 Thread Ivan Melnikov
On 05.12.2013 20:42, Georgy Okrokvertskhov wrote: On Thu, Dec 5, 2013 at 8:32 AM, Christopher Armstrong chris.armstr...@rackspace.com wrote: On Thu, Dec 5, 2013 at 3:26 AM, Julien Danjou jul...@danjou.info wrote: On Wed, Dec 04 2013, Georgy Okrokvertskhov wrote: Quick summary: you can't

[openstack-dev] [Solum] Unicode strings in Python3

2013-12-04 Thread Georgy Okrokvertskhov
Hi, 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. Here is an exception form python3 gate: Server-side error: global name 'unicode' is not defined. Detail: 2013-12-04 Traceback (most

Re: [openstack-dev] [Solum] Unicode strings in Python3

2013-12-04 Thread Adrian Otto
Am I interpreting this to mean that WSME is calling unicode()? On Dec 4, 2013, at 1:32 PM, Georgy Okrokvertskhov gokrokvertsk...@mirantis.commailto:gokrokvertsk...@mirantis.com wrote: Hi, I am working on unit tests for Solum as a side effect of new unit tests I found that we use unicode

Re: [openstack-dev] [Solum] Unicode strings in Python3

2013-12-04 Thread Georgy Okrokvertskhov
No, This is Solum code: https://github.com/stackforge/solum/blob/master/solum/api/controllers/v1/assembly.py#L59 Thanks Georgy On Wed, Dec 4, 2013 at 1:41 PM, Adrian Otto adrian.o...@rackspace.comwrote: Am I interpreting this to mean that WSME is calling unicode()? On Dec 4, 2013, at

Re: [openstack-dev] [Solum] Unicode strings in Python3

2013-12-04 Thread Ben Nemec
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. -Ben On 2013-12-04 15:41, Adrian Otto wrote: Am I interpreting this to mean that WSME is calling unicode()? On Dec 4, 2013,

Re: [openstack-dev] [Solum] Unicode strings in Python3

2013-12-04 Thread Georgy Okrokvertskhov
I opened a bug https://bugs.launchpad.net/solum/+bug/1257929 for that issue. Ben, thank you for a quick fix proposal. Thanks Georgy On Wed, Dec 4, 2013 at 1:41 PM, Ben Nemec openst...@nemebean.com wrote: I don't think so. It looks like ./solum/api/controllers/v1/assembly.py is calling

Re: [openstack-dev] [Solum] Unicode strings in Python3

2013-12-04 Thread Adrian Otto
Gregory and Ben, Awesome, thanks!! Adrian On Dec 4, 2013, at 2:01 PM, Georgy Okrokvertskhov gokrokvertsk...@mirantis.commailto:gokrokvertsk...@mirantis.com wrote: I opened a bug https://bugs.launchpad.net/solum/+bug/1257929 for that issue. Ben, thank you for a quick fix proposal. Thanks