teamclairvoyant/airflow-rest-api-plugin

A blueprint's name collision occurred between

yim0823 opened this issue · 3 comments

i configured plugin according to your README.md.
when i restarted web server, the following error occurs :
AssertionError: A blueprint's name collision occurred between <flask.blueprints.Blueprint object at 0x7f6188e873d0> and <flask.blueprints.Blueprint object at 0x7f6188e87310>. Both share the same name "rest_api". Blueprints that are created on the fly need unique names.

The selected version is v1.0.3.
Airflow version is 1.8.0.

Can you check your plugins directory to see if you maybe have 2 copies of the plugin, maybe in some nested form? For example,

~/airflow/plugins/rest_api_plugin.py
~/airflow/plugins/plugins/rest_api_plugin.py

Wow. Thank you so much. You were right.

my directorys:
~/airflow/plugins/rest_api_plugin.py
~/airflow/plugins/rest_api_plugin.pyc
~/airflow/plugins/templates
~/airflow/plugins/airflow-rest-api-plugin-1.0.3

The last directory was a problem. Deleted the last directory and resolved.

Thanks for helping to debug @lavusridhar.

@yim0823 I would just like to follow up, was there an issue with the deployment process specified in the README that we need to fix?