confluent-kafka-python icon indicating copy to clipboard operation
confluent-kafka-python copied to clipboard

Add aarch64 wheels support

Open tbbharaj opened this issue 2 years ago • 10 comments

Description: Wheels for confluent-kafka-python doesn't exists in pypi

Solution: This PR: #1161 addresses the issue to build and publish aarch64 wheels for confluent-kafka Successful Builds: https://travis-ci.com/github/tbbharaj/confluent-kafka-python/builds/232243754

Checklist

Please provide the following information:

  • [X] confluent-kafka-python and librdkafka version (confluent_kafka.version() and confluent_kafka.libversion()): Build tested on 1.7.0
  • [ ] Apache Kafka broker version:
  • [ ] Client configuration: {...}
  • [ ] Operating system:
  • [ ] Provide client logs (with 'debug': '..' as necessary)
  • [ ] Provide broker log excerpts
  • [ ] Critical issue

tbbharaj avatar Aug 10 '21 23:08 tbbharaj

Following up on this the issue to build arm64 wheels. There's PR open addressing this issue #1161 , hoping to get some reviews on it.

Thanks!

tbbharaj avatar Sep 22 '21 18:09 tbbharaj

Following up on this the issue to build arm64 wheels, hoping to get some reviews on PR. Thanks!

tbbharaj avatar Oct 19 '21 16:10 tbbharaj

We need to wait for the CI to verify the PR.

jliunyu avatar Feb 23 '22 01:02 jliunyu

Things just got worse with the 1.9.0 release. In our case, we're building arm64 docker images. We previously could install librdkafka using a linux package manager, but now that librdkafka 1.9.0 is required that is not easy to satisfy (without building it ourselves).

So you might then say, "well use Confluent's linux package repos". That doesn't work because they don't publish arm64 packages.

Can we please get an arm64 wheel?

jalaziz avatar Jun 24 '22 02:06 jalaziz

M1 machines are quite common nowadays and using this library is painful currently if you use the wrong machine. Any updates on getting binary wheels for aarch64?

jukeks avatar Jul 14 '22 14:07 jukeks

the wheel is available for M1 Mac but still not available for linux/arm64. I'm having some issue trying to build an image for my Raspberry Pi K3S cluster.

https://pypi.org/project/confluent-kafka/#files

any update on when aarch64 support will be available?

Or if someone can provide some pointers maybe I can contribute.

sloppycoder avatar Jan 03 '23 05:01 sloppycoder

I think this is dependant on next librdkafka release.

https://github.com/confluentinc/librdkafka/discussions/4102

ChillarAnand avatar Jan 06 '23 04:01 ChillarAnand

@sloppycoder What issue you are facing?

I am also building from source and using Linux arm64 builds. It is working fine. See this thread on building aarch64 wheels locally https://github.com/confluentinc/librdkafka/issues/3546#issuecomment-1445646185

ChillarAnand avatar Feb 25 '23 05:02 ChillarAnand

It looks like the latest release has a manylinux aarch64 wheel https://pypi.org/project/confluent-kafka/2.3.0/#files. Seems like they were added starting with 2.1.0

Relevant PR https://github.com/confluentinc/confluent-kafka-python/commit/6a78a3a52889b300ca1135be972c290ae1792f31#diff-f4c421dab68fb568a2a5f47b7851a85a409574b05f841f635bad1880b82db03b

So I think this issue is resolved?

hsheth2 avatar Dec 21 '23 23:12 hsheth2

I still having issues installing on:

bash-4.2# pip install https://files.pythonhosted.org/packages/ae/26/fc985d8bb318c9e5d1214e70507e961d121676c459abe25dd3c6548be5d1/confluent_kafka-2.3.0-cp38-cp38-manylinux_2_28_aarch64.whl
ERROR: confluent_kafka-2.3.0-cp38-cp38-manylinux_2_28_aarch64.whl is not a supported wheel on this platform.
bash-4.2# cat /etc/os-release
NAME="Amazon Linux"
VERSION="2"
ID="amzn"
ID_LIKE="centos rhel fedora"
VERSION_ID="2"
PRETTY_NAME="Amazon Linux 2"
ANSI_COLOR="0;33"
CPE_NAME="cpe:2.3:o:amazon:amazon_linux:2"
HOME_URL="https://amazonlinux.com/"
SUPPORT_END="2025-06-30"
bash-4.2# uname -m
aarch64

lvitti avatar Jan 18 '24 16:01 lvitti

arm64 wheels were added from v1.9.2 and linux arm64 wheels from v2.1.0.

Closing this issue.

pranavrth avatar Feb 27 '24 13:02 pranavrth