You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pulsar.apache.org by Chethan U <ch...@gmail.com> on 2019/06/15 17:57:14 UTC

Issue with Pulsar python client in Mac

Hello all,

Issues with Pulsar, I was not able to find solution to this.


I installed pulsar client using pip

Error:
```
Traceback (most recent call last):
  File "consumer.py", line 1, in <module>
    import pulsar
  File
"/Users/chethan/anaconda3/lib/python3.7/site-packages/pulsar/__init__.py",
line 99, in <module>
    import _pulsar
ImportError: dlopen(/Users/chethan/anaconda3/lib/python3.7/site-packages/_
pulsar.cpython-37m-darwin.so, 2): Library not loaded:
/usr/local/opt/python/Frameworks/Python.framework/Versions/3.7/Python
  Referenced from: /Users/chethan/anaconda3/lib/python3.7/site-packages/_
pulsar.cpython-37m-darwin.so
  Reason: image not found
```

What’s the possible solutions?

Thanks!

Re: Issue with Pulsar python client in Mac

Posted by David Kjerrumgaard <da...@streaml.io>.
Did you specify the version?

pip install pulsar-client==2.3.2

You can also try installing it from the source, as described here:
client-libraries-python
<https://pulsar.apache.org/docs/en/client-libraries-python/#installing-from-source>



On Sat, Jun 15, 2019 at 12:03 PM Chethan U <ch...@gmail.com> wrote:

> Hello all,
>
> Issues with Pulsar, I was not able to find solution to this.
>
>
> I installed pulsar client using pip
>
> Error:
> ```
> Traceback (most recent call last):
>   File "consumer.py", line 1, in <module>
>     import pulsar
>   File
> "/Users/chethan/anaconda3/lib/python3.7/site-packages/pulsar/__init__.py",
> line 99, in <module>
>     import _pulsar
> ImportError: dlopen(/Users/chethan/anaconda3/lib/python3.7/site-packages/_
> pulsar.cpython-37m-darwin.so, 2): Library not loaded:
> /usr/local/opt/python/Frameworks/Python.framework/Versions/3.7/Python
>   Referenced from: /Users/chethan/anaconda3/lib/python3.7/site-packages/_
> pulsar.cpython-37m-darwin.so
>   Reason: image not found
> ```
>
> What’s the possible solutions?
>
> Thanks!
>


-- 
Regards,

David Kjerrumgaard
Director - Solution Architecture
Streamlio
Cell: 330-437-5467