swagger-api / swagger-api/swagger-codegen

run the Python swagger example - swagger_client ModuleNotFound

Open
#10,279 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Mustache
Stars
17.8k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

Description

I just download the SDK for Python. I just want to check and run the code.
But in every py the compiler says "ModuleNotFoundError: No module named 'swagger_client'

What is my mistake?

Swagger-codegen version

openapi: 3.0.0

Contributor guide

Open the contributing guide

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 the downloaded Python SDK and the example code that raises ModuleNotFoundError for swagger_client. Check how the generated package is installed or made available before running the example. Done means the example runs without the missing-module error.

Written by the indexing model from the issue text.

Assessment

Tech stack
openapi, python
Domain
api
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.