Hi Ken.

Thanks for your answer.
I installed it from standard 16.04 repo.
I have now added the Qpid PPA, but it seems to only contain a 
"python-qpid-proton" package, but no "python3-qpid-proton":

$ apt-cache showpkg python-qpid-proton
Package: python-qpid-proton 
Versions:
 0.17.0-1xenial+qpid1 
(/var/lib/apt/lists/ppa.launchpad.net_qpid_released_ubuntu_dists_xenial_main_binary-amd64_Packages)
[...]
0.10-2 
(/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_xenial_universe_binary-amd64_Packages)

$ apt-cache showpkg python3-qpid-proton
Package: python3-qpid-proton
Versions:
0.10-2 
(/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_xenial_universe_binary-amd64_Packages)
 (/var/lib/dpkg/status)

The Python3  v0.10-2 package is from the official repo and, at least for me, 
does not contain SSL:
$ python3
Python 3.5.2 (default, Nov 17 2016, 17:05:23)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import proton
>>> proton.SSL.present()
False
>>>

Can you please check from which repo you got the python3-qpid-proton package 
with SSL?

Thanks,
p.

-----Original Message-----
From: Ken Giusti [mailto:[email protected]] 
Sent: Donnerstag, 14. September 2017 16:10
To: users <[email protected]>
Subject: Re: Proton bindings for python3

Hi Philipp,



On Thu, Sep 14, 2017 at 9:16 AM, Philipp Eib <[email protected]> wrote:
> Hi,
>
> what do I need to set to build the proton bindings for python3 instead 
> of the default python2?
>
>
>
> Background:
>
> I need Proton with SSL support. Unfortunately, the python3-qpid-proton 
> package for Ubuntu is not built with SSL support => I get an error
> "SSLUnavailable: amqps: SSL libraries not found".
>

Hrm... what version of the python3-qpid-proton package did you
install?   Did you install it from the Qpid released PPA?

I'm on 16.04, have added the Qpid PPA (sudo add-apt-repository
ppa:qpid/released) and installed python3-qpid-proton version 0.10-2 via apt-get.
Looks like it's dependent on libssl.  And importing the proton module in 
python3 shows that SSL support is present:

kgiusti@Ubuntu16:~$ python3
Python 3.5.2 (default, Nov 17 2016, 17:05:23) [GCC 5.4.0 20160609] on linux 
Type "help", "copyright", "credits" or "license" for more information.
>>> import proton
>>> proton.SSL.present()
True
>>>



> Therefore I have built proton myself. Only problem: the python2 
> interpreter is used by default.
>
> Stupidly using the generated python2 .so in python3 results in an
> "ImportError: dynamic module does not define module export function 
> (PyInit__cproton)".
>
>
>
> Thanks,
>
> p.
>



--
-K

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected] For additional 
commands, e-mail: [email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to