diff --git a/src/crewai_tools/tools/serpapi_tool/serpapi_google_search_tool.py b/src/crewai_tools/tools/serpapi_tool/serpapi_google_search_tool.py index c1a877f23..86f40ef03 100644 --- a/src/crewai_tools/tools/serpapi_tool/serpapi_google_search_tool.py +++ b/src/crewai_tools/tools/serpapi_tool/serpapi_google_search_tool.py @@ -1,7 +1,8 @@ from typing import Any, Optional, Type from pydantic import BaseModel, Field -from serpapi import HTTPError +from .serpapi_base_tool import SerpApiBaseTool +from urllib.error import HTTPError from .serpapi_base_tool import SerpApiBaseTool diff --git a/src/crewai_tools/tools/serpapi_tool/serpapi_google_shopping_tool.py b/src/crewai_tools/tools/serpapi_tool/serpapi_google_shopping_tool.py index ec9477351..2dda9aa4c 100644 --- a/src/crewai_tools/tools/serpapi_tool/serpapi_google_shopping_tool.py +++ b/src/crewai_tools/tools/serpapi_tool/serpapi_google_shopping_tool.py @@ -1,7 +1,8 @@ from typing import Any, Optional, Type from pydantic import BaseModel, Field -from serpapi import HTTPError +from .serpapi_base_tool import SerpApiBaseTool +from urllib.error import HTTPError from .serpapi_base_tool import SerpApiBaseTool