I am trying to implement my own tool by inherit the BaseTool class, inside the tool i am calling the sync method for playwright. However I got the following error:
I encountered an error while trying to use the tool. This was the error: It looks like you are using Playwright Sync API inside the asyncio loop.
Please use the Async API instead..
I am invoking the crew with crewai run
and it triggers result = research_crew.kickoff(inputs)
it looks like it’s related to these packages, i was in another crewai project and that one doesnt have problem: Installing dependencies from lock file
Package operations: 0 installs, 39 updates, 0 removals
- Downgrading anyio (4.6.2.post1 → 4.6.0)
- Downgrading orjson (3.10.10 → 3.10.7)
- Downgrading frozenlist (1.5.0 → 1.4.1)
- Downgrading langsmith (0.1.137 → 0.1.134)
- Downgrading yarl (1.16.0 → 1.15.0)
- Downgrading fsspec (2024.10.0 → 2024.9.0)
- Downgrading grpcio (1.67.0 → 1.66.2)
- Downgrading marshmallow (3.23.0 → 3.22.0)
- Downgrading proto-plus (1.25.0 → 1.24.0)
- Downgrading setuptools (75.2.0 → 75.1.0)
- Downgrading sqlalchemy (2.0.36 → 2.0.35)
- Downgrading huggingface-hub (0.26.1 → 0.25.2)
- Downgrading httptools (0.6.4 → 0.6.1)
- Downgrading markupsafe (3.0.2 → 3.0.1)
- Downgrading pyparsing (3.2.0 → 3.1.4)
- Downgrading rich (13.9.3 → 13.9.2)
- Downgrading starlette (0.41.0 → 0.38.6)
- Downgrading types-requests (2.32.0.20241016 → 2.32.0.20240914)
- Downgrading uvloop (0.21.0 → 0.20.0)
- Downgrading cohere (5.11.1 → 5.10.0)
- Downgrading fastapi (0.115.3 → 0.115.1)
- Downgrading google-cloud-resource-manager (1.13.0 → 1.12.5)
- Downgrading mako (1.3.6 → 1.3.5)
- Downgrading openai (1.52.2 → 1.51.2)
- Downgrading trio (0.27.0 → 0.26.2)
- Downgrading uvicorn (0.32.0 → 0.31.1)
- Downgrading mem0ai (0.1.24 → 0.1.17)
- Downgrading poetry-core (1.9.1 → 1.9.0)
- Downgrading rapidfuzz (3.10.1 → 3.10.0)
- Downgrading cryptography (43.0.3 → 43.0.1)
- Downgrading ipython (8.29.0 → 8.28.0)
- Downgrading networkx (3.4.2 → 3.4.1)
- Downgrading pyright (1.1.386 → 1.1.384)
- Downgrading trove-classifiers (2024.10.21.16 → 2024.10.11)
- Downgrading virtualenv (20.27.0 → 20.26.6)
- Downgrading greenlet (3.1.1 → 3.0.3)
- Downgrading litellm (1.51.0 → 1.49.1)
- Downgrading poetry (1.8.4 → 1.8.3)
- Downgrading playwright (1.48.0 → 1.47.0)