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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]