Fix AttributeError: module 'ldap' has no attribute 'filter'#67535
Fix AttributeError: module 'ldap' has no attribute 'filter'#67535m-rossi wants to merge 1 commit into
Conversation
|
can you add a unit test to avoid regression? |
|
I think it's mostly hallucinated. Can you explain (in human words) why this would work ? It seem to me that you have some badly name module called |
|
@potiuk You can simply test that my fix works by starting a Python shell where python-ldap is installed (for example your Airflow deployment of choice) and try >>> import ldap
>>> ldap.filter.escape_filter_chars
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: module 'ldap' has no attribute 'filter'once you do my proposal, it works >>> import ldap.filter
>>> ldap.filter.escape_filter_chars
<function escape_filter_chars at 0x7f469e678c20>I found this solution in python-ldap/python-ldap#469 and it is related how the package I dig a little bit in the code and it seems like the So I ask you to reopen the PR and we should discuss about testing like @eladkal mentioned. |
Was generative AI tooling used to co-author this PR?
{pr_number}.significant.rst, in airflow-core/newsfragments. You can add this file in a follow-up commit after the PR is created so you know the PR number.