Faust build fails due to import error in utils/logging.py
pbhoiwala opened this issue · comments
Parth Bhoiwala commented
Checklist
- I have included information about relevant versions
- I have verified that the issue persists when using the
master
branch of Mode.
Steps to reproduce
I'm using Faust in one of my projects which is using the mode
module. The new version for mode (4.1.5) seems to have an import issue in utils/logging.py
. This is causing build issues in faust.
Expected behavior
Build to not fail due to import error.
Actual behavior
Build fails due to import error.
Full traceback
Traceback (most recent call last):
server_1 | File "/usr/local/bin/faust", line 5, in <module>
server_1 | from faust.cli.faust import cli
server_1 | File "/usr/local/lib/python3.8/site-packages/faust/cli/__init__.py", line 2, in <module>
server_1 | from .base import AppCommand, Command, argument, call_command, option
server_1 | File "/usr/local/lib/python3.8/site-packages/faust/cli/base.py", line 34, in <module>
server_1 | from mode import Service, ServiceT, Worker
server_1 | File "/usr/local/lib/python3.8/site-packages/mode/__init__.py", line 126, in __getattr__
server_1 | module = __import__(
server_1 | File "/usr/local/lib/python3.8/site-packages/mode/services.py", line 31, in <module>
server_1 | from .timers import timer_intervals
server_1 | File "/usr/local/lib/python3.8/site-packages/mode/timers.py", line 5, in <module>
server_1 | from .utils.logging import get_logger
server_1 | File "/usr/local/lib/python3.8/site-packages/mode/utils/logging.py", line 47, in <module>
server_1 | from typing_extensions import Protocol
Versions
- Python version: 3.8
- Mode version: 4.1.5
- Operating system: macOS Catalina 10.15.1
Suggestions to fix this
Add typing_extensions
in requirements.txt
file and rebuild.