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

ImportWarning on Python 3.10 #2282

Closed
pcarn opened this issue Nov 29, 2021 · 1 comment · Fixed by #2398
Closed

ImportWarning on Python 3.10 #2282

pcarn opened this issue Nov 29, 2021 · 1 comment · Fixed by #2398

Comments

@pcarn
Copy link

pcarn commented Nov 29, 2021

When using Python 3.10, kafka-python 2.0.2, in python -Wd:

>>> from kafka import KafkaConsumer
<frozen importlib._bootstrap>:914: ImportWarning: _SixMetaPathImporter.find_spec() not found; falling back to find_module()
<frozen importlib._bootstrap>:671: ImportWarning: _SixMetaPathImporter.exec_module() not found; falling back to load_module()

Needs find_spec and exec_module here

class _SixMetaPathImporter(object):

@francipvb
Copy link

Hello,

Any solution to this?

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 a pull request may close this issue.

2 participants