Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pickle KafkaException #1749

Open
2 tasks
Hawool opened this issue May 16, 2024 · 0 comments
Open
2 tasks

Pickle KafkaException #1749

Hawool opened this issue May 16, 2024 · 0 comments

Comments

@Hawool
Copy link

Hawool commented May 16, 2024

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant