MicrosoftLearning / MicrosoftLearning/mslearn-ai-language
Lab 02-language-agent: ModuleNotFoundError: No module named 'httpx' when initializing OpenAI client
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 273
- Forks
- 544
- Avg merge
- 2m
- Merged PRs (30d)
- 1
Description
Lab File Path: Labfiles/02-language-agent/Python/text-agent/requirements.txt
Problem: Running pip install -r requirements.txt does not install httpx, causing project_client.get_openai_client() to fail with ModuleNotFoundError: No module named 'httpx'.
Proposed Solution: Add httpx to requirements.txt:
python-dotenv
azure-identity
azure-ai-projects==2.0.0b4
httpx
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with Labfiles/02-language-agent/Python/text-agent/requirements.txt and compare the declared dependencies with the packages needed by project_client.get_openai_client(). Run pip install -r requirements.txt, then retry the client initialization. Done means the dependency installs successfully and the ModuleNotFoundError no longer occurs.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, python
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Quiet
- Clarity
- Clearly specified
- Newbie friendliness
- 85/100