-
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 |
@csharplus, It is working. |
Is there any scheduled release for this bugfix? |
+1 for demand |
+1 |
1 similar comment
+1 |
kafka-python is tested on python 2.7, 3.4, 3.7, and pypy2.7. |
This project has been unmaintained for almost a year; as the README suggests you might have better luck using kafka-python-ng. As multiple persons have confirmed, this workaround works. (please stop adding "+1" comments; it’s useless and you’re notifying 20+ accounts for nothing each time) |
Actually, I'm working correctly with the Python 3.7 version. Greetings
El lun, 25 de nov de 2024, 8:17 a. m., Baptiste Fontaine <
***@***.***> escribió:
… This project has been unmaintained for almost a year; as the README
suggests you might have better luck using kafka-python-ng
<https://github.com/wbarnha/kafka-python-ng>. As multiple persons have
confirmed, this workaround
<#2412 (comment)>
works.
(please stop adding "+1" comments; it’s useless and you’re notifying 20+
accounts for nothing each time)
—
Reply to this email directly, view it on GitHub
<#2412 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A3ZAF2FQEN5WV54KPSJ64232CMPOTAVCNFSM6AAAAAA7GJN7L6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIOJYGAYDAMBXHA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
The issue is about Python 3.12; Python versions up to 3.11.x are fine. |
And still does not work with Python 3.13 either |
+1 for issue being present on pthon 3.12.3 |
@csharplus Thank you so much ! Working now |
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: