I am getting an import error
“Traceback (most recent call last):
File “”, line 1, in
ImportError: cannot import name ‘LocalKnowledge’ from ‘crewai.knowledge’ (/Users/XX/Desktop/Coding/umojah_instagram/venv/lib/python3.10/site-packages/crewai/knowledge/init.py)”
In my venv I have crewai 0.140.0 & crewai-tools 0.49.0. My python version is set to 3.10.13. Has anyone dealt with this issue before?
@tonykipkemboi Jambo. are you able to help. I’ve created a knowledge base for my agents and tasks but I am unable to import the tools
Hi Sadly I am not Jambo. But if you can let us see the code maybe we can help
please share the code so we can see your implementation. this should be your crew.py file
Hello @Tony_Wood and @tonykipkemboi. Thank you both for reaching out. I managed to find a workaround. I was using an old import method
“from crewai import Knowledge”
After reading the documentation I found the following import method.
“from crewai.knowledge.source.string_knowledge_source import StringKnowledgeSource” I’ll run this and see if it works.