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

PEP517

Open Alessandro-Barbieri opened this issue 3 years ago • 13 comments

Could you move the buildsystem to PEP517?

Alessandro-Barbieri avatar May 31 '22 09:05 Alessandro-Barbieri

Can you explain what problems it would solve?

edenhill avatar May 31 '22 09:05 edenhill

Because I'm packaging for gentoo overlay ::guru and now non PEP517 build are considered legacy see https://projects.gentoo.org/python/guide/distutils.html#the-pep-517-and-legacy-modes

Alessandro-Barbieri avatar May 31 '22 09:05 Alessandro-Barbieri

It is unlikely that we'll spend time migrating to PEP517 until the current build system is considered a blocker. But if you want to submit a PR we would definitely take a look and see if it is a feasible way forward.

Do note that our build and release process is a bit complex due to the multi-platform support and bundled C libraries.

edenhill avatar May 31 '22 09:05 edenhill

cross referencing with: https://github.com/confluentinc/confluent-kafka-python/issues/1403

mhowlett avatar Oct 25 '22 16:10 mhowlett

So how do we install this on a linux system if we are using python 3.11? In a dockerfile of "FROM python:3.11-slim" I cannot install "confluent-kafka" as it gives me:

""" #0 9.999 Note: This error originates from the build backend, and is likely not a problem with poetry but with confluent-kafka (2.0.2) not supporting PEP 517 builds. You can verify this by running 'pip wheel --use-pep517 "confluent-kafka (==2.0.2)"'. """

ekeric13 avatar Mar 16 '23 02:03 ekeric13

Faced same issue for my build as well - Note: This error originates from the build backend, and is likely not a problem with poetry but with confluent-kafka (1.9.2) not supporting PEP 517 builds. You can verify this by running 'pip wheel --use-pep517 "confluent-kafka (==1.9.2)"'.

RajendraP avatar Dec 05 '23 21:12 RajendraP

So how do we install this on a linux system if we are using python 3.11? In a dockerfile of "FROM python:3.11-slim" I cannot install "confluent-kafka" as it gives me:

""" #0 9.999 Note: This error originates from the build backend, and is likely not a problem with poetry but with confluent-kafka (2.0.2) not supporting PEP 517 builds. You can verify this by running 'pip wheel --use-pep517 "confluent-kafka (==2.0.2)"'. """

Is there a workaround for this issue or the only alternative is to switch to another Kafka client? Any suggestions on how to solve it? I am using confluent-kafka 2.3.0

sergeykad avatar Feb 14 '24 10:02 sergeykad

We are facing the same issue, is there any working solution how to solve this issue?

Bildschirmfoto 2024-02-14 um 11 26 29

rc-ctream avatar Feb 14 '24 10:02 rc-ctream

I have same issue when try to install with Docker python 3.12 . Any active attentions from teams for this issue ?

  at /usr/local/lib/python3.12/site-packages/poetry/installation/chef.py:164 in _prepare
      160│ 
      161│                 error = ChefBuildError("\n\n".join(message_parts))
      162│ 
      163│             if error is not None:
    → 164│                 raise error from None
      165│ 
      166│             return path
      167│ 
      168│     def _prepare_sdist(self, archive: Path, destination: Path | None = None) -> Path:
Note: This error originates from the build backend, and is likely not a problem with poetry but with confluent-kafka (2.1.1) not supporting PEP 517 builds. You can verify this by running 'pip wheel --no-cache-dir --use-pep517 "confluent-kafka (==2.1.1)"'.

cuongquach avatar Feb 21 '24 05:02 cuongquach

Hi @mhowlett @edenhill @ekeric13 @rc-ctream @RajendraP @Alessandro-Barbieri @sergeykad @cuongquach , I am getting the below error while using python3.10.14-alpine as base image , if anyone else has successfully found a turnaround or fixes then please help here it is urgent.

Error : 68.42 Note: This error originates from the build backend, and is likely not a problem with poetry but with confluent-kafka (2.3.0) not supporting PEP 517 builds. You can verify this by running 'pip wheel --no-cache-dir --use-pep517 "confluent-kafka (==2.3.0)"'.

vkroy100 avatar Apr 08 '24 10:04 vkroy100