You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by po...@apache.org on 2023/02/19 20:37:32 UTC

[airflow] branch main updated: Add note about workaround to potential error with argparse to hdfs (#29614)

This is an automated email from the ASF dual-hosted git repository.

potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new 0a4184e34c Add note about workaround to potential error with argparse to hdfs (#29614)
0a4184e34c is described below

commit 0a4184e34c1d83ad25c61adc23b838e994fc43f1
Author: Jarek Potiuk <ja...@potiuk.com>
AuthorDate: Sun Feb 19 21:37:25 2023 +0100

    Add note about workaround to potential error with argparse to hdfs (#29614)
    
    Instead of removing or reimplementing hdfs provider - in the event
    of a possibility to break argparse, we simply add a note in the
    provider documentation to remove argprase if such problem happens.
    
    Fixes: #22689
---
 docs/apache-airflow-providers-apache-hdfs/index.rst | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/docs/apache-airflow-providers-apache-hdfs/index.rst b/docs/apache-airflow-providers-apache-hdfs/index.rst
index 99bb4f04df..d09478d775 100644
--- a/docs/apache-airflow-providers-apache-hdfs/index.rst
+++ b/docs/apache-airflow-providers-apache-hdfs/index.rst
@@ -53,6 +53,13 @@ Package apache-airflow-providers-apache-hdfs
 `Hadoop Distributed File System (HDFS) <https://hadoop.apache.org/docs/r1.2.1/hdfs_design.html>`__
 and `WebHDFS <https://hadoop.apache.org/docs/current/hadoop-project-dist/hadoop-hdfs/WebHDFS.html>`__.
 
+.. note::
+
+   The ``snakebite-py3`` used by the provider is an old package and it has an old version of ``argparse`` in
+   its dependencies and it might cause in some cases running airflow commands raises the error similar to
+   ``TypeError: __init__() got an unexpected keyword argument 'encoding'``. In this case make
+   sure to remove ``argparse`` with ``pip uninstall argparse`` command to get rid of this error.
+
 
 Release: 3.2.0