You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2018/06/06 17:26:00 UTC

[jira] [Commented] (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:comment-tabpanel&focusedCommentId=16503625#comment-16503625 ] 

ASF subversion and git services commented on PROTON-1854:
---------------------------------------------------------

Commit d9a74efce72e5d67d7d505b972d10dbf39951ba6 in qpid-proton's branch refs/heads/master from [~astitcher]
[ https://git-wip-us.apache.org/repos/asf?p=qpid-proton.git;h=d9a74ef ]

PROTON-1854: [Python] Missing definition of unicode in python3
- Also added a test for message properties


> [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
>             Fix For: proton-c-0.24.0
>
>
> 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