CrewAI-Studio icon indicating copy to clipboard operation
CrewAI-Studio copied to clipboard

ImportError: cannot import name 'CodeInterpreterTool' from 'crewai_tools'

Open finedesignz opened this issue 5 months ago • 0 comments

Getting errors on new installation: ────────────────────────── Traceback (most recent call last) ─────────────────────────── C:\GitHub\CrewAI-Studio\venv\Lib\site-packages\streamlit\runtime\scriptrunner\exec_c
ode.py:128 in exec_func_with_error_handling

C:\GitHub\CrewAI-Studio\venv\Lib\site-packages\streamlit\runtime\scriptrunner\script

_runner.py:669 in code_to_exec

C:\GitHub\CrewAI-Studio\app\app.py:3 in

 1 import streamlit as st                                                         

 2 from streamlit import session_state as ss                                      

❱ 3 import db_utils

 4 from pg_agents import PageAgents                                               

 5 from pg_tasks import PageTasks                                                 

 6 from pg_crews import PageCrews                                                 

C:\GitHub\CrewAI-Studio\app\db_utils.py:4 in

  1 import sqlite3                                                                

  2 import os                                                                     

  3 import json                                                                   

❱ 4 from my_tools import TOOL_CLASSES

  5 from sqlalchemy import create_engine, text                                    

  6                                                                               

  7 # If you have an environment variable DB_URL for Postgres, use that.          

C:\GitHub\CrewAI-Studio\app\my_tools.py:4 in

  1 import streamlit as st                                                        

  2 import os                                                                     

  3 from utils import rnd_id                                                      

❱ 4 from crewai_tools import CodeInterpreterTool,ScrapeElementFromWebsiteTool,TXTS

  5 from tools.CSVSearchToolEnhanced import CSVSearchToolEnhanced                 

  6 from tools.CustomApiTool import CustomApiTool                                 

  7 from tools.CustomCodeInterpreterTool import CustomCodeInterpreterTool         

──────────────────────────────────────────────────────────────────────────────────────── ImportError: cannot import name 'CodeInterpreterTool' from 'crewai_tools' (C:\GitHub\CrewAI-Studio\venv\Lib\site-packages\crewai_tools_init_.py)

finedesignz avatar Jul 16 '25 20:07 finedesignz