rino0601 opened a new issue, #25271:
URL: https://github.com/apache/airflow/issues/25271

   ### Apache Airflow version
   
   2.3.3 (latest released)
   
   ### What happened
   
   In 2.3.3
   
   If I use 
https://airflow.apache.org/docs/apache-airflow/stable/plugins.html#plugins-as-python-packages
 feature, then I see these Error:
   
   short:
   `ValueError: The name 'airs' is already registered for this blueprint. Use 
'name=' to provide a unique name.`
   
   long:
   > i'm trying to reproduce it...
   
   If I don't use it(workarounding by AIRFLOW__CORE__PLUGINS_FOLDER), errors 
doesn't occur.
   
   It didn't happend in 2.3.2 and earlier 
   
   ### What you think should happen instead
   
   Looks like plugins are import multiple times if it is 
plugins-as-python-packages.
   
   Perhaps flask's major version change  is the main cause.
   Presumably, in flask 1.0, duplicate registration of blueprint was quietly 
filtered out, but in 2.0 it seems to have been changed to generate an error. (I 
am trying to find out if this hypothesis is correct)
   
   Anyway, use the latest version of FAB is important. we will have to adapt to 
this change, so plugins will have to be imported once regardless how it defined.
   
   ### How to reproduce
   
   > It was reproduced in the environment used at work, but it is difficult to 
disclose or explain it.
   > I'm working to reproduce it with the breeze command, and I open the issue 
first with the belief that it's not just me.
   
   ### Operating System
   
   CentOS Linux release 7.9.2009 (Core)
   
   ### Versions of Apache Airflow Providers
   
   ```sh
   $ SHIV_INTERPRETER=1 airsflow -m pip freeze | grep apache-
   apache-airflow==2.3.3
   apache-airflow-providers-apache-hive==3.1.0
   apache-airflow-providers-apache-spark==2.1.0
   apache-airflow-providers-celery==3.0.0
   apache-airflow-providers-common-sql==1.0.0
   apache-airflow-providers-ftp==3.1.0
   apache-airflow-providers-http==3.0.0
   apache-airflow-providers-imap==3.0.0
   apache-airflow-providers-postgres==5.1.0
   apache-airflow-providers-redis==3.0.0
   apache-airflow-providers-sqlite==3.1.0
   ```
   
   but I think these are irrelevant.
   
   ### Deployment
   
   Other 3rd-party Helm chart
   
   ### Deployment details
   
   docker image based on centos7, python 3.9.10 interpreter, self-written helm2 
chart ....
   
   ... but I think these are irrelevant.
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@airflow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to