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

Warnings in Python 3.10 #836

Closed
dmajda opened this issue Jun 2, 2022 · 2 comments
Closed

Warnings in Python 3.10 #836

dmajda opened this issue Jun 2, 2022 · 2 comments

Comments

@dmajda
Copy link

dmajda commented Jun 2, 2022

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):

  • aiokafka version (python -c "import aiokafka; print(aiokafka.__version__)"): 0.7.2
  • kafka-python version (python -c "import kafka; print(kafka.__version__)"): 2.0.2

Reproducible example

$ python --version
Python 3.10.4
# python -m pip install aiokafka
[...]
# 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()
/usr/local/lib/python3.10/site-packages/aiokafka/util.py:4: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
  from distutils.version import StrictVersion
<frozen importlib._bootstrap>:914: ImportWarning: _SixMetaPathImporter.find_spec() not found; falling back to find_module()
@dmajda dmajda changed the title Warning in Python 3.10 Warnings in Python 3.10 Jun 2, 2022
@ods
Copy link
Collaborator

ods commented Jun 2, 2022

It should be already fixed in master.

@ods ods closed this as completed Jun 2, 2022
@dmajda
Copy link
Author

dmajda commented Jun 2, 2022

Great, thanks!

For the record, I searched issues for a duplicate before filing this report but it didn’t occur to me to also search in PRs directly.

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