-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
"import kafka" fails with "ModuleNotFoundError: No module named 'kafka.vendor.six.moves'" under Python 3.12 #2412
Comments
This was patched in #2398 and will be resolved in the next release. I apologize for the delay. Hopefully running Please understand that I am doing everything within my means to get a release out to the public. |
Is there an idea of when the next release will be out? |
No update, sorry. 😔 |
Hi here is my contect: #import procedure: File ~\AppData\Lib\site-packages\kafka_init_.py:23 File ~\AppData\Lib\site-packages\kafka\consumer_init_.py:3 File ~\AppData\Lib\site-packages\kafka\consumer\group.py:13 File ~\AppData\Lib\site-packages\kafka\consumer\fetcher.py:19 File ~\AppData\Lib\site-packages\kafka\record_init_.py:1 File ~\AppData\Lib\site-packages\kafka\record\memory_records.py:27 File ~\AppData\Lib\site-packages\kafka\record\legacy_records.py:50 File ~\AppData\Lib\site-packages\kafka\codec.py:9 ModuleNotFoundError: No module named 'kafka.vendor.six.moves' |
Hi @wbarnha , |
I am aware of the issue. Please refer to #2412 (comment). |
Thanks for it @wbarnha , I downgraded my python version and got it rectified. |
Did we ever merge this fix in for 3.12? |
@wbarnha Thank you William for your support here. i can not downgrade python 3.11 due to a HIGH vulnerability with ecdsa pacakge. Any work around solution for this problem at the moment? |
The current workaround solution would be to replace your |
Unfortunately kafka-python seems to be having maintenance issues: dpkp/kafka-python#2431 And it cannot be installed on Python 3.12: dpkp/kafka-python#2412
Unfortunately kafka-python seems to be having maintenance issues: dpkp/kafka-python#2431 And it cannot be installed on Python 3.12: dpkp/kafka-python#2412
Can we please reopen this bug because a critical bug like this should not be closed until the fix is released. I would even pin it after reopening it, just to remind everyone about it. |
I also have the same issue |
i meet this problem in python3.12 kafka-python 2.0.2,so how to solve this problem |
It's a fair point, and since there's a demand to reopen this, I'll oblige! |
This is still not fixed, and have been open for a year now. Anyway, commenting to show additional demand. Although demand for "be able to use the library" seems self-explanatory... |
Will this fix be released in the near future? I'm using the following work-around in
|
Thank god. The fork version saved the day. |
rip |
+1 having this issue |
Hey guys, this solved it for me: |
The following code fix works for me with the current public build of
|
@csharplus , can confirm, that your workaround helped me to resolve the issue with kafka-python:2.0.2 |
I have verified this on Linux and Windows, even though the output below is from Linux:
The text was updated successfully, but these errors were encountered: