Hi, while I have not run into your specific problem I had previously run into some issues when utilizing the cyrus sasl implementation on OSX which I documented via PROTON-1695 - '[OSX] Cyrus SASL plugins do not load leading to missing mechanisms' [1]. It appears that you are utilizing the sasl plain mechanism which I did have issues with.
Looking at the python docs for running on OSX I'm not seeing the link for the dockerfile, can you point me in the right direction? Roddie --- [1] - https://issues.apache.org/jira/browse/PROTON-1695 [2] - https://docs.python.org/2/using/mac.html On Thu, Jan 25, 2018 at 1:52 PM, George David <[email protected]> wrote: > macOs High Sierra 10.13.12 > python: 2.7.14 (macports) > qpid-proton: 0.19.0 (macports) > python-qpid-proton: 0.19.0 (pipenv) > > I created two python scripts, 1 to write to a service bus topic and 1 to > read. When I try to either read or write, Here is a snippet of code I use > to send a message: > > conn = BlockingConnection(broker, allowed_mechs="PLAIN") > receiver = conn.create_receiver(entity_name) > msg = receiver.receive() > receiver.accept() > conn.close() > > I get the following error: > > Traceback (most recent call last): > File "send.py", line 30, in <module> > conn = BlockingConnection(broker, allowed_mechs="PLAIN") > File > "[redacted]/.local/share/virtualenvs/amqp-service-bus- > lvrxBNPB/lib/python2.7/site-packages/proton/utils.py", > line 226, in __init__ > msg="Opening connection") > File > "[redacted]d/.local/share/virtualenvs/amqp-service-bus- > lvrxBNPB/lib/python2.7/site-packages/proton/utils.py", > line 300, in wait > "Connection %s disconnected: %s" % (self.url, self.disconnected)) > proton.ConnectionException: Connection amqps://send:[redacted]@[namespace > redacted].servicebus.windows.net:amqps/ disconnected: > Condition('proton:io', 'getaddrinfo([namespace-redacted]. > servicebus.windows.net, amqps): nodename nor servname provided, or not > known') > > > I have tested this code successfully on my ubuntu machine and using the > official python:2.7.14 docker image running on my mac. > > > My initial attempts to use qpid proton was to install python-qpid-proton. > That failed because clang couldn't find "sys/timerfd.h". Then I found that > macports offered a qpid-proton. I installed that then installed the python > package with no issues. > > Has anyone else has run into this? > Any tips to help me debug this issue? > > Thanks! >
