fifar commented on issue #4788: [AIRFLOW-3811][3/3] Add automatic generation of 
API Reference
URL: https://github.com/apache/airflow/pull/4788#issuecomment-491182990
 
 
   This PR will try to import snakebite [here](
   
https://github.com/PolideaInternal/airflow/blob/eaecc3b3b00f34db5a92b9d8a3ba7eef8b49502b/airflow/hooks/hdfs_hook.py#L24)
 which is not compatible with python3. I encountered this error
   ```
       from airflow.operators.sensors import ExternalTaskSensor
     File "~/env/lib/python3.6/site-packages/airflow/operators/sensors.py", 
line 35, in <module>
       from airflow.sensors.hdfs_sensor import HdfsSensor as HdfsSensorImp
     File "~/env/lib/python3.6/site-packages/airflow/sensors/hdfs_sensor.py", 
line 25, in <module>
       from airflow.hooks.hdfs_hook import HDFSHook
     File "~/env/lib/python3.6/site-packages/airflow/hooks/hdfs_hook.py", line 
24, in <module>
       from snakebite.client import Client, HAClient, Namenode, AutoConfigClient
     File "~/env/lib/python3.6/site-packages/snakebite/client.py", line 1473
       baseTime = min(time * (1L << retries), cap);
                               ^
   SyntaxError: invalid syntax
   ```
   It worked when using Airflow 1.10.2

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


With regards,
Apache Git Services

Reply via email to