You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "ivan-toriya-precis (via GitHub)" <gi...@apache.org> on 2025/07/09 10:54:26 UTC

[I] `apache-airflow-providers-ssh` dependency version incorectly specified for `apache-airflow-providers-sftp` [airflow]

ivan-toriya-precis opened a new issue, #53084:
URL: https://github.com/apache/airflow/issues/53084

   ### Apache Airflow Provider(s)
   
   sftp
   
   ### Versions of Apache Airflow Providers
   
   apache-airflow-providers-sftp==5.3.2
   apache-airflow-providers-ssh<4.0.0
   
   
   ### Apache Airflow version
   
   2.10.2
   
   ### Operating System
   
   Linux
   
   ### Deployment
   
   Google Cloud Composer
   
   ### Deployment details
   
   _No response_
   
   ### What happened
   
   ```
   Traceback (most recent call last):
     File "/opt/python3.11/lib/python3.11/site-packages/airflow/providers/sftp/operators/sftp.py", line 149, in execute
       self.sftp_hook = SFTPHook(ssh_conn_id=self.ssh_conn_id)
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
     File "/opt/python3.11/lib/python3.11/site-packages/airflow/providers/sftp/hooks/sftp.py", line 119, in __init__
       super().__init__(*args, **kwargs)
   TypeError: SSHHook.__init__() got an unexpected keyword argument 'host_proxy_cmd'
   ```
   
   
   
   ### What you think should happen instead
   
   `apache-airflow-providers-sftp` starting from v5.0.0 is using keyword argument introduced in `apache-airflow-providers-ssh` v4.0.0
   
   Dependency version should be specified correctly
   https://github.com/apache/airflow/blob/9f04812b516a7698700bbbc5b3945cfd1726aa64/providers/sftp/pyproject.toml#L60
   
   ### How to reproduce
   
   1. Install `apache-airflow-providers-sftp>=5.0.0`
   2. Create a task with
   ```
   sftp_hook = SFTPHook(ssh_conn_id="sftp_doctor_glass")
   ```
   3. See the error in the logs
   
   ### Anything else
   
   Initially spotted here: https://github.com/GoogleCloudPlatform/composer-local-dev/issues/104
   
   ### 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: commits-unsubscribe@airflow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] `apache-airflow-providers-ssh` dependency version incorectly specified for `apache-airflow-providers-sftp` [airflow]

Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk closed issue #53084: `apache-airflow-providers-ssh` dependency version incorectly specified for `apache-airflow-providers-sftp`
URL: https://github.com/apache/airflow/issues/53084


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] `apache-airflow-providers-ssh` dependency version incorectly specified for `apache-airflow-providers-sftp` [airflow]

Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk commented on issue #53084:
URL: https://github.com/apache/airflow/issues/53084#issuecomment-3052926112

   Ah nice  catch. Feel free to make a PR fixing it!


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] `apache-airflow-providers-ssh` dependency version incorectly specified for `apache-airflow-providers-sftp` [airflow]

Posted by "jroachgolf84 (via GitHub)" <gi...@apache.org>.
jroachgolf84 commented on issue #53084:
URL: https://github.com/apache/airflow/issues/53084#issuecomment-3053403376

   Created a PR for this: https://github.com/apache/airflow/pull/53100


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org