vincbeck commented on PR #73193:
URL: https://github.com/apache/airflow/pull/73193#issuecomment-5686056297

   > That said, did you hit an actual ImportError somewhere? If the standard 
provider just isn't installed in the environment where you saw this?
   
   Exactly, basically we are running our system against Airflow 2.11, see 
dashboard here: 
https://aws-mwaa.github.io/#/open-source/system-tests/version/2.11.0.html. We 
want to make sure operators and sensors in the amazon provider package are 
still working in Airflow 2.11. In this setup, the standard provider is not 
installed, we could, but we rather do it without it to be more strict about it. 
That's why I need to add this fallback. The error I am getting is:
   
   ```
   
   ==================================== ERRORS 
====================================
   --
   ___ ERROR collecting providers/amazon/tests/system/amazon/aws/example_dms.py 
___
   ImportError while importing test module 
'/opt/airflow/providers/amazon/tests/system/amazon/aws/example_dms.py'.
   Hint: make sure your test modules/packages have valid Python names.
   Traceback:
   /usr/python/lib/python3.12/importlib/__init__.py:90: in import_module
   return _bootstrap._gcd_import(name[level:], package, level)
   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   providers/amazon/tests/system/amazon/aws/example_dms.py:48: in <module>
   from airflow.providers.standard.sensors.date_time import DateTimeSensorAsync
   E   ModuleNotFoundError: No module named 'airflow.providers.standard'
   ----------- generated xml file: /files/test_result-none-postgres.xml 
-----------
   =========================== short test summary info 
============================
   ERROR providers/amazon/tests/system/amazon/aws/example_dms.py
   !!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection 
!!!!!!!!!!!!!!!!!!!!
   ========================= 1 warning, 1 error in 6.75s 
==========================
   ```
   
   Let me know if you have further question


-- 
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