AttributeError: 'RRset' object has no attribute 'processing_order' #74

Closed
opened 2021-07-19 09:41:44 +02:00 by MRB60 · 7 comments
MRB60 commented 2021-07-19 09:41:44 +02:00 (Migrated from github.com)

Running on localhost I see the following:

File "skip/venv/lib/python3.8/site-packages/validate_email/dns_check.py", line 40, in _get_cleaned_mx_records
   for record in answer.rrset.processing_order():  # type: MX
AttributeError: 'RRset' object has no attribute 'processing_order'

Is this problem really due to localhost?

Running on localhost I see the following: ``` File "skip/venv/lib/python3.8/site-packages/validate_email/dns_check.py", line 40, in _get_cleaned_mx_records for record in answer.rrset.processing_order(): # type: MX AttributeError: 'RRset' object has no attribute 'processing_order' ``` Is this problem really due to localhost?
karolyi commented 2021-07-19 10:04:30 +02:00 (Migrated from github.com)

I would guess so. Let us know when you can provide a reproducible error.

I would guess so. Let us know when you can provide a reproducible error.
MRB60 commented 2021-07-19 11:20:41 +02:00 (Migrated from github.com)

I would guess so. Let us know when you can provide a reproducible error.

Same problem on AWS (no reverse DNS setup yet) also with deactivated SMTP check. Code:

is_valid = validate_email(email_address='<-removed->@gmail.com', check_format=True, check_blacklist=True, check_dns=True, dns_timeout=10, check_smtp=False, smtp_timeout=10, smtp_debug=False)

> I would guess so. Let us know when you can provide a reproducible error. Same problem on AWS (no reverse DNS setup yet) also with deactivated SMTP check. Code: ` is_valid = validate_email(email_address='<-removed->@gmail.com', check_format=True, check_blacklist=True, check_dns=True, dns_timeout=10, check_smtp=False, smtp_timeout=10, smtp_debug=False)`
karolyi commented 2021-07-19 11:30:07 +02:00 (Migrated from github.com)

as far as I remember, we don't check for reverse DNS at all, so that shouldn't be the problem.

can you tell me the module versions you use? also the one for dnspython and idna?

as far as I remember, we don't check for reverse DNS at all, so that shouldn't be the problem. can you tell me the module versions you use? also the one for dnspython and idna?
MRB60 commented 2021-07-19 11:34:32 +02:00 (Migrated from github.com)

OK. Here are the versions used:
py3-validate-email==1.0.0
dnspython==2.0.0
idna==3.2

OK. Here are the versions used: py3-validate-email==1.0.0 dnspython==2.0.0 idna==3.2
karolyi commented 2021-07-19 17:09:20 +02:00 (Migrated from github.com)

could you update dnspython to latest (2.1.0 at the time of writing this) and test again? I think there lies the culprit.

could you update `dnspython` to latest (`2.1.0` at the time of writing this) and test again? I think there lies the culprit.
MRB60 commented 2021-07-19 18:04:43 +02:00 (Migrated from github.com)

Yes - worked. Thank you!

Yes - worked. Thank you!
karolyi commented 2021-07-19 18:06:25 +02:00 (Migrated from github.com)

you're welcome. actually, I'm trying to make a release to pypi with this fix but somehow the API is failing so I can't upload it now.

the fix will come with 1.0.1.

you're welcome. actually, I'm trying to make a release to pypi with this fix but somehow the API is failing so I can't upload it now. the fix will come with `1.0.1`.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: karolyi/py3-validate-email#74
No description provided.