Skip to content

Pickle KafkaException #1749

@Hawool

Description

@Hawool

Description
Can't pickle KafkaException, wrong import. When i use celery, and celery use pickle to serialization, i get this error:
''PicklingError("Can't pickle <class 'cimpl.KafkaException'>: import of module 'cimpl' failed")''

How to reproduce

import pickle
import confluent_kafka
e = confluent_kafka.KafkaException()
pickle.dumps(e)

Result:
_pickle.PicklingError: Can't pickle <class 'cimpl.KafkaException'>: import of module 'cimpl' failed

Also i tried with confluent_kafka.cimpl.KafkaException() and confluent_kafka.error.KafkaException(), and got the same result.

Checklist

  • confluent-kafka-python and librdkafka version ('2.3.0', 33751040):
  • Operating system: ios

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy