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 in Python 3.10 #878

Closed
igoichuk opened this issue Feb 27, 2023 · 2 comments
Closed

ImportWarning in Python 3.10 #878

igoichuk opened this issue Feb 27, 2023 · 2 comments

Comments

@igoichuk
Copy link

Describe the bug

When using aiokafka with Python 3.10 with warnings enabled, several warnings are emitted.

Expected behaviour

No warnings are emitted.

Environment (please complete the following information):
python 3.10.4, aiokafka 0.8.0, fresh conda env

❯ conda create -n blah python=3.10.4
❯ conda activate blah
❯ pip install aiokafka
...
Successfully installed aiokafka-0.8.0 async-timeout-4.0.2 kafka-python-2.0.2 packaging-23.0
❯  python -Wall -c 'import aiokafka'
<frozen importlib._bootstrap>:914: ImportWarning: _SixMetaPathImporter.find_spec() not found; falling back to find_module()
<frozen importlib._bootstrap>:914: ImportWarning: _SixMetaPathImporter.find_spec() not found; falling back to find_module()
<frozen importlib._bootstrap>:914: ImportWarning: _SixMetaPathImporter.find_spec() not found; falling back to find_module()
<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()
<frozen importlib._bootstrap>:914: ImportWarning: _SixMetaPathImporter.find_spec() not found; falling back to find_module()
<frozen importlib._bootstrap>:914: ImportWarning: _SixMetaPathImporter.find_spec() not found; falling back to find_module()
<frozen importlib._bootstrap>:914: ImportWarning: _SixMetaPathImporter.find_spec() not found; falling back to find_module()
<frozen importlib._bootstrap>:914: ImportWarning: _SixMetaPathImporter.find_spec() not found; falling back to find_module()
<frozen importlib._bootstrap>:914: ImportWarning: _SixMetaPathImporter.find_spec() not found; falling back to find_module()
<frozen importlib._bootstrap>:914: ImportWarning: _SixMetaPathImporter.find_spec() not found; falling back to find_module()
<frozen importlib._bootstrap>:914: ImportWarning: _SixMetaPathImporter.find_spec() not found; falling back to find_module()

Similar to #836

@ods
Copy link
Collaborator

ods commented Feb 28, 2023

Try python -Werror -c 'import aiokafka' to see the source of problem is in python-kafka. Here is an issue dpkp/kafka-python#2282, and even a pull request dpkp/kafka-python#2304 to fix it.

@igoichuk
Copy link
Author

thank you, but ouch it's been a year since it was raised, kafka-python is dead(

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