eve-swagger icon indicating copy to clipboard operation
eve-swagger copied to clipboard

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

Open virtualvinodh opened this issue 4 years ago • 2 comments

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

virtualvinodh avatar Dec 03 '20 22:12 virtualvinodh

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.

effigies avatar Dec 14 '20 01:12 effigies

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.

stale[bot] avatar Apr 16 '22 05:04 stale[bot]