# Examples for python3 client on raspberry pi connecting to Confluent Cloud

**URL:** <https://forum.confluent.io/t/examples-for-python3-client-on-raspberry-pi-connecting-to-confluent-cloud/984>\
**Category:** Non-Java Clients\
**Created:** [22 February 2021 15:20 UTC](https://forum.confluent.io/t/examples-for-python3-client-on-raspberry-pi-connecting-to-confluent-cloud/984 "2021-02-22T15:20:36Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![luis-cardozo](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.confluent.io/luis-cardozo/32/521_2.png) [@luis-cardozo](https://forum.confluent.io/u/luis-cardozo)\
**Post date:** [22 February 2021 15:20 UTC](https://forum.confluent.io/t/examples-for-python3-client-on-raspberry-pi-connecting-to-confluent-cloud/984/1 "2021-02-22T15:20:36Z")

</div>

Hi there, I’m new here and I’m trying to find examples for python3 client running in raspberry pi (raspbian) that can connect to a Kafka cluster ssl hosted in [Confluent.io](http://Confluent.io)

---

<div class="post-metadata">

**Author:** ![rmoff](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.confluent.io/rmoff/32/3_2.png) [@rmoff](https://forum.confluent.io/u/rmoff)\
**Post date:** [22 February 2021 15:25 UTC](https://forum.confluent.io/t/examples-for-python3-client-on-raspberry-pi-connecting-to-confluent-cloud/984/2 "2021-02-22T15:25:20Z")

</div>

Hi @luis-cardozo, welcome to the forum!

You can find a guide [here](https://docs.confluent.io/platform/current/tutorials/examples/clients/docs/python.html?utm_source=forum&utm_medium=organicsocial&utm_campaign=tm.devx_ch.rmoff_2021-02-22&utm_term=rmoff-devx). Let us know if you have issues with it 🙂

---

<div class="post-metadata">

**Author:** ![luis-cardozo](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.confluent.io/luis-cardozo/32/521_2.png) [@luis-cardozo](https://forum.confluent.io/u/luis-cardozo)\
**Post date:** [22 February 2021 16:18 UTC](https://forum.confluent.io/t/examples-for-python3-client-on-raspberry-pi-connecting-to-confluent-cloud/984/3 "2021-02-22T16:18:12Z")

</div>

Hi Robin, thank for your answer.

The Python client work perfect in a linux machine running on Intel architecture. But, in arm7, the process fail when I’m trying to install “pip install confluent-kafka” and the error is:

```auto
  #include <librdkafka/rdkafka.h>
            ^ ~~~~~~~~~~~~~~~~~~~~~
  compilation terminated.
  error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1

```

---

<div class="post-metadata">

**Author:** ![travis-a-hoffman](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.confluent.io/travis-a-hoffman/32/522_2.png) [@travis-a-hoffman](https://forum.confluent.io/u/travis-a-hoffman)\
**Post date:** [22 February 2021 16:58 UTC](https://forum.confluent.io/t/examples-for-python3-client-on-raspberry-pi-connecting-to-confluent-cloud/984/4 "2021-02-22T16:58:26Z")

</div>

Hey @luis-cardozo,

arm64 support has only recently been added to librdkafka (v1.6.0), so you’ll need to be sure you’ve installed the latest version of that.

> **[Release v1.6.0 · edenhill/librdkafka](https://github.com/edenhill/librdkafka/releases/tag/v1.6.0)**
>
> librdkafka v1.6.0
> librdkafka v1.6.0 is feature release:
> 
> KIP-429 Incremental rebalancing with sticky consumer group partition assignor (KIP-54) (by @mhowlett).
> KIP-480 Sticky producer partitioning ...

> **[GitHub - confluentinc/confluent-kafka-python: Confluent's Kafka Python Client](https://github.com/confluentinc/confluent-kafka-python)**
>
> Confluent's Kafka Python Client. Contribute to confluentinc/confluent-kafka-python development by creating an account on GitHub.

Best of luck!

---

<div class="post-metadata">

**Author:** ![rmoff](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.confluent.io/rmoff/32/3_2.png) [@rmoff](https://forum.confluent.io/u/rmoff)\
**Post date:** [22 February 2021 16:59 UTC](https://forum.confluent.io/t/examples-for-python3-client-on-raspberry-pi-connecting-to-confluent-cloud/984/5 "2021-02-22T16:59:13Z")

</div>

I think you’ll need to [build `librdkafka`](https://github.com/edenhill/librdkafka#build-from-source) yourself first (since v1.6 it’s supported on ARM). After that the `pip` install should work fine. [This post](https://github.com/confluentinc/confluent-kafka-python/issues/875#issuecomment-631442177) might be useful too.

_Edit: @travis-a-hoffman beat me to it 🙂_

---

<div class="post-metadata">

**Author:** ![luis-cardozo](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.confluent.io/luis-cardozo/32/521_2.png) [@luis-cardozo](https://forum.confluent.io/u/luis-cardozo)\
**Post date:** [22 February 2021 18:03 UTC](https://forum.confluent.io/t/examples-for-python3-client-on-raspberry-pi-connecting-to-confluent-cloud/984/6 "2021-02-22T18:03:23Z")

</div>

Thanks @rmoff and @travis-a-hoffman, in other integrations process, I had to compile to raspbian, but usually in Arm-32 (default). In this case, is the same for 32 bits?

---

<div class="post-metadata">

**Author:** ![travis-a-hoffman](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.confluent.io/travis-a-hoffman/32/522_2.png) [@travis-a-hoffman](https://forum.confluent.io/u/travis-a-hoffman)\
**Post date:** [22 February 2021 18:34 UTC](https://forum.confluent.io/t/examples-for-python3-client-on-raspberry-pi-connecting-to-confluent-cloud/984/7 "2021-02-22T18:34:25Z")

</div>

It should be similar, but you’re on less well charted ground! 🙂 You’ll just want to be sure you’re creating a binary that deploys to the raspbian structure and eabis.

If you’re even considering compiling it yourself you’re probably already aware there might be some 32bit vs 64bit quirks you may have to address (related to long/int sizes).

Would love to hear about your fixes/workarounds for 32bit!
