May '24 • CrewAI
Help with CrewAI and Python
I need help from anyone in the community who can answer my question. I have been following Brandon video on building a travel planner from his video for Crewai beginners. I downloaded python 3.11.9 as it seems that he says you should use a version less than 3.12. I followed his instructions to the letter but I am still getting some type(s) of errors when I run the application. The error starts like this:
"> Entering new CrewAgentExecutor chain...
Exception in thread Thread-1 (_execute):
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/threading.py", line 1045, in _bootstrap_inner
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/threading.py", line 982, in run ..."
and end like this:
" File "/Users/terrybyrd/Library/Caches/pypoetry/virtualenvs/ai-news-letter-8g0Q9LeX-py3.11/lib/python3.11/site-packages/crewai/crew.py", line 242, in _run_hierarchical_process
task_output = task.execute(
^^^^^^^^^^^^^
File "/Users/terrybyrd/Library/Caches/pypoetry/virtualenvs/ai-news-letter-8g0Q9LeX-py3.11/lib/python3.11/site-packages/crewai/task.py", line 93, in execute
context.append(task.output.result)
^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'result'"
Now I could put the entire error output up but it is long.
I understand programming fairly well but have been away from it for a while. I am not familiar with all the packages and independencies of these packages but I am picking it up as I go along. Any suggestions to solving my problem will be very much appreciated. Thanks.
1
4 comments
Terry Byrd
1
Help with CrewAI and Python
AI Developer Accelerator
skool.com/ai-developer-accelerator
Master AI & software development to build apps and unlock new income streams. Transform ideas into profits. 💡➕🤖➕👨‍💻🟰💰
Leaderboard (30-day)
Powered by