Cannot import Python pulsar-client==2.4.2 on Mac Os Catalina 10.15.2
See original GitHub issueDescribe the bug
With correctly installed libpulsar
and protobuf
and pulsar-client 2.4.2 cannot import pulsar on Python 3.7.5. An attempt to import raises ImportError: dlopen(/tmp/check/.venv/lib/python3.7/site-packages/_pulsar.cpython-37m-darwin.so, 2): Library not loaded: /usr/local/opt/protobuf@2.6/lib/libprotobuf-lite.9.dylib
To Reproduce Steps to reproduce the behavior:
- Run:
# python3 -V
Python 3.7.5
# python3
Python 3.7.5 (default, Dec 12 2019, 09:41:03)
[Clang 11.0.0 (clang-1100.0.33.16)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import pulsar
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/tmp/check/.venv/lib/python3.7/site-packages/pulsar/__init__.py", line 102, in <module>
import _pulsar
ImportError: dlopen(/tmp/check/.venv/lib/python3.7/site-packages/_pulsar.cpython-37m-darwin.so, 2): Library not loaded: /usr/local/opt/protobuf@2.6/lib/libprotobuf-lite.9.dylib
Referenced from: /tmp/check/.venv/lib/python3.7/site-packages/_pulsar.cpython-37m-darwin.so
Reason: image not found
- See the error
Desktop (please complete the following information):
- OS: Catalina 10.15.2
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:8 (4 by maintainers)
Top Results From Across the Web
Catalina and Python Package Problems - Apple Developer
I'm using an admin account. If I can't install common python packages, I can't get a useable implementation of python3 on Catalina. This...
Read more >Modules are installed using pip on OSX but not found when ...
Solution. Install pip again specifying the destination of the modules that will be installed. This must be the destination for the system/default python....
Read more >MongoDB doesn't work after update to macOS Catalina 10.15
I updated to Catalina 10.15.2 from 10.14.X and the new security failed to recognize mongo as a trusted developer. Trying to run mongod...
Read more >Issue 38946: IDLE on macOS 10.15 Catalina does not open ...
I'm running Python 3.8 and Mac Os Catalina 10.15.1 When I click a .py file, it will open the shell + editor, However...
Read more >How to Fix Common Problems in macOS Catalina - MacKeeper
If you're running an outdated version of the operating system, performing a software update could resolve some issues. Currently, the latest ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@bry00 can you try install
protobuf
andzstd
?Fixed my issue with same error with pulsar-client==2.5.0 & OSX 10.13.6