Alexandrmrn opened a new issue, #30221:
URL: https://github.com/apache/airflow/issues/30221
### Apache Airflow Provider(s)
samba
### Versions of Apache Airflow Providers
apache-airflow 2.5.2
apache-airflow-providers-amazon 3.4.0
apache-airflow-providers-celery 2.1.4
apache-airflow-providers-cncf-kubernetes 4.0.2
apache-airflow-providers-common-sql 1.3.4
apache-airflow-providers-docker 2.7.0
apache-airflow-providers-elasticsearch 3.0.3
apache-airflow-providers-ftp 2.1.2
apache-airflow-providers-google 7.0.0
apache-airflow-providers-grpc 2.0.4
apache-airflow-providers-hashicorp 2.2.0
apache-airflow-providers-http 2.1.2
apache-airflow-providers-imap 2.2.3
apache-airflow-providers-microsoft-azure 3.9.0
apache-airflow-providers-microsoft-mssql 3.0.0
apache-airflow-providers-microsoft-winrm 3.0.0
apache-airflow-providers-mysql 2.2.3
apache-airflow-providers-odbc 2.0.4
apache-airflow-providers-postgres 4.1.0
apache-airflow-providers-redis 2.0.4
apache-airflow-providers-samba 4.1.0
apache-airflow-providers-sendgrid 2.0.4
apache-airflow-providers-sftp 2.6.0
apache-airflow-providers-slack 4.2.3
apache-airflow-providers-sqlite 2.1.3
apache-airflow-providers-ssh 2.4.4
apache-airflow-providers-telegram 3.0.0
### Apache Airflow version
2.5.2
### Operating System
linux suse
### Deployment
Docker-Compose
### Deployment details
just use docker-compose
### What happened
Broken DAG: [/opt/airflow/dags/sambatest.py] Traceback (most recent call
last):
File
"/home/airflow/.local/lib/python3.7/site-packages/airflow/providers/samba/hooks/samba.py",
line 30, in <module>
class SambaHook(BaseHook):
File
"/home/airflow/.local/lib/python3.7/site-packages/airflow/providers/samba/hooks/samba.py",
line 86, in SambaHook
@wraps(smbclient.link)
AttributeError: module 'smbclient' has no attribute 'link'
### What you think should happen instead
perhaps issue like this
https://stackoverflow.com/questions/72177073/attributeerror-module-mymodule-has-no-attribute-module1
for at first is seems should importing like <import smbclient.link> instead
of <import smbclient and use @wraps(smbclient.link)>
### How to reproduce
Just create dag and import SambaHook
### Anything else
_No response_
### 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]