I have tried installing it through pip, conda, and also added matplotlib in my requirements.txt before installing. The error stays the same. I am running this on an AWS SageMaker notebook instance.
Did you download the utils module (the utils.py file)? Did you add it to your environment. You also need a .env file too. There are a lot of steps to complete before you can recreate the lab environment.
I downloaded the utils file. Created the venv after adding it to the directory. So, I am guessing it is in the venv. I have added the .env file with my AWS API key. The readme file says
Ensure you have a .env file in the root of the repository with API keys for:
I don’t use SageMaker but you may need to run the pip install requirements.txt from within a notebook cell. I had to do this in Google Colab. Something like: %pip install -r requirements.txt
The %pip command installs packages directly into the environment of the currently selected kernel, avoiding potential issues with package recognition.
The error is not yet connected to any API key. Maybe try installing the requirements.txt using a notebook code cell, as suggested by bkoz and see if it works.
But now I am having problem with the LLM call in utils.py. I have changed the API key and base endpoint in the utils file. My file name is sample.env instead of just .env and I have included that in the code so that the code can access it. However, it is still showing timeout. Do you have any suggestion?
This may be related to the actual LLM provider you used. Try to troubleshoot how you referenced the . env file and also the actual message you see, check your subscription too. Hope this helps.