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. Probably you may not need sudo pip 
which I could have messed up originally with my python install from brew.
   ```
   brew install libpulsar
   sudo pip install -U --ignore-installed six
   sudo pip install pulsar-client==2.4.1.post1
   ```
   I also did try to uninstall 2.4.1.post1 and install pulsar-client=2.4.1 too. 
It seems not to make any difference. I speculate it all depends whether 
`_pulsar.so` can be accessible by python. 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

Reply via email to