qpid-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From George David <geo...@miamisalsa.com>
Subject Re: ***UNCHECKED*** Re: trouble connecting to Azure Service Bus from OS X
Date Wed, 31 Jan 2018 19:17:39 GMT
I didn't get any further. In the end, I just used the python docker  image
and mounted my working directory so I can test the code.

I changed it to ANONYMOUS and I ran into the same error, though to be
frank, I don't really understand the difference. Do I need to make any more
changes to test this properly? I'm still trying to read from
amqps://<policy>:<key>@<namespace>.servicebus.windows.net/
<topic>/Subscriptions/<subscription>



On Tue, Jan 30, 2018 at 7:20 PM Roddie Kieley <rkieley@gmail.com> wrote:

> Did you have any further luck after? I had suspected that if you were to
> utilize ANONYMOUS sasl instead of PLAIN that that might avoid the issue
> mentioned above, but wanted to take a look at the specific container image
> you were using to confirm what was inside that would cause it to work ok
> vs. the macports install to not.
>
> On Fri, Jan 26, 2018 at 2:20 PM, George David <george@miamisalsa.com>
> wrote:
>
> > I'm not exactly sure what you're asking. I used the official python
> 2.7.14
> > docker image and installed python-qpid-proton using pip. You can see
> what's
> > available here: https://hub.docker.com/_/python/
> > `
> >
> > On Thu, Jan 25, 2018 at 7:01 PM Roddie Kieley <rkieley@gmail.com> wrote:
> >
> > > 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 <gsalsero@gmail.com>
> > 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!
> > > >
> > >
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message