faust-streaming / faust

Python Stream Processing. A Faust fork
https://faust-streaming.github.io/faust/
Other
1.6k stars 180 forks source link

ModuleNotFoundError: No module named 'mode.utils.typing' #617

Closed klajdicaushi closed 5 months ago

klajdicaushi commented 5 months ago

In several projects in which we are using faust-streaming, the following error came up today. No change was done in the configurations of faust or kafka.

Checklist

Steps to reproduce

Try to start faust through the cli, with the command:

python -m faust -A conf.kafka_consumer:app worker -l info

Full traceback

Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/usr/local/lib/python3.11/site-packages/faust/__main__.py", line 4, in <module>
    from faust.cli.faust import cli
  File "/usr/local/lib/python3.11/site-packages/faust/cli/__init__.py", line 3, in <module>
    from .base import AppCommand, Command, argument, call_command, option
  File "/usr/local/lib/python3.11/site-packages/faust/cli/base.py", line 39, in <module>
    from mode.utils.typing import NoReturn
ModuleNotFoundError: No module named 'mode.utils.typing'

Versions

klajdicaushi commented 5 months ago

It seems related to the recent deployment of mode-streaming

wbarnha commented 5 months ago

Correct. I'll get this patched ASAP. Sorry about that!

wbarnha commented 5 months ago

Going to yank mode-streaming==0.3.6 and release a patch in 0.4.0 shortly. Sorry about that.

klajdicaushi commented 5 months ago

@wbarnha Thank you for the quick resolution of the issue!