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

Use kafka-python-ng instead #10

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

daisukebe
Copy link

In a fairly fresh host, using Python 3.12, I hit the following exception when running admin.py:

  File "/home/daisuke/Downloads/redpanda-python/.env/lib/python3.12/site-packages/kafka/codec.py", line 9, in <module>
    from kafka.vendor.six.moves import range
ModuleNotFoundError: No module named 'kafka.vendor.six.moves'

Using kafka-python-ng works, as suggested in the kafka-python project, https://github.com/dpkp/kafka-python.

$ pip uninstall kafka-python
$ pip install kafka-python-ng

In a fairly fresh host, using Python 3.12, I hit the following exception when running admin.py:

```
  File "/home/daisuke/Downloads/redpanda-python/.env/lib/python3.12/site-packages/kafka/codec.py", line 9, in <module>
    from kafka.vendor.six.moves import range
ModuleNotFoundError: No module named 'kafka.vendor.six.moves'
```

Using kafka-python-ng works, as suggested in the kafka-python project, https://github.com/dpkp/kafka-python.

```
$ pip uninstall kafka-python
$ pip install kafka-python-ng
```
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

Successfully merging this pull request may close these issues.

1 participant