Skip to content
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

ModuleNotFoundError exception rendering API schema under Python 3.9+ #10712

Closed
jeremystretch opened this issue Oct 20, 2022 · 1 comment
Closed
Assignees
Labels
status: accepted This issue has been accepted for implementation type: bug A confirmed report of unexpected behavior in the application

Comments

@jeremystretch
Copy link
Member

NetBox version

v3.3.5

Python version

3.9

Steps to Reproduce

  1. Install NetBox using Python 3.9 or later
  2. Visit /api/docs/?format=openapi to render the raw API schema

Expected Behavior

The schema should render successfully.

Observed Behavior

A ModuleNotFoundError exception is raised. This appears to be due to a conflict introduced by swagger-spec-validator v3.0.0 under Python 3.9 or later.

@jeremystretch jeremystretch added type: bug A confirmed report of unexpected behavior in the application status: accepted This issue has been accepted for implementation labels Oct 20, 2022
@jeremystretch jeremystretch self-assigned this Oct 20, 2022
@tijuca
Copy link

tijuca commented Nov 2, 2022

The underlying upstream issue in swagger_spec_validator has been fixed by adding the missed required additional package dependency.
Yelp/swagger_spec_validator@1e10f01

There is now a new version 3.0.3 available which has included that fix. I'm using a local instance of NetBox 3.3.6 which is working fine with a by me patched swagger_spec_validator package.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 1, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status: accepted This issue has been accepted for implementation type: bug A confirmed report of unexpected behavior in the application
Projects
None yet
Development

No branches or pull requests

2 participants