Skip to content

ModuleNotFoundError: No module named 'yaml' #80

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
bringert opened this issue Dec 11, 2024 · 1 comment · Fixed by #81
Closed

ModuleNotFoundError: No module named 'yaml' #80

bringert opened this issue Dec 11, 2024 · 1 comment · Fixed by #81

Comments

@bringert
Copy link

Describe the bug
There seems to be an undeclared dependency on the pyyaml package.

To Reproduce
Steps to reproduce the behavior:

  1. Run:
    pipx run openapi-python-generator

Expected behavior
openapi-python-generator runs

Screenshots

$ pipx run openapi-python-generator
Traceback (most recent call last):
  File "/home/bjorn/.cache/pipx/74ca6dbc27a328b/bin/openapi-python-generator", line 5, in <module>
    from openapi_python_generator.__main__ import main
  File "/home/bjorn/.cache/pipx/74ca6dbc27a328b/lib/python3.12/site-packages/openapi_python_generator/__main__.py", line 8, in <module>
    from openapi_python_generator.generate_data import generate_data
  File "/home/bjorn/.cache/pipx/74ca6dbc27a328b/lib/python3.12/site-packages/openapi_python_generator/generate_data.py", line 10, in <module>
    import yaml
ModuleNotFoundError: No module named 'yaml'

The same thing happens when installing with pip install and then running openapi-python-generator.

Desktop (please complete the following information):
Python 3.12.3 on Ubuntu 24.04.1 LTS

@nklamann
Copy link

nklamann commented Dec 13, 2024

There seems to be pyyaml missing in pyproject.toml.

This can be fixed at runtime with pip install pyyaml.

@MarcoMuellner MarcoMuellner linked a pull request Dec 13, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants