Calling the generator from cli works with different syntax from documentation

未關閉
#1,260 2 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
1/5
預估耗時
1 小時以內
新手友好度
58/100
Issue 類型
文件
描述清晰度
描述清楚
活躍度
停滯
技術堆疊
python
領域
cli, documentation

研究方向

從 issue 中連結的 README 位置開始,將其中記載的 python -m 呼叫方式與報告中所示的可正常運作的底線形式進行比較。在專案的 CLI 情境中驗證該指令,然後更新文件,使支援的呼叫方式明確且一致。完成的標準是新手可以成功依照 README 中的指令操作。

由索引模型根據 Issue 內容生成。

描述

Describe the bug

Calling from cli using the suggested method with python -m does not work.

python -m openapi-python-client --version
PATH_TO_PYTHON\python.exe: No module named openapi-python-client

Using underscores, however, does work (python -m openapi_python_client -version):

python -m openapi_python_client --version
openapi-python-client version: 0.24.3

OpenAPI Spec File

Not applicable

Desktop (please complete the following information):

  • OS: Windows 11 (Microsoft Windows NT 10.0.26100.0)
  • Python Version: [e.g. 3.12.7]
  • openapi-python-client version [e.g. 0.24.3]

Additional context

Running from a powershell instance in VSCode with a conda environment selected as a Python interpreter.

Would it be possible to add a line to the documentation mentioning the call with python -m?

主要語言
Python
星號
2k
分支
293
平均合併
34 分鐘
30 天內合併 PR
1

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

openapi-generators/openapi-python-client 的其他 Issue

查看 openapi-generators/openapi-python-client 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。