Zeezer
Zeezer

Reputation: 1533

Install python module on mac osx (qpid proton)

Im new to python programming and have some difficulties while installing modules. I have installed mysql connector for python on mac and that worked just fine. Now Im trying to install qpid proton on mac http://qpid.apache.org/proton/.

Qpid does not have an installer like mysql, so I have to install it manually. Documenation really lacks. I have searched SO but easy_install or pip like described here does not seem to work for me. What is the most compatible way to install python modules on a Mac?

"PIP install proton" only installs part of the library, as said here https://pypi.python.org/pypi/python-qpid-proton/0.8.2

How do I install this library on mac?

Upvotes: 1

Views: 1699

Answers (2)

Dmitry Tokarev
Dmitry Tokarev

Reputation: 2089

If you still care there python-qpid-proton is now on pypi: https://pypi.python.org/pypi/python-qpid-proton

So just run

pip install python-qpid-proton

On Mac you may have issues during installation to find openssl libs. Use brew to install openssl first:

brew install openssl

then brew gives a hint:

Apple has deprecated use of OpenSSL in favor of its own TLS and crypto libraries

Generally there are no consequences of this for you. If you build your
own software and it requires this formula, you'll need to add to your
build variables:

LDFLAGS:  -L/usr/local/opt/openssl/lib
CPPFLAGS: -I/usr/local/opt/openssl/include
PKG_CONFIG_PATH: /usr/local/opt/openssl/lib/pkgconfig

So just export these env vars and rerun your favorite pip install (or better to avoid havoc in future add following to your ~/.bash_profile:

export LDFLAGS="-L/usr/local/opt/openssl/lib"
export CPPFLAGS="-I/usr/local/opt/openssl/include"
export PKG_CONFIG_PATH="/usr/local/opt/openssl/lib/pkgconfig"

This worked for me like a charm!

Upvotes: 2

marzobryant90
marzobryant90

Reputation: 33

Have a look to this: http://svn.apache.org/repos/asf/qpid/branches/0.20/qpid/python/README.txt

I think that if you download this one: https://qpid.apache.org/releases/qpid-proton-0.9.1/index.html, you have only to include the file in your project and to don't install nothing. Just use it!

Upvotes: 0

Related Questions