When using (venv) with crewai==0.95.0, the following error occurs:
from crewai.tools import ScrapeWebsiteTool, ScrapeElementFromWebsiteTool #SerperDevTool,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ImportError: cannot import name ‘ScrapeWebsiteTool’ from ‘crewai.tools’
crew.py using:
from crewai.tools import SerperDevTool, ScrapeWebsiteTool, ScrapeElementFromWebsiteTool
However, with (venv) and crewai==0.86.0, everything works fine when using crewai.tools or crewai_tools.
ls .venv/Lib/site-packages/crewai_tools/tools scrape*
ls .venv/Lib/site-packages/crew*
Are you seeing the correct version listed and are you seeing the tool listed? The reason I ask is that when upgrading your crew version you might need to start over with a fresh build and a new venv …
I recreated a case where pip freeze
gives crewai==0.95.0 crewai-tools==0.25.8
but ls .venv/Lib/site-packages/crew*
still gives
crewai_tools-0.17.0.dist-info
I think due to the uv.lock. I went down the rabbit hole of deleting .venv uv.lock and uv cacheThen reran crewai install Maybe there is a more elegant solution out there dealing with uv versus pip etc… ?
Tks for sharing, I will start deleting uv lock and pycache too.
But I started this project from the ground 3 times. New venv, etc.
I think its better calm down and restart only tomorrow
I am used to: pip show crewai
it gives me back the crewai version.