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

Problem importing cimpl.

Open lewesche opened this issue 1 year ago • 0 comments

Description

When trying to build my project with pybuilder, the unittest stage of my jenkins pipeline fails with:

BUILD FAILED - PicklingError: Can't pickle <class 'cimpl.KafkaException'>: import of module 'cimpl' failed

I see this issue with any version greater than 1.6.1 (my goal is to be able to build with 1.9.2 for M1 support). I'm using the matching librdkafka version.

As far as I can tell, nothing in my codebase is directly importing cimpl.KafkaException. I haven't figured out a way to get a stack trace yet but I'll post here if I do.

Thanks!

How to reproduce

Looks like two others have had this issue, neither were resolved:

  • https://github.com/confluentinc/confluent-kafka-python/issues/553
  • https://github.com/confluentinc/confluent-kafka-python/issues/641

Checklist

Please provide the following information:

  • [x] confluent-kafka-python and librdkafka version (confluent_kafka.version() and confluent_kafka.libversion()): 1.9.2
  • [ ] Apache Kafka broker version: 3.5.2
  • [ ] Client configuration: {...}
  • [x] Operating system: alpine:3.18
  • [x] Provide client logs (with 'debug': '..' as necessary)
  • [ ] Provide broker log excerpts
  • [ ] Critical issue

lewesche avatar Jul 18 '24 22:07 lewesche