Skip to content

undefined symbol: rd_kafka_msg_partitioner_consistent #54

Closed
@rendybjunior

Description

@rendybjunior

hi all, in my machine I tried to use conlfuent kafka python like this

first, I installed confluent kafka python
sudo pip install confluent-kafka

then I tried to use it. somehow I always get this error message
>>> from confluent_kafka import Producer Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/local/lib/python2.7/dist-packages/confluent_kafka/__init__.py", line 2, in <module> from .cimpl import * ImportError: /usr/local/lib/python2.7/dist-packages/confluent_kafka/cimpl.so: undefined symbol: rd_kafka_msg_partitioner_consistent

I guess it is because of librdkafka is not there, then I do git clone and make & install. but the error still appears

I also tried to git clone confluent-kafka-python instead of installing from apt-get, but it is still error

how to solve this problem?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions