Skip to content

Commit 6a80681

Browse files
committed
chode: Disable crewAI tracing to fix stdin issues; update crewAI dependency to <2.0.0
1 parent 0d8030a commit 6a80681

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

templates/python-crewai/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
apify < 4.0.0
55
apify-client
66
langchain-apify < 1.0.0
7-
crewai[tools] < 1.0.0
7+
crewai[tools] < 2.0.0

templates/python-crewai/src/main.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ async def main() -> None:
2525
Raises:
2626
ValueError: If the input is missing required attributes.
2727
"""
28+
# Disable crewAI tracing to prevent stdin read issues at shutdown
29+
os.environ['CREWAI_TRACING_ENABLED'] = 'false'
30+
2831
async with Actor:
2932
apify_token = os.getenv('APIFY_TOKEN')
3033
if not apify_token:

0 commit comments

Comments
 (0)