nathan-zhu commented on issue #5514: use pulsar get error in mac os URL: https://github.com/apache/pulsar/issues/5514#issuecomment-551430495 > There seems to be a lack of package boost-python3, if you try to install with source code, don't install with pip anymore. Python3 is no problem, you don't need to reinstall it. > > The following command is installed based on source code: > > ``` > git clone https://github.com/apache/pulsar > cd pulsar > git checkout branch-2.4 > brew install boost-python3 > cd pulsar-client-cpp > cmake . > make -j4 && make install > cd python > python setup.py install > # python > Python 3.7.3 (default, Mar 27 2019, 09:23:32) > [Clang 9.0.0 (clang-900.0.39.2)] on darwin > Type "help", "copyright", "credits" or "license" for more information. > >>> import pulsar > >>> dir(pulsar) > ['Authentication', 'AuthenticationAthenz', 'AuthenticationTLS', 'AuthenticationToken', 'Client', 'CompressionType', 'Consumer', 'ConsumerType', 'Context', 'Function', 'IdentitySerDe', 'InitialPosition', 'Message', 'MessageBatch', 'MessageId', 'PartitionsRoutingMode', 'PickleSerDe', 'Producer', 'Reader', 'Result', 'SerDe', '__builtins__', '__cached__', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__path__', '__spec__', '_check_type', '_check_type_or_none', '_listener_wrapper', '_pulsar', '_retype', '_schema', 'certifi', 'functions', 're', 'schema'] > >>> > ``` Thanks , tuteng. follow your step to do, currently get another error during cmake . like below: ``` -- Found Boost: /usr/local/include (found version "1.71.0") found components: python37-mt -- HAS_ZSTD: 1 -- HAS_SNAPPY: 1 -- Using Boost Python libs: /usr/local/Frameworks/Python.framework/Versions/3.7/lib/libpython3.7m.dylib;/usr/local/lib/libboost_python37-mt.dylib clang-tidy not found clang-format not found CMake Error: The following variables are used in this project, but they are set to NOTFOUND. Please set them or make sure they are set and tested correctly in the CMake files: GMOCK_INCLUDE_PATH used as include directory in directory /Users/lidongzhu/python/Pulsar/pulsar/pulsar-client-cpp used as include directory in directory /Users/lidongzhu/python/Pulsar/pulsar/pulsar-client-cpp used as include directory in directory /Users/lidongzhu/python/Pulsar/pulsar/pulsar-client-cpp used as include directory in directory /Users/lidongzhu/python/Pulsar/pulsar/pulsar-client-cpp used as include directory in directory /Users/lidongzhu/python/Pulsar/pulsar/pulsar-client-cpp ``` here is CMakeOutput.log file. [CMakeOutput.log](https://github.com/apache/pulsar/files/3823548/CMakeOutput.log)
---------------------------------------------------------------- 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: us...@infra.apache.org With regards, Apache Git Services