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

ConnectionError was depricated and removed in kafka-python 2.x #27

Open
Vasiliy-Bondarenko opened this issue Dec 1, 2020 · 1 comment

Comments

@Vasiliy-Bondarenko
Copy link

Vasiliy-Bondarenko commented Dec 1, 2020

ConnectionError,
- this does not work in kafka-python 2.x
ConnectionError was depricated and removed in kafka-python 2.x

so right now faust is failing with this trace:

Traceback (most recent call last):
  File "/usr/local/bin/faust", line 5, in <module>
    from faust.cli.faust import cli
  File "/usr/local/lib/python3.8/site-packages/faust/cli/faust.py", line 8, in <module>
    from .livecheck import livecheck
  File "/usr/local/lib/python3.8/site-packages/faust/cli/livecheck.py", line 3, in <module>
    from .worker import worker
  File "/usr/local/lib/python3.8/site-packages/faust/cli/worker.py", line 13, in <module>
    from faust.worker import Worker as FaustWorker
  File "/usr/local/lib/python3.8/site-packages/faust/worker.py", line 19, in <module>
    from aiokafka.structs import TopicPartition
  File "/usr/local/lib/python3.8/site-packages/aiokafka/__init__.py", line 4, in <module>
    from .client import AIOKafkaClient
  File "/usr/local/lib/python3.8/site-packages/aiokafka/client.py", line 10, in <module>
    import aiokafka.errors as Errors
  File "/usr/local/lib/python3.8/site-packages/aiokafka/errors.py", line 4, in <module>
    from kafka.errors import (
ImportError: cannot import name 'ConnectionError' from 'kafka.errors' (/usr/local/lib/python3.8/site-packages/kafka/errors.py)
@Rishi-jha
Copy link

PR for this fix

#29

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