AttributeError: '_UnixSelectorEventLoop' object has no attribute 'shutdown_asyncgens'
msenturk opened this issue · 0 comments
msenturk commented
Hello,
Traceback (most recent call last):
File "async-filter.py", line 149, in <module>
safe,Provider = lauch(domains[i])
File "async-filter.py", line 124, in lauch
return loop(domain,asn_baseline,hash_baseline)
File "async-filter.py", line 96, in loop
loop.run_until_complete(loop.shutdown_asyncgens())
AttributeError: '_UnixSelectorEventLoop' object has no attribute 'shutdown_asyncgens'
When I comment out the line 96 loop.run_until_complete(loop.shutdown_asyncgens())
it runs.
After comment out of the line I also getting bellow errors.
I think this one because of the time out of query in resolver.py. Im kinda new for python so cant figured out ):
(dns-online-filter) ➜ Dns-online-filter git:(master) ✗ python async-filter.py dns.txt
botmasterlabs.net --> safe
botmasterru.com --> safe
botviet.net --> safe
boypost.com --> unsafe, filtered by NortonConnectSafe
bramjnet.com --> unsafe, filtered by NortonConnectSafe
brandibelle.com --> unsafe, filtered by NortonConnectSafe
bravovids.com --> unsafe, filtered by NortonConnectSafe
brimors.pw --> safe
broadspring.com --> safe
browserexstensions.review --> safe
btc-get.com --> safe
bubblesmedia.ru --> safe
budichome.narod.ru --> safe
bulderlabelpoint.club --> safe
bulkregister.com --> safe
bulktube.com --> unsafe, filtered by NortonConnectSafe
bundasnovinhas.com --> unsafe, filtered by ComodoSecure
burn4free.com --> unsafe, filtered by NortonConnectSafe
buscape.com.br --> safe
Traceback (most recent call last):
File "async-filter.py", line 149, in <module>
safe,Provider = lauch(domains[i])
File "async-filter.py", line 105, in lauch
Answers_Google = Google.query(domain, "A")
File "/home/msenturk/.virtualenvs/dns-online-filter/lib/python3.5/site-packages/dns/resolver.py", line 949, in query
timeout = self._compute_timeout(start)
File "/home/msenturk/.virtualenvs/dns-online-filter/lib/python3.5/site-packages/dns/resolver.py", line 858, in _compute_timeout
raise Timeout(timeout=duration)
dns.exception.Timeout: The DNS operation timed out after 30.000416040420532 seconds