potiuk commented on pull request #12703:
URL: https://github.com/apache/airflow/pull/12703#issuecomment-736063776


   Interesting thing that in the same image all those work too: 
   
   >>> import importlib
   >>> 
importlib.import_module('airflow.providers.google.cloud.example_dags.example_pubsub')
   <module 'airflow.providers.google.cloud.example_dags.example_pubsub' from 
'/opt/airflow/airflow/providers/google/cloud/example_dags/example_pubsub.py'>
   >>> exit 
   Use exit() or Ctrl-D (i.e. EOF) to exit
   >>> exit()
   root@02a0c7718f03:/opt/airflow# python
   Python 3.6.12 (default, Oct 13 2020, 21:45:01) 
   [GCC 8.3.0] on linux
   Type "help", "copyright", "credits" or "license" for more information.
   >>> import importlib
   >>> 
importlib.import_module('airflow.providers.google.cloud.example_dags.example_pubsub')
   <module 'airflow.providers.google.cloud.example_dags.example_pubsub' from 
'/opt/airflow/airflow/providers/google/cloud/example_dags/example_pubsub.py'>
   >>> from airflow.providers.google.cloud.operators.pubsub import (
   ...     PubSubCreateSubscriptionOperator,
   ...     PubSubCreateTopicOperator,
   ...     PubSubDeleteSubscriptionOperator,
   ...     PubSubDeleteTopicOperator,
   ...     PubSubPublishMessageOperator,
   ...     PubSubPullOperator,
   ... )
   >>> 
   
   


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

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


Reply via email to