pyeve / eve-swagger

Swagger extension for Eve-powered RESTful APIs
http://python-eve.org
Other
154 stars 43 forks source link

AttributeError: module 'eve_swagger.swagger' has no attribute 'name' #115

Open virtualvinodh opened 3 years ago

virtualvinodh commented 3 years ago

Hi,

I am trying to use eve-swagger with my eve-SQLAlchemy project. When I try to run the project, I get the following error.

line 941, in register_blueprint if blueprint.name in self.blueprints: , line 941, in register_blueprint AttributeError: module 'eve_swagger.swagger' has no attribute 'name'

Eve-Swagger v. 0.1.3 Eve-Sqlalchemy v. 0.7.1 Eve v. 0.7.10

I can see that this issue has been fixed.

https://github.com/pyeve/eve-swagger/issues/3

I'm not sure why I'm still getting it though.

V

effigies commented 3 years ago

Seems that the API changed, and now you should do:

from eve_swagger import get_swagger_blueprint

...

swagger = get_swagger_blueprint()
app.register_blueprint(swagger)

Dealt with this in https://github.com/poldracklab/mriqcwebapi/pull/47.

stale[bot] commented 2 years ago

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.