Crewai.tools on crewai==0.95.0

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.

Why does this happen? Can anyone help me plz?

I tried and was unable to recreate problem in Python 3.12
crewai==0.95.0
crewai-tools==0.25.8

After activating the venv:
.\.venv\Scripts\activate

in my project folder I ran:
crewai install

and then
crewai run

crew.py imports tools using:

I hope this is helpful in some way. Good luck and let me know if you get it working.

Hi joab.io!
The script uses Flows/Router/Evolution-WhatsApp/Flask
Maybe something related to versions.
Tks!!

Try drilling down into the venv :

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… ?

Hi Joab.io!

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.

TKS!!! for all your help!