Skip to content
This repository was archived by the owner on Apr 8, 2025. It is now read-only.
This repository was archived by the owner on Apr 8, 2025. It is now read-only.

ModuleNotFoundError no module name 'httpx' #143

Open
@VianneyMI

Description

@VianneyMI

Describe the bug
A clear and concise description of what the bug is.

Following the client tutorial, I am trying to launch the client with the weather server previously developed and I get this ModuleNotFoundError : No module name 'httpx'

Is it because I created separated virtual environments for the clients and the servers ?

Anyway, I have httpx installed in both.

How does the client process the provided server ? Do I need to launch the server manually first ?

Below is my project structure

model_context_protocol/

┣ mcp_client/
┃ ┣ .venv/
┃ ┣ .env
┃ ┣ .gitignore
┃ ┣ .python-version
┃ ┣ client.py
┃ ┣ pyproject.toml
┃ ┣ README.md
┃ ┗ uv.lock
┗ weather/
  ┣ .venv/
  ┣ .python-version
  ┣ pyproject.toml
  ┣ README.md
  ┣ uv.lock
  ┗ weather.py

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions