Skip to content

Python 3.8 package installation fails in Docker Build #696

@justineyster

Description

@justineyster

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() and confluent_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

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