Welcome to the community @zzz3668 .
It sounds like you’re having some trouble running the code examples, and I’m happy to help clarify.
First, it looks like you posted in the wrong category, but no worries—I’ll move it to the correct section for the CrewAI short course. Just a heads up, you can always use the edit (pencil) icon near the title to do this.
Regarding your question:
Running Code in the CrewAI Course
The course you’re following—“Multi AI Agent Systems with CrewAI”—is best experienced using the platform provided by DeepLearning.AI. I see that you’ve mentioned using Google Colab, which isn’t fully set up for this particular environment. Instead, you should use the Platform that’s included with the course.
What is “the Platform” and How Do You Access It?
The platform they mention is an integrated learning environment that comes with the course materials. It has all the resources, code, and data pre-configured so you can seamlessly follow along with the lessons. You should see it here (as shown in the screenshot below), which is directly accessible from your course page:
How to Run the Code on the Platform
When you’re watching the videos, you should notice that to the left of the video player, there’s a Jupyter notebook. In this notebook, you can run the code provided in the lessons by pressing Shift + Enter
to execute each cell. This setup ensures all environment variables, including the API_keys
and necessary imports, are already set for you.
Running the Code Outside the Platform
If you wish to run the code outside of the course environment—like in Google Colab—you’ll need to manually set up the environment. That means:
- Downloading all the course-associated files.
- Installing all required libraries (
pip install crewai
, etc.).
- Setting up all environment variables, including
API_keys
.
This requires a bit of extra effort, and errors like the ModuleNotFoundError you’re seeing are common when dependencies or environment settings aren’t configured correctly.
If you’re just starting, I recommend sticking to the integrated platform, as it will save you a lot of time and headaches.
Let me know if this clears things up or if you have more questions!