You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@qpid.apache.org by zhaogxd <zh...@gmail.com> on 2017/04/22 06:52:14 UTC
Re: [Python] python-qpid-proton 0.17.0 packages
Hi Ken,
When I tried to install this package by running 'pip install
python-qpid-proton', the installation failed with following error:
error: command
'C:\\Users\\guang.zhao\\AppData\\Local\\Programs\\Common\\Microsoft\\Visual
C++ for Python\\9.0\\VC\\Bin\\cl.exe' failed with exit status 2
Did I miss anything?
Thanks!
Guang
--
View this message in context: http://qpid.2158936.n2.nabble.com/Python-python-qpid-proton-0-17-0-packages-tp7659021p7662451.html
Sent from the Apache Qpid users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org
Re: [Python] python-qpid-proton 0.17.0 packages
Posted by Ken Giusti <kg...@redhat.com>.
----- Original Message -----
> From: "zhaogxd" <zh...@gmail.com>
> To: users@qpid.apache.org
> Sent: Monday, May 1, 2017 7:22:50 PM
> Subject: Re: [Python] python-qpid-proton 0.17.0 packages
>
> Hi Kent,
>
> Glad to know that those are optional dependencies.
>
> By the way, do you know how to make a 64bit build of proton for Python?
>
In the case of a linux build, the pip install build phase will auto-magically use the same arch (32 or 64 bit) as the python executable and libs found in your path.
Windows.... hmmm - I honestly don't know :I My windows dev VM is only 32bit. I suspect the arch is determined by the the arch of the compiler that Cmake finds, but that's just a guess.
Maybe others with more experience with the windows build can weigh in here with some advice....
-K
> Thanks,
>
> Guang
>
>
>
> --
> View this message in context:
> http://qpid.2158936.n2.nabble.com/Python-python-qpid-proton-0-17-0-packages-tp7659021p7662730.html
> Sent from the Apache Qpid users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
> For additional commands, e-mail: users-help@qpid.apache.org
>
>
--
-K
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org
Re: [Python] python-qpid-proton 0.17.0 packages
Posted by zhaogxd <zh...@gmail.com>.
Hi Kent,
Glad to know that those are optional dependencies.
By the way, do you know how to make a 64bit build of proton for Python?
Thanks,
Guang
--
View this message in context: http://qpid.2158936.n2.nabble.com/Python-python-qpid-proton-0-17-0-packages-tp7659021p7662730.html
Sent from the Apache Qpid users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org
Re: [Python] python-qpid-proton 0.17.0 packages
Posted by Ken Giusti <kg...@redhat.com>.
Hi Guang,
No, not all - you've got what is necessary for building the python extension.
However - if you need SSL encryption or SASL authentication over proton you'll want to install lines 18 and/or 21. But those are optional features and are not required for the basic functionality.
Good work!
-K
----- Original Message -----
> From: "zhaogxd" <zh...@gmail.com>
> To: users@qpid.apache.org
> Sent: Monday, May 1, 2017 3:44:40 PM
> Subject: Re: [Python] python-qpid-proton 0.17.0 packages
>
> Hi Kent,
>
> This is great!
>
> I was able to build and install the proton package successfully on Windows 7
> based on your instructions.
>
> For Linux, I was able to install this package successfully on Centos 7 by
> executing the 'pip install python-qpid-proton' after the execution of line
> 15, 24 and 25 listed below. I am wondering if all dependencies listed from
> the installation document are needed?
>
> 14 # required dependencies
> 15 $ yum install gcc cmake libuuid-devel
> 16
> 17 # dependencies needed for ssl support
> 18 $ yum install openssl-devel
> 19
> 20 # dependencies needed for Cyrus SASL support
> 21 $ yum install cyrus-sasl-devel
> 22
> 23 # dependencies needed for bindings
> 24 $ yum install swig # Required for all bindings
> 25 $ yum install python-devel # Python
> 26 $ yum install ruby-devel rubygem-rspec rubygem-simplecov # Ruby
> 27 $ yum install pphp-devel # PHP
> 28 $ yum install perl-devel # Perl
> 29
> 30 # dependencies needed for python docs
> 31 $ yum install epydoc
>
> Thanks again!
>
> Guang
>
>
>
>
> --
> View this message in context:
> http://qpid.2158936.n2.nabble.com/Python-python-qpid-proton-0-17-0-packages-tp7659021p7662722.html
> Sent from the Apache Qpid users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
> For additional commands, e-mail: users-help@qpid.apache.org
>
>
--
-K
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org
Re: [Python] python-qpid-proton 0.17.0 packages
Posted by zhaogxd <zh...@gmail.com>.
Hi Kent,
This is great!
I was able to build and install the proton package successfully on Windows 7
based on your instructions.
For Linux, I was able to install this package successfully on Centos 7 by
executing the 'pip install python-qpid-proton' after the execution of line
15, 24 and 25 listed below. I am wondering if all dependencies listed from
the installation document are needed?
14 # required dependencies
15 $ yum install gcc cmake libuuid-devel
16
17 # dependencies needed for ssl support
18 $ yum install openssl-devel
19
20 # dependencies needed for Cyrus SASL support
21 $ yum install cyrus-sasl-devel
22
23 # dependencies needed for bindings
24 $ yum install swig # Required for all bindings
25 $ yum install python-devel # Python
26 $ yum install ruby-devel rubygem-rspec rubygem-simplecov # Ruby
27 $ yum install pphp-devel # PHP
28 $ yum install perl-devel # Perl
29
30 # dependencies needed for python docs
31 $ yum install epydoc
Thanks again!
Guang
--
View this message in context: http://qpid.2158936.n2.nabble.com/Python-python-qpid-proton-0-17-0-packages-tp7659021p7662722.html
Sent from the Apache Qpid users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org
Re: [Python] python-qpid-proton 0.17.0 packages
Posted by Ken Giusti <kg...@redhat.com>.
Hi Guang,
Sorry I was away for a few days.
The 'good' news is that you didn't do anything wrong...
... the 'bad' news is that the proton packages do not build the C extension correctly under windows.
I've opened a couple of bugs to track this issue:
https://issues.apache.org/jira/browse/PROTON-1467
https://issues.apache.org/jira/browse/PROTON-1468
As a work-around - you can pull down the qpid-proton sources and build/install them along with the python modules using the command line. See http://qpid.apache.org/releases/qpid-proton-0.17.0
Once you unpack the tar file, see the INSTALL.md file for directions on how to build & install on windows. I highly recommend you set the -DSYSINSTALL_PYTHON=ON (see the INSTALL.md file for details).
I've built/installed the python modules on my Windows 10 box using the latest Python interpreter (3.6.1), cmake v3.8.0, and swig v2.0.9.
I used the following cmake commands (again see INSTALL.md):
cmake -DBUILD_PERL=no -DSYSINSTALL_PYTHON=ON ..
cmake --build . --config RelWithDebInfo --target install
-K
----- Original Message -----
> From: "zhaogxd" <zh...@gmail.com>
> To: users@qpid.apache.org
> Sent: Saturday, April 22, 2017 2:52:14 AM
> Subject: Re: [Python] python-qpid-proton 0.17.0 packages
>
> Hi Ken,
>
> When I tried to install this package by running 'pip install
> python-qpid-proton', the installation failed with following error:
> error: command
> 'C:\\Users\\guang.zhao\\AppData\\Local\\Programs\\Common\\Microsoft\\Visual
> C++ for Python\\9.0\\VC\\Bin\\cl.exe' failed with exit status 2
>
> Did I miss anything?
>
> Thanks!
>
> Guang
>
>
>
> --
> View this message in context:
> http://qpid.2158936.n2.nabble.com/Python-python-qpid-proton-0-17-0-packages-tp7659021p7662451.html
> Sent from the Apache Qpid users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
> For additional commands, e-mail: users-help@qpid.apache.org
>
>
--
-K
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org