MicrosoftLearning / MicrosoftLearning/mslearn-ai-language

Lab 02-language-agent: ModuleNotFoundError: No module named 'httpx' when initializing OpenAI client

Open Beginner friendly
#147 0 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.