-
Notifications
You must be signed in to change notification settings - Fork 916
M1 Mac - confluent-kafka librdkafka error message when building Docker image #1405
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
it seems like the librdkafka version installed via librdkafka-dev is less than 1.9.0. does it work without installing librdkafka-dev? (i'm unsure what architecture will be required given your setup, but think there is a binary wheel that might work) |
No unfortunately not, I need to have librdkafka-dev in order for for the build to work. If I don't use librdkafka-dev then I get different errors related to how it can't find certain header files. |
I ran into exactly the same problem and for now I build from source with these few lines:
Works for me, although its a temporary fix until they update to 1.9.0 |
Thanks @pontusstjerna that finally worked for me. I have a similar issue installing it in Docker Tried to add debian/ubuntu repository:
with the following outcome:
alright, let's install kafka then:
:(
works.
https://docs.confluent.io/confluent-cli/current/install.html
Alright, I am giving up. Thanks again @pontusstjerna for the solution that worked. |
I am running into this issue as well trying to build an ubuntu based container on an M1 host. I can confirm that following the instructions to build from source results in a librdkafka-dev < 1.9.0
|
using #1439 to track this. you could consider getting the 1.9.x source from github, rather than install with a package. |
I had a similar issue: In my specific case, the confluent-kafka version needed was >= 2.0.2, hence the version in command. This worked for me:
|
@anmollp - the solution which you've shared worked for me, thanks! 👍🏼 |
Uh oh!
There was an error while loading. Please reload this page.
Description
I'm getting the below error whenever I try to pip install confluent-kafka within my Dockerfile and I build that Dockerfile using python:3.10-slim-bullseye as my base image.
error: #error "confluent-kafka-python requires librdkafka v1.9.0 or later. Install the latest version of librdkafka from the Confluent repositories, see http://docs.confluent.io/current/installation.html"
Please note that I have already installed
librdkafka-dev
as part of my Dockerfile, and this has been working fine for months until recently, but now it seems to be complaining that I don't have librdkafka and I'm not sure why.How to reproduce
Dockerfile
run
docker build - < Dockerfile
against the above Docker file and you will see the error I provided.The only way I can successfully build the image is via the following command:
docker build --platform linux/amd64 - < Dockerfile
The text was updated successfully, but these errors were encountered: