-
Notifications
You must be signed in to change notification settings - Fork 934
Description
Description
Cannot install confluent-kafka on docker image running Python 3.8 image. Was forced to roll back to Python 3.7
How to reproduce
Attempt to build a docker image with python:3 or python 3.8 as the base image. We used pipenv in our project. pip install confluent-kafka
will result in the same error: ERROR: ERROR: Package installation failed...
Within the stack trace: #error "confluent-kafka-python requires librdkafka v1.0.0 or later. Install the latest version of librdkafka from the Confluent repositories, see http://docs.confluent.io/current/installation.html"'
Full stack of failed package installation: https://gist.github.com/justineyster/736b6dfa384d32bf1d5333ddd3b307a8
In an attempt to mitigate, I successfully installed librdkafka with apt-get update && apt-get install librdkafka
before running the install but the failure and error message was the same.
The only thing that fixed the error was rolling our Docker image back to python:3.7
.
Checklist
Please provide the following information:
- confluent-kafka-python and librdkafka version (
confluent_kafka.version()
andconfluent_kafka.libversion()
): latest of both - Apache Kafka broker version: unsure
- Client configuration:
{...}
- Operating system:
python:3
Docker image, based on Debian - Provide client logs (with
'debug': '..'
as necessary) - Provide broker log excerpts
- Critical issue