You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Ken Giusti (JIRA)" <ji...@apache.org> on 2013/05/23 16:41:21 UTC
[jira] [Resolved] (QPID-4882) Syntax (NameError) thrown by python
client when using older versions of python (<2.6)
[ https://issues.apache.org/jira/browse/QPID-4882?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ken Giusti resolved QPID-4882.
------------------------------
Resolution: Fixed
Fixed:
http://svn.apache.org/viewvc?view=revision&revision=1485741
> Syntax (NameError) thrown by python client when using older versions of python (<2.6)
> -------------------------------------------------------------------------------------
>
> Key: QPID-4882
> URL: https://issues.apache.org/jira/browse/QPID-4882
> Project: Qpid
> Issue Type: Bug
> Components: Python Client
> Affects Versions: 0.20
> Reporter: Ken Giusti
> Assignee: Ken Giusti
> Priority: Trivial
> Fix For: 0.23
>
>
> Bug discovered by Petr Matousek.
> Attempting to validate the broker using the 'ssl_trustfile' parameter results in the following crash:
> # ~/qc2_drain.py -b amqps://$(hostname):5671 "amq.direct/test" --connection-options "{ssl_certfile:/var/lib/qpidd/qpid_nss_db/client.pem, ssl_trustfile:/var/lib/qpidd/qpid_nss_db/rootca.crt}"
> Traceback (most recent call last):
> File "/root/qc2_drain.py", line 171, in ?
> conn.open()
> File "<string>", line 6, in open
> File "/usr/lib/python2.4/site-packages/qpid/messaging/endpoints.py", line 261, in open
> self.attach()
> File "<string>", line 6, in attach
> File "/usr/lib/python2.4/site-packages/qpid/messaging/endpoints.py", line 279, in attach
> self._ewait(lambda: self._transport_connected and not self._unlinked())
> File "/usr/lib/python2.4/site-packages/qpid/messaging/endpoints.py", line 214, in _ewait
> self.check_error()
> File "/usr/lib/python2.4/site-packages/qpid/messaging/endpoints.py", line 207, in check_error
> raise self.error
> qpid.messaging.exceptions.InternalError: Traceback (most recent call last):
> File "/usr/lib/python2.4/site-packages/qpid/messaging/driver.py", line 509, in dispatch
> self.connect()
> File "/usr/lib/python2.4/site-packages/qpid/messaging/driver.py", line 533, in connect
> self._transport = trans(self.connection, host, port)
> File "/usr/lib/python2.4/site-packages/qpid/messaging/transports.py", line 79, in __init__
> raise SSLError("This version of Python does not support verification of the peer's certificate.")
> NameError: global name 'SSLError' is not defined
> This is due to the fact that older python releases do not define the SSLError exception.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org