You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Andrew Stitcher (JIRA)" <ji...@apache.org> on 2018/06/06 15:46:00 UTC

[jira] [Assigned] (PROTON-1854) [Python binding] Using message properties under Python 3 generates NameError 'unicode'

     [ https://issues.apache.org/jira/browse/PROTON-1854?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrew Stitcher reassigned PROTON-1854:
---------------------------------------

    Assignee: Andrew Stitcher

> [Python binding] Using message properties under Python 3 generates NameError 'unicode'
> --------------------------------------------------------------------------------------
>
>                 Key: PROTON-1854
>                 URL: https://issues.apache.org/jira/browse/PROTON-1854
>             Project: Qpid Proton
>          Issue Type: Bug
>            Reporter: Kim van der Riet
>            Assignee: Andrew Stitcher
>            Priority: Major
>
> The Qpid Interop Test jms_hdrs_props test triggers this error under part C and part D of the test which include message properties. When this test runs under Python 3, these tests fail.
> {noformat}
> msg = proton.Message()
> msg.properties['key'] = value
> event.sender.send(msg){noformat}
> which produces the following error:
> {noformat}
> 01:34:49   File "/var/lib/jenkins/workspace/insta01:34:49   File "/var/lib/jenkins/workspace/install/libexec/qpid_interop_test/shims/qpid-proton-python/jms_hdrs_props_test/Sender.py", line 120, in _send_test_values 
> 01:34:49     event.sender.send(message) 
> 01:34:49   File "/var/lib/jenkins/workspace/install/lib64/proton/bindings/python3/proton/_endpoints.py", line 615, in send 
> 01:34:49     return obj.send(self, tag=tag) 
> 01:34:49   File "/var/lib/jenkins/workspace/install/lib64/proton/bindings/python3/proton/_message.py", line 416, in send 
> 01:34:49     encoded = self.encode() 
> 01:34:49   File "/var/lib/jenkins/workspace/install/lib64/proton/bindings/python3/proton/_message.py", line 399, in encode 
> 01:34:49     self._pre_encode() 
> 01:34:49   File "/var/lib/jenkins/workspace/install/lib64/proton/bindings/python3/proton/_message.py", line 137, in _pre_encode 
> 01:34:49     self._check_property_keys() 
> 01:34:49   File "/var/lib/jenkins/workspace/install/lib64/proton/bindings/python3/proton/_message.py", line 113, in _check_property_keys 
> 01:34:49     if isinstance(k, unicode): 
> 01:34:49 NameError: name 'unicode' is not defined{noformat}
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org