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

ImportError: cannot import name 'Model' #245

Closed
dhairyadeewan opened this issue May 27, 2019 · 2 comments
Closed

ImportError: cannot import name 'Model' #245

dhairyadeewan opened this issue May 27, 2019 · 2 comments

Comments

@dhairyadeewan
Copy link

Cannot check import for swagger_client.
bug_swagger

@chlandsi
Copy link
Contributor

chlandsi commented Jun 3, 2019

This is a known bug in the swagger autogeneration. These can be fixed by deleting the line with the content from swagger_client.models.model import Model # noqa: F401,E501 from the file swagger_client\models\model.py and the line with the content from swagger_client.models.inner_error import InnerError # noqa: F401,E501 from the file swagger_client\models\inner_error.py inside the installed package. The error message will tell you where these files are located for your installation.

@jhakulin
Copy link

Closed the issue with the current resolution. Let us know if you need more information.

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

No branches or pull requests

3 participants