Yelp/kafka-utils

ImportErrors - Structure of dependent kafka-python package changed

suknuk opened this issue · 2 comments

The code-structure of the python-kafka package has changed which is causing some parts of this package to import classes with the wrong path. This can be seen in util/offsets.py file which imports error classes from kafka.structs. These are however not anymore in the structus.py file, but in the errors.py file (as can be seen in this commit)

Sorry about this. I'm one of the upstream maintainers of kafka-python.

Did you get a chance to grab a full stacktrace of the exception?

I am not understanding why the imports broke because as you noted in #200 we kept a wildcard import to support legacy imports just like this. So very curious what about the python import machinery we did not understand when we made this upstream change.

Also, @88manpreet it sounds like this issue can be closed per your comment in #200