# CrewAI : maximum recursion depth exceeded

**URL:** <https://community.crewai.com/t/crewai-maximum-recursion-depth-exceeded/6183>\
**Category:** CrewAI Community Support\
**Tags:** crewai\
**Created:** [June 10, 2025, 9:40am UTC](https://community.crewai.com/t/crewai-maximum-recursion-depth-exceeded/6183 "2025-06-10T09:40:53Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bhanu\_Rawal](https://sea1.discourse-cdn.com/flex025/user_avatar/community.crewai.com/bhanu_rawal/32/3646_2.png) [@Bhanu\_Rawal](https://community.crewai.com/u/Bhanu_Rawal)\
**Post date:** [June 10, 2025, 9:40am UTC](https://community.crewai.com/t/crewai-maximum-recursion-depth-exceeded/6183/1 "2025-06-10T09:40:53Z")

</div>

I am following the sample code provided in Crew documentation and also tried using code from Deeplearning.AI and the program error out with below description. For some reason the crew/agent is going into loop and yielding any output.

Any help in this regard is appreciated.

Code running in Google Colab and libraries installed are

crewai==0.28.8 crewai\_tools==0.1.6 langchain\_community==0.0.29

Crew Execution Failed │  
│ Name: crew │  
│ ID: a7a0205c-4105-476c-83ef-82df25fa83fa

---

<div class="post-metadata">

**Author:** ![Tony\_Wood](https://sea1.discourse-cdn.com/flex025/user_avatar/community.crewai.com/tony_wood/32/1876_2.png) [@Tony\_Wood](https://community.crewai.com/u/Tony_Wood)\
**Post date:** [June 10, 2025, 4:50pm UTC](https://community.crewai.com/t/crewai-maximum-recursion-depth-exceeded/6183/2 "2025-06-10T16:50:07Z")

</div>

Hi @Bhanu_Rawal Welcome to the community.

I would recommend running a current version as 0.28.8 is a really old version.

---

<div class="post-metadata">

**Author:** ![Eden\_Canlilar](https://sea1.discourse-cdn.com/flex025/user_avatar/community.crewai.com/eden_canlilar/32/1422_2.png) [@Eden\_Canlilar](https://community.crewai.com/u/Eden_Canlilar)\
**Post date:** [June 11, 2025, 4:35am UTC](https://community.crewai.com/t/crewai-maximum-recursion-depth-exceeded/6183/3 "2025-06-11T04:35:17Z")

</div>

Hi there, I’m running into the same issue trying to run the notebook from this official crew ai class locally: [Practical Multi AI Agents and Advanced Use Cases with crewAI - DeepLearning.AI](https://learn.deeplearning.ai/courses/practical-multi-ai-agents-and-advanced-use-cases-with-crewai/lesson/j0doo/support-data-insight-analysis)

Env:  
python 3.11  
MacBook Pro 2023 Sonoma 14.7.4  
crewai== 0.126.0  
crewai-tools==0.47.0  
pydantic==2.11.5

Here’s the fully traceback:

```auto
---------------------------------------------------------------------------
RecursionError Traceback (most recent call last)
File ~/anaconda3/envs/crewai-env-2/lib/python3.11/site-packages/crewai/agent.py:404, in Agent.execute_task(self, task, context, tools)
    403 else:
--> 404 result = self._execute_without_timeout(task_prompt, task)
    406 except TimeoutError as e:
    407 # Propagate TimeoutError without retry

File ~/anaconda3/envs/crewai-env-2/lib/python3.11/site-packages/crewai/agent.py:500, in Agent._execute_without_timeout(self, task_prompt, task)
    491 """Execute a task without a timeout.
    492 
    493 Args:
   (...) 498 The output of the agent.
    499 """
--> 500 return self.agent_executor.invoke(
    501 {
    502 "input": task_prompt,
    503 "tool_names": self.agent_executor.tools_names,
    504 "tools": self.agent_executor.tools_description,
    505 "ask_for_human_input": task.human_input,
    506 }
    507 )["output"]

File ~/anaconda3/envs/crewai-env-2/lib/python3.11/site-packages/crewai/agents/crew_agent_executor.py:105, in CrewAgentExecutor.invoke(self, inputs)
    103 self.messages.append(format_message_for_llm(user_prompt))
--> 105 self._show_start_logs()
    107 self.ask_for_human_input = bool(inputs.get("ask_for_human_input", False))

File ~/anaconda3/envs/crewai-env-2/lib/python3.11/site-packages/crewai/agents/crew_agent_executor.py:266, in CrewAgentExecutor._show_start_logs(self)
    265 raise ValueError("Agent cannot be None")
--> 266 show_agent_logs(
    267 printer=self._printer,
    268 agent_role=self.agent.role,
    269 task_description=(
    270 getattr(self.task, "description") if self.task else "Not Found"
    271 ),
    272 verbose=self.agent.verbose
    273 or (hasattr(self, "crew") and getattr(self.crew, "verbose", False)),
    274 )

File ~/anaconda3/envs/crewai-env-2/lib/python3.11/site-packages/crewai/utilities/agent_utils.py:406, in show_agent_logs(printer, agent_role, formatted_answer, task_description, verbose)
    405 if task_description:
--> 406 printer.print(
    407 content=f"\033[95m## Task:\033[00m \033[92m{task_description}\033[00m"
    408 )
    409 else:
    410 # Execution logs

File ~/anaconda3/envs/crewai-env-2/lib/python3.11/site-packages/crewai/utilities/printer.py:35, in Printer.print(self, content, color)
     34 else:
---> 35 print(content)

File ~/anaconda3/envs/crewai-env-2/lib/python3.11/site-packages/rich/file_proxy.py:43, in FileProxy.write(self, text)
     42 console = self.__console
---> 43 with console:
     44 output = Text("\n").join(
     45 self.__ansi_decoder.decode_line(line) for line in lines
     46 )

File ~/anaconda3/envs/crewai-env-2/lib/python3.11/site-packages/rich/console.py:864, in Console. __exit__ (self, exc_type, exc_value, traceback)
    863 """Exit buffer context."""
--> 864 self._exit_buffer()

File ~/anaconda3/envs/crewai-env-2/lib/python3.11/site-packages/rich/console.py:822, in Console._exit_buffer(self)
    821 self._buffer_index -= 1
--> 822 self._check_buffer()

File ~/anaconda3/envs/crewai-env-2/lib/python3.11/site-packages/rich/console.py:2019, in Console._check_buffer(self)
   2018 try:
-> 2019 self._write_buffer()
   2020 except BrokenPipeError:

File ~/anaconda3/envs/crewai-env-2/lib/python3.11/site-packages/rich/console.py:2035, in Console._write_buffer(self)
   2033 from .jupyter import display
-> 2035 display(self._buffer, self._render_buffer(self._buffer[:]))
   2036 del self._buffer[:]

File ~/anaconda3/envs/crewai-env-2/lib/python3.11/site-packages/rich/jupyter.py:91, in display(segments, text)
     89 from IPython.display import display as ipython_display
---> 91 ipython_display(jupyter_renderable)
     92 except ModuleNotFoundError:
     93 # Handle the case where the Console has force_jupyter=True,
     94 # but IPython is not installed.

File ~/anaconda3/envs/crewai-env-2/lib/python3.11/site-packages/IPython/core/display_functions.py:285, in display(include, exclude, metadata, transient, display_id, raw, clear, *objs, **kwargs)
    284 _merge(md_dict, metadata)
--> 285 publish_display_data(data=format_dict, metadata=md_dict, **kwargs)
    286 if display_id:

File ~/anaconda3/envs/crewai-env-2/lib/python3.11/site-packages/IPython/core/display_functions.py:73, in publish_display_data(data, metadata, transient, **kwargs)
     71 kwargs['transient'] = transient
---> 73 display_pub.publish(
     74 data=data,
     75 metadata=metadata,
     76 **kwargs
     77 )

File ~/anaconda3/envs/crewai-env-2/lib/python3.11/site-packages/ipykernel/zmqshell.py:103, in ZMQDisplayPublisher.publish(self, data, metadata, transient, update)
     88 """Publish a display-data message
     89 
     90 Parameters
   (...) 101 If True, send an update_display_data message instead of display_data.
    102 """
--> 103 self._flush_streams()
    104 if metadata is None:

File ~/anaconda3/envs/crewai-env-2/lib/python3.11/site-packages/ipykernel/zmqshell.py:66, in ZMQDisplayPublisher._flush_streams(self)
     65 """flush IO Streams prior to display"""
---> 66 sys.stdout.flush()
     67 sys.stderr.flush()

File ~/anaconda3/envs/crewai-env-2/lib/python3.11/site-packages/rich/file_proxy.py:53, in FileProxy.flush(self)
     52 if output:
---> 53 self.__console.print(output)
     54 del self.__buffer[:]

File ~/anaconda3/envs/crewai-env-2/lib/python3.11/site-packages/rich/console.py:1678, in Console.print(self, sep, end, style, justify, overflow, no_wrap, emoji, markup, highlight, width, height, crop, soft_wrap, new_line_start, *objects)
   1677 render_hooks = self._render_hooks[:]
-> 1678 with self:
   1679 renderables = self._collect_renderables(
   1680 objects,
   1681 sep,
   (...) 1686 highlight=highlight,
   1687 )

File ~/anaconda3/envs/crewai-env-2/lib/python3.11/site-packages/rich/console.py:864, in Console. __exit__ (self, exc_type, exc_value, traceback)
    863 """Exit buffer context."""
--> 864 self._exit_buffer()

File ~/anaconda3/envs/crewai-env-2/lib/python3.11/site-packages/rich/console.py:822, in Console._exit_buffer(self)
    821 self._buffer_index -= 1
--> 822 self._check_buffer()

File ~/anaconda3/envs/crewai-env-2/lib/python3.11/site-packages/rich/console.py:2019, in Console._check_buffer(self)
   2018 try:
-> 2019 self._write_buffer()
   2020 except BrokenPipeError:

File ~/anaconda3/envs/crewai-env-2/lib/python3.11/site-packages/rich/console.py:2035, in Console._write_buffer(self)
   2033 from .jupyter import display
-> 2035 display(self._buffer, self._render_buffer(self._buffer[:]))
   2036 del self._buffer[:]

File ~/anaconda3/envs/crewai-env-2/lib/python3.11/site-packages/rich/jupyter.py:91, in display(segments, text)
     89 from IPython.display import display as ipython_display
---> 91 ipython_display(jupyter_renderable)
     92 except ModuleNotFoundError:
     93 # Handle the case where the Console has force_jupyter=True,
     94 # but IPython is not installed.

File ~/anaconda3/envs/crewai-env-2/lib/python3.11/site-packages/IPython/core/display_functions.py:285, in display(include, exclude, metadata, transient, display_id, raw, clear, *objs, **kwargs)
    284 _merge(md_dict, metadata)
--> 285 publish_display_data(data=format_dict, metadata=md_dict, **kwargs)
    286 if display_id:

File ~/anaconda3/envs/crewai-env-2/lib/python3.11/site-packages/IPython/core/display_functions.py:73, in publish_display_data(data, metadata, transient, **kwargs)
     71 kwargs['transient'] = transient
---> 73 display_pub.publish(
     74 data=data,
     75 metadata=metadata,
     76 **kwargs
     77 )

File ~/anaconda3/envs/crewai-env-2/lib/python3.11/site-packages/ipykernel/zmqshell.py:103, in ZMQDisplayPublisher.publish(self, data, metadata, transient, update)
     88 """Publish a display-data message
     89 
     90 Parameters
   (...) 101 If True, send an update_display_data message instead of display_data.
    102 """
--> 103 self._flush_streams()
    104 if metadata is None:

File ~/anaconda3/envs/crewai-env-2/lib/python3.11/site-packages/ipykernel/zmqshell.py:66, in ZMQDisplayPublisher._flush_streams(self)
     65 """flush IO Streams prior to display"""
---> 66 sys.stdout.flush()
     67 sys.stderr.flush()

File ~/anaconda3/envs/crewai-env-2/lib/python3.11/site-packages/rich/file_proxy.py:53, in FileProxy.flush(self)
     52 if output:
---> 53 self.__console.print(output)
     54 del self.__buffer[:]

File ~/anaconda3/envs/crewai-env-2/lib/python3.11/site-packages/rich/console.py:1678, in Console.print(self, sep, end, style, justify, overflow, no_wrap, emoji, markup, highlight, width, height, crop, soft_wrap, new_line_start, *objects)
   1677 render_hooks = self._render_hooks[:]
-> 1678 with self:
   1679 renderables = self._collect_renderables(
   1680 objects,
   1681 sep,
   (...) 1686 highlight=highlight,
   1687 )

    [... skipping similar frames: Console. __exit__ at line 864 (266 times), Console._check_buffer at line 2019 (266 times), Console._exit_buffer at line 822 (266 times), Console._write_buffer at line 2035 (266 times), display at line 91 (266 times), ZMQDisplayPublisher._flush_streams at line 66 (265 times), display at line 285 (265 times), FileProxy.flush at line 53 (265 times), Console.print at line 1678 (265 times), ZMQDisplayPublisher.publish at line 103 (265 times), publish_display_data at line 73 (265 times)]

File ~/anaconda3/envs/crewai-env-2/lib/python3.11/site-packages/IPython/core/display_functions.py:285, in display(include, exclude, metadata, transient, display_id, raw, clear, *objs, **kwargs)
    284 _merge(md_dict, metadata)
--> 285 publish_display_data(data=format_dict, metadata=md_dict, **kwargs)
    286 if display_id:

File ~/anaconda3/envs/crewai-env-2/lib/python3.11/site-packages/IPython/core/display_functions.py:73, in publish_display_data(data, metadata, transient, **kwargs)
     71 kwargs['transient'] = transient
---> 73 display_pub.publish(
     74 data=data,
     75 metadata=metadata,
     76 **kwargs
     77 )

File ~/anaconda3/envs/crewai-env-2/lib/python3.11/site-packages/ipykernel/zmqshell.py:103, in ZMQDisplayPublisher.publish(self, data, metadata, transient, update)
     88 """Publish a display-data message
     89 
     90 Parameters
   (...) 101 If True, send an update_display_data message instead of display_data.
    102 """
--> 103 self._flush_streams()
    104 if metadata is None:

File ~/anaconda3/envs/crewai-env-2/lib/python3.11/site-packages/ipykernel/zmqshell.py:66, in ZMQDisplayPublisher._flush_streams(self)
     65 """flush IO Streams prior to display"""
---> 66 sys.stdout.flush()
     67 sys.stderr.flush()

File ~/anaconda3/envs/crewai-env-2/lib/python3.11/site-packages/rich/file_proxy.py:53, in FileProxy.flush(self)
     52 if output:
---> 53 self.__console.print(output)
     54 del self.__buffer[:]

File ~/anaconda3/envs/crewai-env-2/lib/python3.11/site-packages/rich/console.py:1678, in Console.print(self, sep, end, style, justify, overflow, no_wrap, emoji, markup, highlight, width, height, crop, soft_wrap, new_line_start, *objects)
   1677 render_hooks = self._render_hooks[:]
-> 1678 with self:
   1679 renderables = self._collect_renderables(
   1680 objects,
   1681 sep,
   (...) 1686 highlight=highlight,
   1687 )

File ~/anaconda3/envs/crewai-env-2/lib/python3.11/site-packages/rich/console.py:864, in Console. __exit__ (self, exc_type, exc_value, traceback)
    863 """Exit buffer context."""
--> 864 self._exit_buffer()

File ~/anaconda3/envs/crewai-env-2/lib/python3.11/site-packages/rich/console.py:822, in Console._exit_buffer(self)
    821 self._buffer_index -= 1
--> 822 self._check_buffer()

File ~/anaconda3/envs/crewai-env-2/lib/python3.11/site-packages/rich/console.py:2019, in Console._check_buffer(self)
   2018 try:
-> 2019 self._write_buffer()
   2020 except BrokenPipeError:

File ~/anaconda3/envs/crewai-env-2/lib/python3.11/site-packages/rich/console.py:2035, in Console._write_buffer(self)
   2033 from .jupyter import display
-> 2035 display(self._buffer, self._render_buffer(self._buffer[:]))
   2036 del self._buffer[:]

File ~/anaconda3/envs/crewai-env-2/lib/python3.11/site-packages/rich/jupyter.py:91, in display(segments, text)
     89 from IPython.display import display as ipython_display
---> 91 ipython_display(jupyter_renderable)
     92 except ModuleNotFoundError:
     93 # Handle the case where the Console has force_jupyter=True,
     94 # but IPython is not installed.

File ~/anaconda3/envs/crewai-env-2/lib/python3.11/site-packages/IPython/core/display_functions.py:278, in display(include, exclude, metadata, transient, display_id, raw, clear, *objs, **kwargs)
    277 else:
--> 278 format_dict, md_dict = format(obj, include=include, exclude=exclude)
    279 if not format_dict:
    280 # nothing to display (e.g. _ipython_display_ took over)

File ~/anaconda3/envs/crewai-env-2/lib/python3.11/site-packages/IPython/core/formatters.py:204, in DisplayFormatter.format(self, obj, include, exclude)
    202 md_dict = {}
--> 204 if self.ipython_display_formatter(obj):
    205 # object handled itself, don't proceed
    206 return {}, {}

File ~/anaconda3/envs/crewai-env-2/lib/python3.11/site-packages/decorator.py:234, in decorate.<locals>.fun(*args, **kw)
    233 if not kwsyntax:
--> 234 args, kw = fix(args, kw, sig)
    235 return caller(func, *(extras + args), **kw)

File ~/anaconda3/envs/crewai-env-2/lib/python3.11/site-packages/decorator.py:204, in fix(args, kwargs, sig)
    201 """
    202 Fix args and kwargs to be consistent with the signature
    203 """
--> 204 ba = sig.bind(*args, **kwargs)
    205 ba.apply_defaults() # needed for test_dan_schult

File ~/anaconda3/envs/crewai-env-2/lib/python3.11/inspect.py:3212, in Signature.bind(self, *args, **kwargs)
   3208 """Get a BoundArguments object, that maps the passed `args`
   3209 and `kwargs` to the function's signature. Raises `TypeError`
   3210 if the passed arguments can not be bound.
   3211 """
-> 3212 return self._bind(args, kwargs)

File ~/anaconda3/envs/crewai-env-2/lib/python3.11/inspect.py:3081, in Signature._bind(self, args, kwargs, partial)
   3079 arguments = {}
-> 3081 parameters = iter(self.parameters.values())
   3082 parameters_ex = ()

RecursionError: maximum recursion depth exceeded while calling a Python object

During handling of the above exception, another exception occurred:

RecursionError Traceback (most recent call last)
File ~/anaconda3/envs/crewai-env-2/lib/python3.11/site-packages/crewai/agent.py:404, in Agent.execute_task(self, task, context, tools)
    403 else:
--> 404 result = self._execute_without_timeout(task_prompt, task)
    406 except TimeoutError as e:
    407 # Propagate TimeoutError without retry

File ~/anaconda3/envs/crewai-env-2/lib/python3.11/site-packages/crewai/agent.py:500, in Agent._execute_without_timeout(self, task_prompt, task)
    491 """Execute a task without a timeout.
    492 
    493 Args:
   (...) 498 The output of the agent.
    499 """
--> 500 return self.agent_executor.invoke(
    501 {
    502 "input": task_prompt,
    503 "tool_names": self.agent_executor.tools_names,
    504 "tools": self.agent_executor.tools_description,
    505 "ask_for_human_input": task.human_input,
    506 }
    507 )["output"]

File ~/anaconda3/envs/crewai-env-2/lib/python3.11/site-packages/crewai/agents/crew_agent_executor.py:105, in CrewAgentExecutor.invoke(self, inputs)
    103 self.messages.append(format_message_for_llm(user_prompt))
--> 105 self._show_start_logs()
    107 self.ask_for_human_input = bool(inputs.get("ask_for_human_input", False))

File ~/anaconda3/envs/crewai-env-2/lib/python3.11/site-packages/crewai/agents/crew_agent_executor.py:266, in CrewAgentExecutor._show_start_logs(self)
    265 raise ValueError("Agent cannot be None")
--> 266 show_agent_logs(
    267 printer=self._printer,
    268 agent_role=self.agent.role,
    269 task_description=(
    270 getattr(self.task, "description") if self.task else "Not Found"
    271 ),
    272 verbose=self.agent.verbose
    273 or (hasattr(self, "crew") and getattr(self.crew, "verbose", False)),
    274 )

File ~/anaconda3/envs/crewai-env-2/lib/python3.11/site-packages/crewai/utilities/agent_utils.py:406, in show_agent_logs(printer, agent_role, formatted_answer, task_description, verbose)
    405 if task_description:
--> 406 printer.print(
    407 content=f"\033[95m## Task:\033[00m \033[92m{task_description}\033[00m"
    408 )
    409 else:
    410 # Execution logs

File ~/anaconda3/envs/crewai-env-2/lib/python3.11/site-packages/crewai/utilities/printer.py:35, in Printer.print(self, content, color)
     34 else:
---> 35 print(content)

File ~/anaconda3/envs/crewai-env-2/lib/python3.11/site-packages/rich/file_proxy.py:43, in FileProxy.write(self, text)
     42 console = self.__console
---> 43 with console:
     44 output = Text("\n").join(
     45 self.__ansi_decoder.decode_line(line) for line in lines
     46 )

File ~/anaconda3/envs/crewai-env-2/lib/python3.11/site-packages/rich/console.py:864, in Console. __exit__ (self, exc_type, exc_value, traceback)
    863 """Exit buffer context."""
--> 864 self._exit_buffer()

File ~/anaconda3/envs/crewai-env-2/lib/python3.11/site-packages/rich/console.py:822, in Console._exit_buffer(self)
    821 self._buffer_index -= 1
--> 822 self._check_buffer()

File ~/anaconda3/envs/crewai-env-2/lib/python3.11/site-packages/rich/console.py:2019, in Console._check_buffer(self)
   2018 try:
-> 2019 self._write_buffer()
   2020 except BrokenPipeError:

File ~/anaconda3/envs/crewai-env-2/lib/python3.11/site-packages/rich/console.py:2035, in Console._write_buffer(self)
   2033 from .jupyter import display
-> 2035 display(self._buffer, self._render_buffer(self._buffer[:]))
   2036 del self._buffer[:]

File ~/anaconda3/envs/crewai-env-2/lib/python3.11/site-packages/rich/jupyter.py:91, in display(segments, text)
     89 from IPython.display import display as ipython_display
---> 91 ipython_display(jupyter_renderable)
     92 except ModuleNotFoundError:
     93 # Handle the case where the Console has force_jupyter=True,
     94 # but IPython is not installed.

File ~/anaconda3/envs/crewai-env-2/lib/python3.11/site-packages/IPython/core/display_functions.py:285, in display(include, exclude, metadata, transient, display_id, raw, clear, *objs, **kwargs)
    284 _merge(md_dict, metadata)
--> 285 publish_display_data(data=format_dict, metadata=md_dict, **kwargs)
    286 if display_id:

File ~/anaconda3/envs/crewai-env-2/lib/python3.11/site-packages/IPython/core/display_functions.py:73, in publish_display_data(data, metadata, transient, **kwargs)
     71 kwargs['transient'] = transient
---> 73 display_pub.publish(
     74 data=data,
     75 metadata=metadata,
     76 **kwargs
     77 )

File ~/anaconda3/envs/crewai-env-2/lib/python3.11/site-packages/ipykernel/zmqshell.py:103, in ZMQDisplayPublisher.publish(self, data, metadata, transient, update)
     88 """Publish a display-data message
     89 
     90 Parameters
   (...) 101 If True, send an update_display_data message instead of display_data.
    102 """
--> 103 self._flush_streams()
    104 if metadata is None:

File ~/anaconda3/envs/crewai-env-2/lib/python3.11/site-packages/ipykernel/zmqshell.py:66, in ZMQDisplayPublisher._flush_streams(self)
     65 """flush IO Streams prior to display"""
---> 66 sys.stdout.flush()
     67 sys.stderr.flush()

File ~/anaconda3/envs/crewai-env-2/lib/python3.11/site-packages/rich/file_proxy.py:53, in FileProxy.flush(self)
     52 if output:
---> 53 self.__console.print(output)
     54 del self.__buffer[:]

File ~/anaconda3/envs/crewai-env-2/lib/python3.11/site-packages/rich/console.py:1678, in Console.print(self, sep, end, style, justify, overflow, no_wrap, emoji, markup, highlight, width, height, crop, soft_wrap, new_line_start, *objects)
   1677 render_hooks = self._render_hooks[:]
-> 1678 with self:
   1679 renderables = self._collect_renderables(
   1680 objects,
   1681 sep,
   (...) 1686 highlight=highlight,
   1687 )

File ~/anaconda3/envs/crewai-env-2/lib/python3.11/site-packages/rich/console.py:864, in Console. __exit__ (self, exc_type, exc_value, traceback)
    863 """Exit buffer context."""
--> 864 self._exit_buffer()

File ~/anaconda3/envs/crewai-env-2/lib/python3.11/site-packages/rich/console.py:822, in Console._exit_buffer(self)
    821 self._buffer_index -= 1
--> 822 self._check_buffer()

File ~/anaconda3/envs/crewai-env-2/lib/python3.11/site-packages/rich/console.py:2019, in Console._check_buffer(self)
   2018 try:
-> 2019 self._write_buffer()
   2020 except BrokenPipeError:

File ~/anaconda3/envs/crewai-env-2/lib/python3.11/site-packages/ipykernel/zmqshell.py:103, in ZMQDisplayPublisher.publish(self, data, metadata, transient, update)
     88 """Publish a display-data message
     89 
     90 Parameters
   (...) 101 If True, send an update_display_data message instead of display_data.
    102 """
--> 103 self._flush_streams()
    104 if metadata is None:

File ~/anaconda3/envs/crewai-env-2/lib/python3.11/site-packages/IPython/core/display_functions.py:285, in display(include, exclude, metadata, transient, display_id, raw, clear, *objs, **kwargs)
    282 if metadata:
    283 # kwarg-specified metadata gets precedence
    284 _merge(md_dict, metadata)
--> 285 publish_display_data(data=format_dict, metadata=md_dict, **kwargs)
    286 if display_id:
    287 return DisplayHandle(display_id)

File ~/anaconda3/envs/crewai-env-2/lib/python3.11/site-packages/IPython/core/display_functions.py:73, in publish_display_data(data, metadata, transient, **kwargs)
     70 if transient:
     71 kwargs['transient'] = transient
---> 73 display_pub.publish(
     74 data=data,
     75 metadata=metadata,
     76 **kwargs
     77 )

File ~/anaconda3/envs/crewai-env-2/lib/python3.11/site-packages/ipykernel/zmqshell.py:103, in ZMQDisplayPublisher.publish(self, data, metadata, transient, update)
     81 def publish(
     82 self,
     83 data,
   (...) 86 update=False,
     87 ):
     88 """Publish a display-data message
     89 
     90 Parameters
   (...) 101 If True, send an update_display_data message instead of display_data.
    102 """
--> 103 self._flush_streams()
    104 if metadata is None:
    105 metadata = {}

File ~/anaconda3/envs/crewai-env-2/lib/python3.11/site-packages/ipykernel/zmqshell.py:66, in ZMQDisplayPublisher._flush_streams(self)
     64 def _flush_streams(self):
     65 """flush IO Streams prior to display"""
---> 66 sys.stdout.flush()
     67 sys.stderr.flush()

File ~/anaconda3/envs/crewai-env-2/lib/python3.11/site-packages/rich/file_proxy.py:53, in FileProxy.flush(self)
     51 output = "".join(self.__buffer)
     52 if output:
---> 53 self.__console.print(output)
     54 del self.__buffer[:]

File ~/anaconda3/envs/crewai-env-2/lib/python3.11/site-packages/rich/console.py:1678, in Console.print(self, sep, end, style, justify, overflow, no_wrap, emoji, markup, highlight, width, height, crop, soft_wrap, new_line_start, *objects)
   1676 crop = False
   1677 render_hooks = self._render_hooks[:]
-> 1678 with self:
   1679 renderables = self._collect_renderables(
   1680 objects,
   1681 sep,
   (...) 1686 highlight=highlight,
   1687 )
   1688 for hook in render_hooks:

File ~/anaconda3/envs/crewai-env-2/lib/python3.11/site-packages/rich/console.py:864, in Console. __exit__ (self, exc_type, exc_value, traceback)
    862 def __exit__ (self, exc_type: Any, exc_value: Any, traceback: Any) -> None:
    863 """Exit buffer context."""
--> 864 self._exit_buffer()

File ~/anaconda3/envs/crewai-env-2/lib/python3.11/site-packages/rich/console.py:822, in Console._exit_buffer(self)
    820 """Leave buffer context, and render content if required."""
    821 self._buffer_index -= 1
--> 822 self._check_buffer()

File ~/anaconda3/envs/crewai-env-2/lib/python3.11/site-packages/rich/console.py:2019, in Console._check_buffer(self)
   2016 return
   2018 try:
-> 2019 self._write_buffer()
   2020 except BrokenPipeError:
   2021 self.on_broken_pipe()

File ~/anaconda3/envs/crewai-env-2/lib/python3.11/site-packages/rich/console.py:2035, in Console._write_buffer(self)
   2032 if self.is_jupyter: # pragma: no cover
   2033 from .jupyter import display
-> 2035 display(self._buffer, self._render_buffer(self._buffer[:]))
   2036 del self._buffer[:]
   2037 else:

File ~/anaconda3/envs/crewai-env-2/lib/python3.11/site-packages/rich/jupyter.py:91, in display(segments, text)
     88 try:
     89 from IPython.display import display as ipython_display
---> 91 ipython_display(jupyter_renderable)
     92 except ModuleNotFoundError:
     93 # Handle the case where the Console has force_jupyter=True,
     94 # but IPython is not installed.
     95 pass

File ~/anaconda3/envs/crewai-env-2/lib/python3.11/site-packages/IPython/core/display_functions.py:278, in display(include, exclude, metadata, transient, display_id, raw, clear, *objs, **kwargs)
    276 publish_display_data(data=obj, metadata=metadata, **kwargs)
    277 else:
--> 278 format_dict, md_dict = format(obj, include=include, exclude=exclude)
    279 if not format_dict:
    280 # nothing to display (e.g. _ipython_display_ took over)
    281 continue

File ~/anaconda3/envs/crewai-env-2/lib/python3.11/site-packages/IPython/core/formatters.py:204, in DisplayFormatter.format(self, obj, include, exclude)
    201 format_dict = {}
    202 md_dict = {}
--> 204 if self.ipython_display_formatter(obj):
    205 # object handled itself, don't proceed
    206 return {}, {}
    208 format_dict, md_dict = self.mimebundle_formatter(obj, include=include, exclude=exclude)

File ~/anaconda3/envs/crewai-env-2/lib/python3.11/site-packages/decorator.py:234, in decorate.<locals>.fun(*args, **kw)
    232 def fun(*args, **kw):
    233 if not kwsyntax:
--> 234 args, kw = fix(args, kw, sig)
    235 return caller(func, *(extras + args), **kw)

File ~/anaconda3/envs/crewai-env-2/lib/python3.11/site-packages/decorator.py:204, in fix(args, kwargs, sig)
    200 def fix(args, kwargs, sig):
    201 """
    202 Fix args and kwargs to be consistent with the signature
    203 """
--> 204 ba = sig.bind(*args, **kwargs)
    205 ba.apply_defaults() # needed for test_dan_schult
    206 return ba.args, ba.kwargs

File ~/anaconda3/envs/crewai-env-2/lib/python3.11/inspect.py:3212, in Signature.bind(self, *args, **kwargs)
   3207 def bind(self, /, *args, **kwargs):
   3208 """Get a BoundArguments object, that maps the passed `args`
   3209 and `kwargs` to the function's signature. Raises `TypeError`
   3210 if the passed arguments can not be bound.
   3211 """
-> 3212 return self._bind(args, kwargs)

RecursionError: maximum recursion depth exceeded

```

This error occurs after running this cell:

```auto
result = support_report_crew.kickoff()

```

Please help! This script used to work so it must be a dependency issue.

---

<div class="post-metadata">

**Author:** ![Bhanu\_Rawal](https://sea1.discourse-cdn.com/flex025/user_avatar/community.crewai.com/bhanu_rawal/32/3646_2.png) [@Bhanu\_Rawal](https://community.crewai.com/u/Bhanu_Rawal)\
**Post date:** [June 11, 2025, 3:12pm UTC](https://community.crewai.com/t/crewai-maximum-recursion-depth-exceeded/6183/4 "2025-06-11T15:12:47Z")

</div>

Hi Tony,  
I installed the latest version of CrewAI and I get the recursion error as detailed below

RecursionError Traceback (most recent call last)  
/usr/lib/python3.11/threading.py in invoke\_excepthook(thread)  
1347 args = ExceptHookArgs([\*sys\_exc\_info(), thread])  
1348  
 → 1349 hook(args)  
1350 except Exception as exc:  
1351 exc. **suppress\_context** = True

12 frames  
… last 11 frames repeated, from the frame below …

/usr/local/lib/python3.11/dist-packages/rich/console.py in **exit** (self, exc\_type, exc\_value, traceback)  
862 def **exit** (self, exc\_type: Any, exc\_value: Any, traceback: Any) → None:  
863 “”“Exit buffer context.”“”  
 → 864 self.\_exit\_buffer()  
865  
866 def begin\_capture(self) → None:

## RecursionError: maximum recursion depth exceeded

RecursionError Traceback (most recent call last)  
/usr/local/lib/python3.11/dist-packages/IPython/core/formatters.py in catch\_format\_error(method, self, \*args, \*\*kwargs)  
223 try:  
 → 224 r = method(self, \*args, \*\*kwargs)  
225 except NotImplementedError:

78 frames  
RecursionError: maximum recursion depth exceeded

During handling of the above exception, another exception occurred:

AttributeError Traceback (most recent call last)  
AttributeError: ‘RecursionError’ object has no attribute ‘_render\_traceback_’

During handling of the above exception, another exception occurred:

RecursionError Traceback (most recent call last)  
… last 11 frames repeated, from the frame below …

RecursionError: maximum recursion depth exceeded

During handling of the above exception, another exception occurred:

RecursionError Traceback (most recent call last)  
RecursionError: maximum recursion depth exceeded

During handling of the above exception, another exception occurred:

RecursionError Traceback (most recent call last)  
… last 11 frames repeated, from the frame below …

RecursionError: maximum recursion depth exceeded while calling a Python object

During handling of the above exception, another exception occurred:

RecursionError Traceback (most recent call last)  
RecursionError: maximum recursion depth exceeded

During handling of the above exception, another exception occurred:

RecursionError Traceback (most recent call last)  
… last 11 frames repeated, from the frame below …

/usr/local/lib/python3.11/dist-packages/rich/console.py in **exit** (self, exc\_type, exc\_value, traceback)  
862 def **exit** (self, exc\_type: Any, exc\_value: Any, traceback: Any) → None:  
863 “”“Exit buffer context.”“”  
 → 864 self.\_exit\_buffer()  
865  
866 def begin\_capture(self) → None:

RecursionError: maximum recursion depth exceeded in **instancecheck**

---

<div class="post-metadata">

**Author:** ![Bhanu\_Rawal](https://sea1.discourse-cdn.com/flex025/user_avatar/community.crewai.com/bhanu_rawal/32/3646_2.png) [@Bhanu\_Rawal](https://community.crewai.com/u/Bhanu_Rawal)\
**Post date:** [June 11, 2025, 3:38pm UTC](https://community.crewai.com/t/crewai-maximum-recursion-depth-exceeded/6183/5 "2025-06-11T15:38:17Z")

</div>

Try using !pip install crewai==0.100.1 … once this is completed execute below command

!pip install crewai-tools==0.17.0

I am currently using this combination and its working again

---

<div class="post-metadata">

**Author:** ![Eden\_Canlilar](https://sea1.discourse-cdn.com/flex025/user_avatar/community.crewai.com/eden_canlilar/32/1422_2.png) [@Eden\_Canlilar](https://community.crewai.com/u/Eden_Canlilar)\
**Post date:** [June 11, 2025, 6:58pm UTC](https://community.crewai.com/t/crewai-maximum-recursion-depth-exceeded/6183/6 "2025-06-11T18:58:02Z")

</div>

> [@Bhanu\_Rawal](#):
>
> crewai-tools==0.17.0

Unfortunatly that still isn’t working for me. But fortunatly I was to able to get it working by some miracle by using the same script that a colleague downloaded instead of me. The EXACT same notebook. We are perplexed as to what broke the curse.

---

<div class="post-metadata">

**Author:** ![Eden\_Canlilar](https://sea1.discourse-cdn.com/flex025/user_avatar/community.crewai.com/eden_canlilar/32/1422_2.png) [@Eden\_Canlilar](https://community.crewai.com/u/Eden_Canlilar)\
**Post date:** [June 11, 2025, 10:28pm UTC](https://community.crewai.com/t/crewai-maximum-recursion-depth-exceeded/6183/7 "2025-06-11T22:28:34Z")

</div>

Well I spoke too soon. The same error is back again but only when I set verbose to True when I instantiate the agent like this:

```auto
crew = Crew(
    agents=[
        requirements_gatherer, 
        metadata_mapper, 
        sql_query_specialist, 
        sql_query_executor, 
        results_interpreter
        ],
    tasks=[
        gather_requirements_task,
        map_metadata_task,
        write_sql_query_task,
        execute_sql_query_task,
        interpret_results_task
    ],
    process=Process.sequential, #Process.hierarchical, # Process.sequential,
    verbose=True, # Here
)

```

If it set verbose to False, I get expected results. But I really need to see the verbose comments to debug so it would be helpful to fix it. Here are my updated requirements (FULL VERSION):

```auto
Package Version
---------------------------------------- ---------------
aiohappyeyeballs 2.6.1
aiohttp 3.12.12
aiosignal 1.3.2
alembic 1.16.1
annotated-types 0.7.0
anyio 4.9.0
appdirs 1.4.4
appnope 0.1.4
asgiref 3.8.1
asttokens 3.0.0
attrs 25.3.0
auth0-python 4.10.0
backoff 2.2.1
bcrypt 4.3.0
beautifulsoup4 4.13.4
blinker 1.9.0
build 1.2.2.post1
cachetools 5.5.2
certifi 2025.4.26
cffi 1.17.1
charset-normalizer 3.4.2
chroma-hnswlib 0.7.6
chromadb 0.5.23
click 8.2.1
cohere 5.15.0
coloredlogs 15.0.1
comm 0.2.2
crewai 0.126.0
crewai-tools 0.46.0
cryptography 45.0.4
dataclasses-json 0.6.7
db-dtypes 1.4.3
debugpy 1.8.11
decorator 5.2.1
deprecation 2.1.0
distro 1.9.0
docker 7.1.0
docstring_parser 0.16
docx2txt 0.8
durationpy 0.10
embedchain 0.1.128
et_xmlfile 2.0.0
exceptiongroup 1.3.0
executing 2.2.0
fastapi 0.115.9
fastavro 1.11.1
filelock 3.18.0
flatbuffers 25.2.10
frozenlist 1.7.0
fsspec 2025.5.1
google-api-core 2.25.0
google-auth 2.40.3
google-cloud-aiplatform 1.84.0
google-cloud-bigquery 3.34.0
google-cloud-core 2.4.3
google-cloud-resource-manager 1.14.1
google-cloud-storage 2.19.0
google-crc32c 1.7.1
google-genai 1.0.0
google-resumable-media 2.7.2
googleapis-common-protos 1.70.0
gptcache 0.1.44
grpc-google-iam-v1 0.14.1
grpcio 1.73.0
grpcio-status 1.71.0
h11 0.16.0
h2 4.2.0
hf-xet 1.1.3
hpack 4.1.0
httpcore 1.0.9
httptools 0.6.4
httpx 0.28.1
httpx-sse 0.4.0
huggingface-hub 0.32.5
humanfriendly 10.0
hyperframe 6.1.0
idna 3.10
importlib_metadata 8.7.0
importlib_resources 6.5.2
iniconfig 2.1.0
instructor 1.8.3
ipykernel 6.29.5
ipython 9.3.0
ipython_pygments_lexers 1.1.1
jedi 0.19.2
Jinja2 3.1.6
jiter 0.8.2
json_repair 0.46.2
json5 0.12.0
jsonpatch 1.33
jsonpickle 4.1.1
jsonpointer 3.0.0
jsonref 1.1.0
jsonschema 4.24.0
jsonschema-specifications 2025.4.1
jupyter_client 8.6.3
jupyter_core 5.8.1
kubernetes 33.1.0
lancedb 0.5.7
langchain 0.3.25
langchain-cohere 0.3.5
langchain-community 0.3.25
langchain-core 0.3.65
langchain-experimental 0.3.4
langchain-openai 0.2.14
langchain-text-splitters 0.3.8
langsmith 0.3.45
litellm 1.68.0
Mako 1.3.10
markdown-it-py 3.0.0
MarkupSafe 3.0.2
marshmallow 3.26.1
matplotlib-inline 0.1.7
mdurl 0.1.2
mem0ai 0.1.106
mmh3 5.1.0
monotonic 1.6
mpmath 1.3.0
multidict 6.4.4
mypy_extensions 1.1.0
nest_asyncio 1.6.0
networkx 3.5
nodeenv 1.9.1
numpy 1.26.4
oauthlib 3.2.2
onnxruntime 1.22.0
openai 1.75.0
openpyxl 3.1.5
opentelemetry-api 1.34.1
opentelemetry-exporter-otlp-proto-common 1.34.1
opentelemetry-exporter-otlp-proto-grpc 1.34.1
opentelemetry-exporter-otlp-proto-http 1.34.1
opentelemetry-instrumentation 0.55b1
opentelemetry-instrumentation-asgi 0.55b1
opentelemetry-instrumentation-fastapi 0.55b1
opentelemetry-proto 1.34.1
opentelemetry-sdk 1.34.1
opentelemetry-semantic-conventions 0.55b1
opentelemetry-util-http 0.55b1
orjson 3.10.18
outcome 1.3.0.post0
overrides 7.7.0
packaging 24.2
pandas 2.3.0
parso 0.8.4
pdfminer.six 20250327
pdfplumber 0.11.6
pexpect 4.9.0
pickleshare 0.7.5
pillow 11.2.1
pip 25.1.1
platformdirs 4.3.8
pluggy 1.6.0
portalocker 2.10.1
posthog 3.25.0
prompt_toolkit 3.0.51
propcache 0.3.2
proto-plus 1.26.1
protobuf 5.29.5
psutil 5.9.0
ptyprocess 0.7.0
pulsar-client 3.7.0
pure_eval 0.2.3
py 1.11.0
pyarrow 20.0.0
pyasn1 0.6.1
pyasn1_modules 0.4.2
pycparser 2.22
pydantic 2.11.5
pydantic_core 2.33.2
pydantic-settings 2.9.1
Pygments 2.19.1
PyJWT 2.10.1
pylance 0.9.18
pypdf 5.6.0
pypdfium2 4.30.1
PyPika 0.48.9
pyproject_hooks 1.2.0
pyright 1.1.401
pysbd 0.3.4
PySocks 1.7.1
pytest 8.4.0
python-dateutil 2.9.0.post0
python-dotenv 1.1.0
pytube 15.0.0
pytz 2025.2
pyvis 0.3.2
PyYAML 6.0.2
pyzmq 26.2.0
qdrant-client 1.14.2
ratelimiter 1.2.0.post0
referencing 0.36.2
regex 2024.11.6
requests 2.32.4
requests-oauthlib 2.0.0
requests-toolbelt 1.0.0
retry 0.9.2
rich 13.9.4
rpds-py 0.25.1
rsa 4.9.1
schema 0.7.7
selenium 4.33.0
semver 3.0.4
setuptools 78.1.1
shapely 2.0.7
shellingham 1.5.4
six 1.17.0
sniffio 1.3.1
sortedcontainers 2.4.0
soupsieve 2.7
SQLAlchemy 2.0.41
stack_data 0.6.3
starlette 0.45.3
sympy 1.14.0
tabulate 0.9.0
tenacity 9.1.2
tiktoken 0.9.0
tokenizers 0.20.3
tomli 2.2.1
tomli_w 1.2.0
tornado 6.5.1
tqdm 4.67.1
traitlets 5.14.3
trio 0.30.0
trio-websocket 0.12.2
typer 0.16.0
types-requests 2.32.4.20250611
typing_extensions 4.13.2
typing-inspect 0.9.0
typing-inspection 0.4.1
tzdata 2025.2
urllib3 2.4.0
uv 0.7.12
uvicorn 0.34.3
uvloop 0.21.0
watchfiles 1.0.5
wcwidth 0.2.13
websocket-client 1.8.0
websockets 14.2
wheel 0.45.1
wrapt 1.17.2
wsproto 1.2.0
yarl 1.20.1
zipp 3.23.0
zstandard 0.23.0

```

I’m running python 3.11 too btw.

---

<div class="post-metadata">

**Author:** ![Eden\_Canlilar](https://sea1.discourse-cdn.com/flex025/user_avatar/community.crewai.com/eden_canlilar/32/1422_2.png) [@Eden\_Canlilar](https://community.crewai.com/u/Eden_Canlilar)\
**Post date:** [June 11, 2025, 10:32pm UTC](https://community.crewai.com/t/crewai-maximum-recursion-depth-exceeded/6183/8 "2025-06-11T22:32:31Z")

</div>

Well I spoke too soon. The recursion error is back again, but only when I set verbose to True. Otherwise I get the expected the results (takes like 30-60 seconds though). I’m still running python 3.11. Here is my full pip list just incase an under lying package is causing this error like langchain or pydandic maybe:

```auto
Package Version
---------------------------------------- ---------------
aiohappyeyeballs 2.6.1
aiohttp 3.12.12
aiosignal 1.3.2
alembic 1.16.1
annotated-types 0.7.0
anyio 4.9.0
appdirs 1.4.4
appnope 0.1.4
asgiref 3.8.1
asttokens 3.0.0
attrs 25.3.0
auth0-python 4.10.0
backoff 2.2.1
bcrypt 4.3.0
beautifulsoup4 4.13.4
blinker 1.9.0
build 1.2.2.post1
cachetools 5.5.2
certifi 2025.4.26
cffi 1.17.1
charset-normalizer 3.4.2
chroma-hnswlib 0.7.6
chromadb 0.5.23
click 8.2.1
cohere 5.15.0
coloredlogs 15.0.1
comm 0.2.2
crewai 0.126.0
crewai-tools 0.46.0
cryptography 45.0.4
dataclasses-json 0.6.7
db-dtypes 1.4.3
debugpy 1.8.11
decorator 5.2.1
deprecation 2.1.0
distro 1.9.0
docker 7.1.0
docstring_parser 0.16
docx2txt 0.8
durationpy 0.10
embedchain 0.1.128
et_xmlfile 2.0.0
exceptiongroup 1.3.0
executing 2.2.0
fastapi 0.115.9
fastavro 1.11.1
filelock 3.18.0
flatbuffers 25.2.10
frozenlist 1.7.0
fsspec 2025.5.1
google-api-core 2.25.0
google-auth 2.40.3
google-cloud-aiplatform 1.84.0
google-cloud-bigquery 3.34.0
google-cloud-core 2.4.3
google-cloud-resource-manager 1.14.1
google-cloud-storage 2.19.0
google-crc32c 1.7.1
google-genai 1.0.0
google-resumable-media 2.7.2
googleapis-common-protos 1.70.0
gptcache 0.1.44
grpc-google-iam-v1 0.14.1
grpcio 1.73.0
grpcio-status 1.71.0
h11 0.16.0
h2 4.2.0
hf-xet 1.1.3
hpack 4.1.0
httpcore 1.0.9
httptools 0.6.4
httpx 0.28.1
httpx-sse 0.4.0
huggingface-hub 0.32.5
humanfriendly 10.0
hyperframe 6.1.0
idna 3.10
importlib_metadata 8.7.0
importlib_resources 6.5.2
iniconfig 2.1.0
instructor 1.8.3
ipykernel 6.29.5
ipython 9.3.0
ipython_pygments_lexers 1.1.1
jedi 0.19.2
Jinja2 3.1.6
jiter 0.8.2
json_repair 0.46.2
json5 0.12.0
jsonpatch 1.33
jsonpickle 4.1.1
jsonpointer 3.0.0
jsonref 1.1.0
jsonschema 4.24.0
jsonschema-specifications 2025.4.1
jupyter_client 8.6.3
jupyter_core 5.8.1
kubernetes 33.1.0
lancedb 0.5.7
langchain 0.3.25
langchain-cohere 0.3.5
langchain-community 0.3.25
langchain-core 0.3.65
langchain-experimental 0.3.4
langchain-openai 0.2.14
langchain-text-splitters 0.3.8
langsmith 0.3.45
litellm 1.68.0
Mako 1.3.10
markdown-it-py 3.0.0
MarkupSafe 3.0.2
marshmallow 3.26.1
matplotlib-inline 0.1.7
mdurl 0.1.2
mem0ai 0.1.106
mmh3 5.1.0
monotonic 1.6
mpmath 1.3.0
multidict 6.4.4
mypy_extensions 1.1.0
nest_asyncio 1.6.0
networkx 3.5
nodeenv 1.9.1
numpy 1.26.4
oauthlib 3.2.2
onnxruntime 1.22.0
openai 1.75.0
openpyxl 3.1.5
opentelemetry-api 1.34.1
opentelemetry-exporter-otlp-proto-common 1.34.1
opentelemetry-exporter-otlp-proto-grpc 1.34.1
opentelemetry-exporter-otlp-proto-http 1.34.1
opentelemetry-instrumentation 0.55b1
opentelemetry-instrumentation-asgi 0.55b1
opentelemetry-instrumentation-fastapi 0.55b1
opentelemetry-proto 1.34.1
opentelemetry-sdk 1.34.1
opentelemetry-semantic-conventions 0.55b1
opentelemetry-util-http 0.55b1
orjson 3.10.18
outcome 1.3.0.post0
overrides 7.7.0
packaging 24.2
pandas 2.3.0
parso 0.8.4
pdfminer.six 20250327
pdfplumber 0.11.6
pexpect 4.9.0
pickleshare 0.7.5
pillow 11.2.1
pip 25.1.1
platformdirs 4.3.8
pluggy 1.6.0
portalocker 2.10.1
posthog 3.25.0
prompt_toolkit 3.0.51
propcache 0.3.2
proto-plus 1.26.1
protobuf 5.29.5
psutil 5.9.0
ptyprocess 0.7.0
pulsar-client 3.7.0
pure_eval 0.2.3
py 1.11.0
pyarrow 20.0.0
pyasn1 0.6.1
pyasn1_modules 0.4.2
pycparser 2.22
pydantic 2.11.5
pydantic_core 2.33.2
pydantic-settings 2.9.1
Pygments 2.19.1
PyJWT 2.10.1
pylance 0.9.18
pypdf 5.6.0
pypdfium2 4.30.1
PyPika 0.48.9
pyproject_hooks 1.2.0
pyright 1.1.401
pysbd 0.3.4
PySocks 1.7.1
pytest 8.4.0
python-dateutil 2.9.0.post0
python-dotenv 1.1.0
pytube 15.0.0
pytz 2025.2
pyvis 0.3.2
PyYAML 6.0.2
pyzmq 26.2.0
qdrant-client 1.14.2
ratelimiter 1.2.0.post0
referencing 0.36.2
regex 2024.11.6
requests 2.32.4
requests-oauthlib 2.0.0
requests-toolbelt 1.0.0
retry 0.9.2
rich 13.9.4
rpds-py 0.25.1
rsa 4.9.1
schema 0.7.7
selenium 4.33.0
semver 3.0.4
setuptools 78.1.1
shapely 2.0.7
shellingham 1.5.4
six 1.17.0
sniffio 1.3.1
sortedcontainers 2.4.0
soupsieve 2.7
SQLAlchemy 2.0.41
stack_data 0.6.3
starlette 0.45.3
sympy 1.14.0
tabulate 0.9.0
tenacity 9.1.2
tiktoken 0.9.0
tokenizers 0.20.3
tomli 2.2.1
tomli_w 1.2.0
tornado 6.5.1
tqdm 4.67.1
traitlets 5.14.3
trio 0.30.0
trio-websocket 0.12.2
typer 0.16.0
types-requests 2.32.4.20250611
typing_extensions 4.13.2
typing-inspect 0.9.0
typing-inspection 0.4.1
tzdata 2025.2
urllib3 2.4.0
uv 0.7.12
uvicorn 0.34.3
uvloop 0.21.0
watchfiles 1.0.5
wcwidth 0.2.13
websocket-client 1.8.0
websockets 14.2
wheel 0.45.1
wrapt 1.17.2
wsproto 1.2.0
yarl 1.20.1
zipp 3.23.0
zstandard 0.23.0

```

I would appreciate any help you have Tony! I really need to see the verbose results.

---

<div class="post-metadata">

**Author:** ![Eden\_Canlilar](https://sea1.discourse-cdn.com/flex025/user_avatar/community.crewai.com/eden_canlilar/32/1422_2.png) [@Eden\_Canlilar](https://community.crewai.com/u/Eden_Canlilar)\
**Post date:** [June 11, 2025, 10:49pm UTC](https://community.crewai.com/t/crewai-maximum-recursion-depth-exceeded/6183/9 "2025-06-11T22:49:55Z")

</div>

Hallaleluja I just figured it out! Apparently setting verbose to True ONLY works on AGENTS not as you instantiate the crew. Just to be crystal clear for anyone else who is struggling:

Setting verbose to True here is a NO NO and will result in the error mentioned in this thread ❌

```auto
crew = Crew(
    agents=[researcher, reporting_analyst],
    tasks=[
        research_task,
        reporting_task,
    ],
verbose = True
)

```

But setting verbose to True here IS okay and will show the agents thoughts and what not as it goes along ✅

```auto
    def sql_query_executor(self):
        return Agent(
            role=f"Query Executor",
            goal=f"Execute the SQL query in the Big Query database and retrieve results.",
            tools=[custom_big_query_tool],
            backstory=f"As a Query Execution Specialist, you ensure that SQL queries are executed efficiently, delivering accurate results from the database.",
            verbose=True,
        )

```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex025/uploads/crewai/original/1X/ecda97e72f77c7100e0a761444b1c991925cc789.png) [@system](https://community.crewai.com/u/system)\
**Post date:** [June 16, 2025, 10:19am UTC](https://community.crewai.com/t/crewai-maximum-recursion-depth-exceeded/6183/10 "2025-06-16T10:19:44Z")

</div>

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
