zzzming edited a comment on issue #4540: Pulsar Client has no support in Mac 10.14.5 (18F132) ? URL: https://github.com/apache/pulsar/issues/4540#issuecomment-570810024 Latest update with this line up working on MacOS 10.14.6 MacOS: 10.14.6 Python 2.7.16 Pip 19.3.1 from /Library/Python/2.7/site-packages/pip-19.3.1-py2.7.egg/pip (python 2.7) Pulsar client: 2.4.1 ======= I had to manually install these software. If you are on vanilla OS, the newer version of protobuf, version 3.11 in my case, would be installed. This is critical to align up with python client's _pulsar.so. Python client 2.4.1 and 2.4.2 require protobuf version 2, (dot version .20 and .22 respectively). Protobuf 2 is no longer brew install-able. Since 2.4.1.post1 can work with protobuf 3, these steps would work. ``` brew install libpulsar sudo pip install -U --ignore-installed six sudo pip install pulsar-client==2.4.1.post1 ``` Producer and consumer with SSL enabled with our production were tested and I just manually copied the root CA certificate in PEM format to a local file as following. ``` trust_certs='./ca-certificates.crt' client = pulsar.Client(service_url, authentication=pulsar.AuthenticationToken(token), tls_trust_certs_file_path=trust_certs) ``` It also works on python3 with this command the client and macOS and python version. MacOS: 10.14.6 pip 19.3.1 from /usr/local/lib/python3.7/site-packages/pip (python 3.7) Python 3.7.6 ``` pip3 install pulsar-client==2.4.1.post1 ``` I hope this helps.
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
