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

ImportError: cannot import name 'common' from 'kafka' #2443

Closed
Jayesh-Popat opened this issue Jul 15, 2024 · 1 comment
Closed

ImportError: cannot import name 'common' from 'kafka' #2443

Jayesh-Popat opened this issue Jul 15, 2024 · 1 comment

Comments

@Jayesh-Popat
Copy link

from kafka import KafkaConsumer
from kafka import common
Traceback (most recent call last):
File "", line 1, in
ImportError: cannot import name 'common' from 'kafka' (/usr/local/lib/python3.11/dist-packages/kafka/init.py)

python version used 3.11

root@jack:~# python3.11 -m pip list | grep kafka
kafka-python-ng 2.2.2
root@jack:~#

@dpkp
Copy link
Owner

dpkp commented Feb 12, 2025

kafka.common was deprecated in version 1 and removed in version 2.

@dpkp dpkp closed this as not planned Won't fix, can't repro, duplicate, stale Feb 12, 2025
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

2 participants