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

   ### Apache Airflow version
   
   2.7.2
   
   ### What happened
   
   Dep declared at: https://github.com/apache/airflow/blob/2.7.2/setup.cfg#L81
   
   When using `connexion==3.0.0a7`:
   
   ```
   martech-airflow-scheduler-1  | Traceback (most recent call last):
   martech-airflow-scheduler-1  |   File "/app/.venv/bin/airflow", line 8, in 
<module>
   martech-airflow-scheduler-1  |     sys.exit(main())
   martech-airflow-scheduler-1  |              ^^^^^^
   martech-airflow-scheduler-1  |   File 
"/app/.venv/lib/python3.11/site-packages/airflow/__main__.py", line 59, in main
   martech-airflow-scheduler-1  |     args.func(args)
   martech-airflow-scheduler-1  |   File 
"/app/.venv/lib/python3.11/site-packages/airflow/cli/cli_config.py", line 49, 
in command
   martech-airflow-scheduler-1  |     return func(*args, **kwargs)
   martech-airflow-scheduler-1  |            ^^^^^^^^^^^^^^^^^^^^^
   martech-airflow-scheduler-1  |   File 
"/app/.venv/lib/python3.11/site-packages/airflow/utils/providers_configuration_loader.py",
 line 55, in wrapped_function
   martech-airflow-scheduler-1  |     return func(*args, **kwargs)
   martech-airflow-scheduler-1  |            ^^^^^^^^^^^^^^^^^^^^^
   martech-airflow-scheduler-1  |   File 
"/app/.venv/lib/python3.11/site-packages/airflow/cli/commands/db_command.py", 
line 186, in check_migrations
   martech-airflow-scheduler-1  |     
db.check_migrations(timeout=args.migration_wait_timeout)
   martech-airflow-scheduler-1  |   File 
"/app/.venv/lib/python3.11/site-packages/airflow/utils/db.py", line 793, in 
check_migrations
   martech-airflow-scheduler-1  |     source_heads = set(env.script.get_heads())
   martech-airflow-scheduler-1  |                        ^^^^^^^^^^^^^^^^^^^^^^
   martech-airflow-scheduler-1  |   File 
"/app/.venv/lib/python3.11/site-packages/alembic/script/base.py", line 406, in 
get_heads
   martech-airflow-scheduler-1  |     return list(self.revision_map.heads)
   martech-airflow-scheduler-1  |                 ^^^^^^^^^^^^^^^^^^^^^^^
   martech-airflow-scheduler-1  |   File 
"/app/.venv/lib/python3.11/site-packages/sqlalchemy/util/langhelpers.py", line 
1113, in __get__
   martech-airflow-scheduler-1  |     obj.__dict__[self.__name__] = result = 
self.fget(obj)
   martech-airflow-scheduler-1  |                                            
^^^^^^^^^^^^^^
   martech-airflow-scheduler-1  |   File 
"/app/.venv/lib/python3.11/site-packages/alembic/script/revision.py", line 137, 
in heads
   martech-airflow-scheduler-1  |     self._revision_map
   martech-airflow-scheduler-1  |   File 
"/app/.venv/lib/python3.11/site-packages/sqlalchemy/util/langhelpers.py", line 
1113, in __get__
   martech-airflow-scheduler-1  |     obj.__dict__[self.__name__] = result = 
self.fget(obj)
   martech-airflow-scheduler-1  |                                            
^^^^^^^^^^^^^^
   martech-airflow-scheduler-1  |   File 
"/app/.venv/lib/python3.11/site-packages/alembic/script/revision.py", line 191, 
in _revision_map
   martech-airflow-scheduler-1  |     for revision in self._generator():
   martech-airflow-scheduler-1  |   File 
"/app/.venv/lib/python3.11/site-packages/alembic/script/base.py", line 148, in 
_load_revisions
   martech-airflow-scheduler-1  |     script = Script._from_filename(self, 
dir_name, filename)
   martech-airflow-scheduler-1  |              
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   martech-airflow-scheduler-1  |   File 
"/app/.venv/lib/python3.11/site-packages/alembic/script/base.py", line 1036, in 
_from_filename
   martech-airflow-scheduler-1  |     module = util.load_python_file(dir_, 
filename)
   martech-airflow-scheduler-1  |              
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   martech-airflow-scheduler-1  |   File 
"/app/.venv/lib/python3.11/site-packages/alembic/util/pyfiles.py", line 93, in 
load_python_file
   martech-airflow-scheduler-1  |     module = load_module_py(module_id, path)
   martech-airflow-scheduler-1  |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   martech-airflow-scheduler-1  |   File 
"/app/.venv/lib/python3.11/site-packages/alembic/util/pyfiles.py", line 109, in 
load_module_py
   martech-airflow-scheduler-1  |     spec.loader.exec_module(module)  # type: 
ignore
   martech-airflow-scheduler-1  |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   martech-airflow-scheduler-1  |   File "<frozen 
importlib._bootstrap_external>", line 940, in exec_module
   martech-airflow-scheduler-1  |   File "<frozen importlib._bootstrap>", line 
241, in _call_with_frames_removed
   martech-airflow-scheduler-1  |   File 
"/var/app/.venv/lib/python3.11/site-packages/airflow/migrations/versions/0074_2_0_0_resource_based_permissions.py",
 line 30, in <module>
   martech-airflow-scheduler-1  |     from airflow.www.app import cached_app
   martech-airflow-scheduler-1  |   File 
"/app/.venv/lib/python3.11/site-packages/airflow/www/app.py", line 50, in 
<module>
   martech-airflow-scheduler-1  |     from airflow.www.extensions.init_views 
import (
   martech-airflow-scheduler-1  |   File 
"/app/.venv/lib/python3.11/site-packages/airflow/www/extensions/init_views.py", 
line 27, in <module>
   martech-airflow-scheduler-1  |     from connexion.decorators.validation 
import RequestBodyValidator
   martech-airflow-scheduler-1  | ModuleNotFoundError: No module named 
'connexion.decorators.validation'
   ```
   
   ### What you think should happen instead
   
   Have upper bound constraint
   
   or add dynamic branches that support connexion v3 (j/k)
   
   ### How to reproduce
   
   start up airflow with `connexion==3.0.0a7`
   
   ### Operating System
   
   Debian GNU/Linux 12 (bookworm)
   
   ### Versions of Apache Airflow Providers
   
   _No response_
   
   ### Deployment
   
   Docker-Compose
   
   ### Deployment details
   
   _No response_
   
   ### 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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to