robinhood / faust

Python Stream Processing
Other
6.72k stars 535 forks source link

cannot import name 'format_agen_stack' from 'mode.utils.tracebacks' #725

Closed GumpSun closed 3 years ago

GumpSun commented 3 years ago

Versions

python hello_world.py worker -l info

Traceback (most recent call last): File "hello_world.py", line 3, in app = faust.App( File "/usr/local/lib/python3.7/site-packages/faust/init.py", line 253, in getattr object_origins[name], None, None, [name]) File "/usr/local/lib/python3.7/site-packages/faust/app/init.py", line 2, in from .base import App, BootStrategy File "/usr/local/lib/python3.7/site-packages/faust/app/base.py", line 58, in from faust.agents import ( File "/usr/local/lib/python3.7/site-packages/faust/agents/init.py", line 2, in from .agent import Agent, AgentFun, AgentT, SinkT, current_agent File "/usr/local/lib/python3.7/site-packages/faust/agents/agent.py", line 76, in from .actor import AsyncIterableActor, AwaitableActor File "/usr/local/lib/python3.7/site-packages/faust/agents/actor.py", line 4, in from mode.utils.tracebacks import format_agen_stack, format_coro_stack ImportError: cannot import name 'format_agen_stack' from 'mode.utils.tracebacks' (/usr/local/lib/python3.7/site-packages/mode-3.2.2-py3.7.egg/mode/utils/tracebacks.py)

But why, it's just like that? Thanks for your faust👍~

GumpSun commented 3 years ago

Traceback (most recent call last): File "hello_world2.py", line 4, in class Greeting(faust.Record): File "/usr/local/lib/python3.7/site-packages/faust/init.py", line 253, in getattr object_origins[name], None, None, [name]) File "/usr/local/lib/python3.7/site-packages/faust/models/init.py", line 3, in from .fields import FieldDescriptor, StringField File "/usr/local/lib/python3.7/site-packages/faust/models/fields.py", line 31, in from .tags import Tag File "/usr/local/lib/python3.7/site-packages/faust/models/tags.py", line 17, in from mode.utils.locals import LocalStack ModuleNotFoundError: No module named 'mode.utils.locals'

what's the mode.utils Did I forget to install anything?

GumpSun commented 3 years ago

Traceback (most recent call last): File "hello_world2.py", line 4, in class Greeting(faust.Record): File "/usr/local/lib/python3.7/site-packages/faust/init.py", line 253, in getattr object_origins[name], None, None, [name]) File "/usr/local/lib/python3.7/site-packages/faust/models/init.py", line 3, in from .fields import FieldDescriptor, StringField File "/usr/local/lib/python3.7/site-packages/faust/models/fields.py", line 32, in from .typing import NodeType, TypeExpression File "/usr/local/lib/python3.7/site-packages/faust/models/typing.py", line 36, in from mode.utils.objects import ( ImportError: cannot import name 'is_union' from 'mode.utils.objects' (/usr/local/lib/python3.7/site-packages/mode-3.2.2-py3.7.egg/mode/utils/objects.py)

The same problem T_T~